Skip to content
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

Unable to get session_token_exchange_code for native login flow with ory_kratos_client python SDK #296

Open
4 of 5 tasks
thetheos opened this issue Oct 11, 2023 · 0 comments
Labels
bug Something is not working.

Comments

@thetheos
Copy link

Preflight checklist

Ory Network Project

No response

Describe the bug

With the ory_kratos_client python SDK, I am unable to create a native login flow which will return a session_token_exchange_code .

Reproducing the bug

Steps to reproduce:

  1. Creating a native login flow with the return_session_token_exchange_code=True:
    api_response = api_instance.create_native_login_flow(return_session_token_exchange_code=True)

  2. The response does not include the session_token_exchange_code field and the request_url present in the response is:
    'request_url': 'http://self_hosted_ory_kratos/self-service/login/api?return_session_token_exchange_code=True',

  3. From my observations and playing with the API directly, it seems that the issue comes from the uppercase T of True. Calling the api directly with an all lower cases true fixes the issue.
    'http://self_hosted_ory_kratos/self-service/login/api?return_session_token_exchange_code=true'
    I can observe a session_token_exchange_code field in the response.

Relevant log output

No response

Relevant configuration

No response

Version

Ory kratos V1.0.0 and ory-kratos-client 1.0.0

On which operating system are you observing this issue?

Linux

In which environment are you deploying?

Docker Compose

Additional Context

No response

@thetheos thetheos added the bug Something is not working. label Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working.
Projects
None yet
Development

No branches or pull requests

1 participant