apple-sign-in

failed to get credential.state and getCredentialStateForUserID

一曲冷凌霜 提交于 2020-06-15 09:59:12
问题 I can't get the credentialState from method getCredentialStateForUserID while other members got returned well. I ran the app on iPhone 8, iOS 13 simulator. - (void)authorizationController:(ASAuthorizationController *)controller didCompleteWithAuthorization:(ASAuthorization *)authorization { if ([authorization.credential isKindOfClass:[ASAuthorizationAppleIDCredential class]]) { ASAuthorizationAppleIDCredential *credential = authorization.credential; NSString *state = credential.state;

Enable as a primary App ID option is disable in Sign In with Apple - Apple ID configuration

折月煮酒 提交于 2020-06-15 05:49:48
问题 I am trying to add the "Sign In with Apple" to my existing App ID. After checking the option to enable it, the following popup was shown: with this message: If you're enabling an App ID for the first time or for a new app, enable the App ID as a primary. You can use primary App IDs on their own or to enable identifiers for related apps and websites through grouping. To enable an App ID for a related app, (for example, an App ID for the iOS version of your Mac app), group it with the existing

Sign in with Apple Java User Verification

百般思念 提交于 2020-05-25 05:04:05
问题 I've implemented the app side of the new apple feature "Sign in with Apple" but i'm unable to verificate with authorizationCode in my backend. My backend is written in java and i'm unable to generate JWT and communicate with Apple servers. 回答1: First go developer.apple.com -> Certificates, Identifiers & Profiles -> Keys. Generate a key for Apple Sign in and download this key. You can not download this key again so keep it in a safe place and don't share with others. Also your Key ID shown

How to Sign Out of Apple After Being Authenticated

时光怂恿深爱的人放手 提交于 2020-05-13 09:03:42
问题 My app has a "Sign in with the Apple" account feature. I am wondering if there is sign out feature from the Apple account. I tried the below but doesn't get success let request = ASAuthorizationAppleIDProvider().createRequest() request.requestedOperation = .operationLogout let authorizationController = ASAuthorizationController(authorizationRequests: [request]) authorizationController.performRequests() 回答1: Apple only allows currently for the user to perform a signout (iOS/watchOS/tvOS) or

How to Sign Out of Apple After Being Authenticated

核能气质少年 提交于 2020-05-13 09:02:19
问题 My app has a "Sign in with the Apple" account feature. I am wondering if there is sign out feature from the Apple account. I tried the below but doesn't get success let request = ASAuthorizationAppleIDProvider().createRequest() request.requestedOperation = .operationLogout let authorizationController = ASAuthorizationController(authorizationRequests: [request]) authorizationController.performRequests() 回答1: Apple only allows currently for the user to perform a signout (iOS/watchOS/tvOS) or

ASAuthorizationAppleIDRequest with name and mail scope returns nil values

喜欢而已 提交于 2020-04-29 07:05:18
问题 I'm implementing Sign in with Apple and noticed that the email and fullName properties of the returned ASAuthorizationAppleIDCredential are only filled on the very first Sign-In for this Apple ID. On all subsequent Sign-Ins those properties are nil. Is this a bug on iOS 13 or expected behaviour? Here is the code I'm using to start the request: @available(iOS 13.0, *) dynamic private func signInWithAppleClicked() { let request = ASAuthorizationAppleIDProvider().createRequest() request

ASAuthorizationAppleIDRequest with name and mail scope returns nil values

孤人 提交于 2020-04-29 07:05:17
问题 I'm implementing Sign in with Apple and noticed that the email and fullName properties of the returned ASAuthorizationAppleIDCredential are only filled on the very first Sign-In for this Apple ID. On all subsequent Sign-Ins those properties are nil. Is this a bug on iOS 13 or expected behaviour? Here is the code I'm using to start the request: @available(iOS 13.0, *) dynamic private func signInWithAppleClicked() { let request = ASAuthorizationAppleIDProvider().createRequest() request

How to use “Sign In with Apple” with Apple JS

别说谁变了你拦得住时间么 提交于 2020-03-21 11:24:51
问题 I would use "Sign In with Apple" in the web via Apple JS. The code example can be found here: https://developer.apple.com/documentation/signinwithapplejs/configuring_your_webpage_for_sign_in_with_apple The question now is: what is the Client ID and where can I find it. I tested the identifier of the app id on https://developer.apple.com/account/resources/identifiers/list and I tested the identifier of the service id. If I click on the button and verify with Touch ID on my mac, I got the error

How can I set a logo in the “Sign in with Apple” consent screen?

大兔子大兔子 提交于 2020-03-19 06:19:52
问题 I'm implementing 'Sign in with Apple'. How do I use my own app icon on the "Sign in with Apple" consent page instead of displaying a placeholder gray logo? 回答1: The app icon displayed in the web flow, in addition to the native Sign in with Apple sheet, will be the App Store icon for the primary application associated with your website. If you do not have an app in the App Store to associate your website with, the placeholder app icon will be displayed instead. Refer to Configure Sign In with

Apple Sign In “invalid_client”, sign JWT for authentication using PHP and openSSL

孤街醉人 提交于 2020-03-10 04:37:07
问题 I'm trying to implement Apple sign in into an Android App using this library. The main flow is described in the documentation: the library returns an authorization code on the Android side. This authorization code has to be sent to my backend which, in turn, sends it to the Apple servers in order to get back an access token. As described here and here, in order to obtain the access token we need to send to the Apple API a list of parameters, the authorization code and a signed JWT. In