Where are Apple ClientID and Client secret?
Asked Answered
H

1

7

I have an Apple Developer Account. I'm trying use "sign in with apple" option. But that endpoint required "client ID" and "client secret" fields. I can't find my clientID and clientSecret on my Apple developer page.

Herdic answered 24/7, 2022 at 21:26 Comment(0)
B
8

Client ID is your App ID(IDENTIFIER) refer link https://developer.apple.com/account/resources/identifiers/list

Client Secret is JWT you need to create As per Apple's doc Client_Secret: A secret JSON Web Token, generated by the developer, that uses the Sign in with Apple private key associated with your developer account. Authorization code and refresh token validation requests require this parameter. Link:- https://developer.apple.com/documentation/sign_in_with_apple/generate_and_validate_tokens

I'm not sure while language you are using but if you can work with Javascript then below link which is well documented with example will help in getting Client_secret.

https://github.com/jooyoungho/apple-token-revoke-in-firebase

Benedick answered 26/7, 2022 at 13:25 Comment(1)
I find the language used for CLIENT_ID and App IDsomewhat confusing. "An App ID is a two-part string used to identify one or more apps from a single development team" (i.e. Bundle ID + Team ID). The API docs contradict this and say: "...The identifier must not include your Team ID" So I think in this context... CLIENT_ID == BUNDLE_ID ? 😅Adiaphorous

© 2022 - 2024 — McMap. All rights reserved.