Giter Site home page Giter Site logo

Comments (8)

cizo2000 avatar cizo2000 commented on June 12, 2024

I have same behavior.

from okta-sdk-python.

wezham avatar wezham commented on June 12, 2024

I experience the same

from okta-sdk-python.

eliavlivneh avatar eliavlivneh commented on June 12, 2024

I experience the same behavior.
It seems that support for the signed_nonce factor hasn't been implemented in the Python SDK since being added to Okta - the OKTA_FACTOR_TYPE_TO_FACTOR dictionary in constants.py doesn't have the signed_nonce factor entry, and there is no corresponding model implemented under the models directory.

from okta-sdk-python.

cizo2000 avatar cizo2000 commented on June 12, 2024

Did someone regenerated SDK for the latest version of openapi spec? I still experience an issues with listing of factors as mentioned here in comments.

from okta-sdk-python.

JackOfMostTrades avatar JackOfMostTrades commented on June 12, 2024

If it helps, I've been using the following manually-created request pattern from the SDK to work around this issue:

    # https://github.com/okta/okta-sdk-python/issues/360
    # user_factors, response, error = await client.list_factors(user.id)
    request, error = await client.get_request_executor().create_request(
        method='GET',
        url='/api/v1/users/' + user.id + '/factors',
        body={},
        headers={}
    )
    if error is not None:
        raise Exception(error)

    response, error = await client.get_request_executor().execute(request, None)
    if error is not None:
        raise Exception(error)
    user_factors = response.get_body()

    for user_factor in user_factors:
        df = dict({
            'okta_user_id': [user.id],
            'okta_user_login': [user.profile.login],
            'status': [user_factor['status']],
            'factorType': [user_factor['factorType']],
            'provider': [user_factor['provider']],
            'vendorName': [user_factor['vendorName']],
        })

from okta-sdk-python.

cizo2000 avatar cizo2000 commented on June 12, 2024

Yes, you can do it, but it's not proper solution if it's possible to fix openapi specs and refresh SDK to have all current types of factors covered. I am using it on 20+ servers.

from okta-sdk-python.

alfredkzr avatar alfredkzr commented on June 12, 2024

Same issue here with listing signed_nonce. Hope it can be fixed soon as I would prefer to use the SDK instead of workaround.

from okta-sdk-python.

gili-linx avatar gili-linx commented on June 12, 2024

This is still happening in the latest version - 2.9.5. OKTA_FACTOR_TYPE_TO_FACTOR is missing the SIGNED_NONCE factor type. Can you please generate a new version of the SDK with this small fix?

from okta-sdk-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤ī¸ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.