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
allow dynamic client_ids #15
Conversation
@maxencehenneron Did this work for you? I used your code, configured the provider :apple, ENV['APPLE_CLIENT_ID'], '',
{
authorized_client_ids: ['com.xxx.www'],
provider_ignores_state: true,
scope: 'email name',
team_id: ENV['APPLE_TEAM_ID'],
key_id: ENV['APPLE_KEY_ID'],
pem: ENV['APPLE_PRIVATE_KEY']
} and did not get it to work for the native iOS flow. |
@maxencehenneron I got this to work. I just needed the JWT sent as |
@nhosoya I can confirm this branch works as expected. |
@nhosoya you think we can get this merged sometime soon. will greatly help with our release. appreciate your help 🙏 |
Yes, I'm in the same situation. @nhosoya are you available to review this? |
hello, this is really needed, do you have any idea when will this merge? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@maxencehenneron @LesterKim
Sorry for the very late response. And thank you.
LGTM!!
Thank you, @nhosoya . Are you planning to publish a new version of the gem to rubygems.org ? |
@udipl |
@ramimassoud FYI |
@maxencehenneron @LesterKim @nhosoya How did you guys set up Sign In with Apple with the native iOS flow (outside of the browser)? Your help is greatly appreciated. |
The iOS client has to send the JSON web token (JWT) as the parameter Edit: It is |
@LesterKim Thanks for the quick response, currently our iOS client is using a WKWebview that opens the web login/signup page, so essentially the signup/signin is being shared between our web and iOS app. Do you know if we have to register another application in the Apple Developer Portal? We have currently registered just our web application. |
You might have to register another application in the Apple Developer Portal. That is what I did at Blue Apron. @john-mejia Please correct me if I am wrong. |
When using Sign In with Apple with the native iOS flow (outside of the browser), the client_id needs to be set to the app bundle id. I want to support both web login and native login, so I need to dynamically change the client_id.
This PR adds the possibility to support a dynamic client_id.
Here's the list of changes:
This is the implementation omniauth-google-oauth2 used (zquestz/omniauth-google-oauth2@1cd603b#diff-d61fbf1f9b01eceb09b00d9f200680ca)