-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UserFactorClient.list_factors always return null for "result" #387
Comments
this works for me. what's your code? import okta.client
import asyncio
userid = '00u...'
async def main():
async with okta.client.Client() as client:
factors, *_ = await client.list_factors(userid)
for factor in factors:
print(factor)
asyncio.run(main()) |
From best I can tell, the API response is returning Factor Type as 'signed_nonce' for "Okta Verify/Fastpass" enrollments but there is no set up for that in contanstants file under OKTA_FACTOR_TYPE_TO_FACTOR. If i test on a user that only has Google Authenticator set up it returns the factor successfully in the 'factors' but if there are any Okta Verify/Fastpass devices enrolled for the user it fails to build the 'factors' list when i run it, I get None <okta.api_response.OktaAPIResponse object at 0x11d021fd0> 'signed_nonce' as my output. but parseing the resp.get_body() I do see enrolled factors. code below:
|
this? #311 |
Ah didn't see those replies to that issue, yeah similar to issue. Specifically same issue mentioned in one of the replies here. |
function UserFactorClient.list_factors never successfully returns "result" list even though response body is successfully parsable, requiring us to parse the body of the response ourselves. Not horrible, but wanted to call out that the result never seems to return anything.
The text was updated successfully, but these errors were encountered: