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

Deserialization bug when running toSession for social sign in cookie? #13

Open
5 tasks done
staklau opened this issue Aug 8, 2023 · 0 comments
Open
5 tasks done
Labels
bug Something is not working.

Comments

@staklau
Copy link

staklau commented Aug 8, 2023

Preflight checklist

Ory Network Project

No response

Describe the bug

I've been using social sign in with Azure AD successfully for some time, but there now seems to be a problem when trying to verify the users that are signed in using Azure. This problem might have been there for a long time, because this feature has not been used much in our system.

Reproducing the bug

Steps to reproduce the behaviour:

  1. Register a Microsoft tenant for social sign-in with scopes: email, profile. tenant: organization. subject source: userinfo.
  2. Try to log in with a tenant of your choice.
  3. Try to validate the session with the SDK: frontendApi.toSession(null, cookie)

Relevant log output

java.lang.IllegalArgumentException: The field `provider` in the JSON string is not defined in the `SessionAuthenticationMethod` properties. JSON: {"method":"oidc","aal":"aal1","completed_at":"2023-08-08T13:06:43.107679019Z","provider":"microsoft"}

Relevant configuration

No response

Version

0.13.1

On which operating system are you observing this issue?

macOS

In which environment are you deploying?

Ory Network

Additional Context

This was working before. At first I thought the problem was with me not having updated the kratos-client-java version for a long time, but upgrading to 0.13.1 did not do the trick.

@staklau staklau added the bug Something is not working. label Aug 8, 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