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

Integration of This With Azure B2C? #49

Closed
rcnjstudent opened this issue Aug 24, 2020 · 1 comment
Closed

Integration of This With Azure B2C? #49

rcnjstudent opened this issue Aug 24, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@rcnjstudent
Copy link

Those of us using Azure B2C for Sign in With Apple are struggling with it a bit since it doesn't return all of the values from the Apple callback that your script does. Particularly, the First Name, Last Name, Email Address (even if anonymized with Private Email feature) since that only gets sent once during the initial signup. Sign in With Apple seems to be kind of a half baked idea with them and we're not sure why they're dragging their feet on this. Is there any chance that we can take aspects of your script and make it work with Azure B2C to capture that info in the callback?

@rcnjstudent rcnjstudent added the enhancement New feature or request label Aug 24, 2020
@martincostello
Copy link
Owner

I'm not familiar with Azure B2C to know what that would entail.

The code for the Apple provider that comes via NuGet is here: https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers/tree/dev/src/AspNet.Security.OAuth.Apple

I would imagine that the relevant bits would be the code that extract the claims from the Apple-provided JWT, assuming you can get access to it during the authentication/authorization flow in Azure B2C:

https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers/blob/b475447c3b5e456cca0f954a9b9c0772b6bedd4a/src/AspNet.Security.OAuth.Apple/AppleAuthenticationHandler.cs#L108-L118

https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers/blob/b475447c3b5e456cca0f954a9b9c0772b6bedd4a/src/AspNet.Security.OAuth.Apple/AppleEmailClaimAction.cs#L26-L34

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

No branches or pull requests

2 participants