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

Testing Sign in With Apple results in cannot unmarshal string into Go struct field UserInfo.email_verified of type bool when requesting email scope #840

Closed
6 tasks done
PatrickMilroy opened this issue Sep 12, 2023 · 3 comments
Labels
bug This points to a verified bug in the code

Comments

@PatrickMilroy
Copy link

Checklist

  • I have looked into the README and have not found a suitable solution or answer.
  • I have looked into the documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have upgraded to the latest version of this project and the issue still persists.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Description

When testing client and using an Apple social provider and requesting the scopes openid,profile,email, The browser login succeeds, but in the CLI I receive an error

▸    failed to fetch user info: cannot decode response: json: cannot unmarshal string into Go struct field UserInfo.email_verified of type bool

If I do not request the scope email the process suceeds and returns userinfo, an access token and id token.

I have tested sucessfuly tested the same client using both a Google Connection and Auth0 Username/Password Database connection while requesting the scopes openid,profile,email

Expectation

To be returned an access token, an id token and userinfo relating to the email scope (eg email, email_verified)

Reproduction

  1. Given an Application/Client and a Apple Social Connection
  2. When running auth0 test login --scopes openid,profile,email and using the Apple Social Connection
  3. The browser login succeeds, but the CLI returns the error above

Auth0 CLI version

1.0.1

@PatrickMilroy PatrickMilroy added the bug This points to a verified bug in the code label Sep 12, 2023
@willvedd
Copy link
Contributor

@PatrickMilroy Thanks for opening this ticket. Apple an identify provider returns a string encoded boolean value for email_verified as opposed to other IdPs which return a normal boolean. I'm going to work with the Go SDK folks to get this resolved.

@willvedd
Copy link
Contributor

This has been fixed with v1.1.1. Please upgrade and give it a go!

@PatrickMilroy
Copy link
Author

PatrickMilroy commented Sep 27, 2023

@willvedd Thanks! Tested and working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This points to a verified bug in the code
Projects
None yet
Development

No branches or pull requests

2 participants