apple-sign-in

Apple Sign-In: How to use it for custom server endpoint authentication?

不打扰是莪最后的温柔 提交于 2020-01-21 08:57:07
问题 My use case is that once I have a user signed into my app, I use the Oauth token, resulting from the sign-in, when I make endpoint calls from my app to my custom server-- to authenticate the caller. E.g., I use Google Sign In in this way. This method (e.g., with Google Sign In) has several useful properties: 1) Updated tokens are created automatically on the client app. 2) My custom server can easily verify the validity of the token, using Google's endpoints. 3) Initial token verification can

Sign in with Apple - Different behaviour Simulator VS iPhone

。_饼干妹妹 提交于 2020-01-01 16:49:09
问题 I'm trying to setup Sign-in with Apple with Xcode (Beta 11.0 beta 6). Works great on simulator, but when I run it on my iPhone (iOS 13.1), I don't get the same display. On Simulator: On iPhone: This is how I call my "Sign in with Apple": - (IBAction)signInWithApple:(id)sender { if (@available(iOS 13.0, *)) { ASAuthorizationAppleIDProvider *appleIDProvider = [[ASAuthorizationAppleIDProvider alloc] init]; ASAuthorizationAppleIDRequest *request = [appleIDProvider createRequest]; request

Apple Sign In: Is 'user' credential returned by Apple permanent?

为君一笑 提交于 2019-12-06 11:52:49
问题 I am able to successfully access the credential returned by Apple as part of it's new (WWDC '19 -- iOS 13) Sign In With Apple library. The credential is accessed in this delegate method: extension ViewController: ASAuthorizationControllerDelegate { func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) { if let appleIDCredential = authorization.credential as? ASAuthorizationAppleIDCredential { //here is credentials . }

Apple Sign In: Is 'user' credential returned by Apple permanent?

Deadly 提交于 2019-12-04 16:48:30
I am able to successfully access the credential returned by Apple as part of it's new (WWDC '19 -- iOS 13) Sign In With Apple library. The credential is accessed in this delegate method: extension ViewController: ASAuthorizationControllerDelegate { func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) { if let appleIDCredential = authorization.credential as? ASAuthorizationAppleIDCredential { //here is credentials . } } } One then uses 'user' property to extract the user id: credential.user //returns, for example,

Sign in with Apple - Different behaviour Simulator VS iPhone

回眸只為那壹抹淺笑 提交于 2019-12-04 13:10:44
I'm trying to setup Sign-in with Apple with Xcode (Beta 11.0 beta 6). Works great on simulator, but when I run it on my iPhone (iOS 13.1), I don't get the same display. On Simulator: On iPhone: This is how I call my "Sign in with Apple": - (IBAction)signInWithApple:(id)sender { if (@available(iOS 13.0, *)) { ASAuthorizationAppleIDProvider *appleIDProvider = [[ASAuthorizationAppleIDProvider alloc] init]; ASAuthorizationAppleIDRequest *request = [appleIDProvider createRequest]; request.requestedScopes = @[ASAuthorizationScopeFullName,ASAuthorizationScopeEmail]; ASAuthorizationController

How to verify code from “Sign In with Apple”?

我的梦境 提交于 2019-11-29 12:10:14
问题 I'm trying to verify the code I got from the "Sign In with Apple" service on my Redirect Uri. I used the information from the documentation to create the post data and generate the "client_secret". The response I'm getting is: {"error":"invalid_client"} . My functions to generate the "client_secret" can be found below: function encode($data) { $encoded = strtr(base64_encode($data), '+/', '-_'); return rtrim($encoded, '='); } function generateJWT($kid, $iss, $sub, $key) { $header = [ 'alg' =>