Skip to content

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

@staklau

Description

@staklau

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is not working.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions