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

Retrieving a SAML verified user results in a deserialization error #47

Open
maxkrass opened this issue Feb 8, 2025 · 2 comments
Open

Comments

@maxkrass
Copy link

maxkrass commented Feb 8, 2025

When I try to retrieve a user that has been created using a SAML connection, I get this error:

com.fasterxml.jackson.databind.JsonMappingException: json did not match any of the possible type references: [com.clerk.backend_api.models.components.Oauth, com.clerk.backend_api.models.components.Admin, com.clerk.backend_api.models.components.Otp], json=
{"status":"verified","strategy":"saml","attempts":null,"expire_at":null}

The json looks like a com.clerk.backend_api.models.components.Admin class, however the VerificationStrategy enum only has 'admin' as a legal value. As you can see, for some users the strategy might differ. This seems to be a quirk of the underlying Clerk API

@maxkrass
Copy link
Author

maxkrass commented Feb 9, 2025

I just encountered the same issue for users that have the verification strategy ticket

@luka-horvat-povio
Copy link

I've also just hit this issue when calling sdk.users().get(id)

json did not match any of the possible type references: [com.clerk.backend_api.models.components.Oauth, com.clerk.backend_api.models.components.Admin, com.clerk.backend_api.models.components.Otp], json=
{"status":"verified","strategy":"email_link","attempts":null,"expire_at":1739212210575,"verified_at_client":"client_2srRK1Fg9z8MgdHn1YLFv29CjZx"}

This just started happening. This is a core feature that is now broken and it kinda ruing my confidence in this SDK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants