Sign in with Apple REST API

RSS for tag

The Sign in with Apple REST API allows your app's servers to communicate with Apple’s authentication servers.

Posts under Sign in with Apple REST API tag

200 Posts

Post

Replies

Boosts

Views

Activity

How to remove the Use different apple id option while implementing Sign in with apple in Reactjs + React Native App?
I'm trying to implement Sign in with apple My tech stack of frontend include React Native + the Reactjs Problem is that I want to remove the Use a different Apple Id option as shown in the images below 1st one is of Binance which has removed the option that I'm talking about 2nd one is my app where this option is coming I read the full documentation of apple developer but found nothing Kindly help me out
0
0
1k
Jul ’22
405 ERROR when using 'sign in with apple'
We are trying to adopt social sign in feature with 'sign in with apple'. We thoroughly went through documents and managed to successfully connect to apple sign in page from our website. However, when a user type in the information necessary to sign in, the id_token and the code in the response sent from Apple's server fail to reach our front end server and display 405 Method Not Allowed error. We believe this is the issue with the response_mode in the parameter of the link we use when the button('sign in with apple) is clicked. In our case, response_mode is set to form_post to get id_token and the users' email from scope parameter. It seems the form_post requests using POST method and this is getting blocked by AWS S3 or the CloudFront service that it nests in. We tried to change the way S3 and CloudFront work and let POST method get in but it seems it is not supported. What kind of measures can we take when we really need Apple users' email for sign up and sign in feature? It seems form_post mode is necessary if we want the userinfo we need.
1
2
2.4k
Jul ’22
405 Method not allowed
Please, I am implementing sign-in with an apple on an android, but after a successful sign flow, I don't get the authorization code I need to send to the backend server but instead receive an error which says the "405 methods not allowed." I have provided the correct credentials (client_id, redirect_url, and scope) and followed the documentation requirements, but still, I can not get the implementation done. I'll be much appreciated for any support. Thanks.
0
0
1.5k
Jul ’22
Facing errors in adding Sign in with Apple
i have inserted a link of error which is coming after logging in on apple id and the error is "Cannot POST /home" i am using this url for sign in with apple-> "https://appleid.apple.com/auth/authorize?client_id=" + this.apple_clientId + "&redirect_uri="+ this.appleuri + "&response_type=code%20id_token" + "&scope=name%20email" +"&response_mode=form_post" Please help me to correct this error
0
0
641
Jul ’22
revoke Apple Token Api, Always Return 200
I received the mail below. Starting June 30, 2022, apps submitted to the App Store that support account creation must also include an option to initiate account deletion. We noticed this app may support account creation. If it already offers account deletion or you’re working to implement it, we appreciate your efforts to follow the App Store Review Guidelines. Apps submitted after June 30 that do not comply with the account deletion requirements in guideline 5.1.1(v) will not pass review. https://appleid.apple.com/auth/revoke However, the revoke api is not working properly. Even if you throw an incorrect key value, 200 is always returned. Is the API working properly? What should I do?
7
4
4.3k
Jul ’22
signinwithapple you'll need to use the Sign in with Apple REST API to revoke user tokens when deleting an account
Apple requires that the delete account operation be provided in the app on June 30. Regarding signinwithapple, the Apple website says that if your app offers Sign in with Apple, you'll need to use the Sign in with Apple REST API to revoke user tokens when deleting an account. Currently connected to signinwithapple, jwt verification is used in the background, and Apple api is not requested to complete verification, please refer to https://blog.csdn.net/w_monster/article/details/124171787 Method 1: id_token verification. Question: In this case, to delete the Apple account, do I still need to call Apple's REST API?
1
1
1.3k
Jun ’22
Does Sign in with Apple support the Logout Endpoint in line with the OpenID Connect specification?
I am investigating Sign in with Apple in detail and its relation with OpenID Connect. In line with this, it is known if Sign In with Apple supports the OpenID spec Logout endpoint? (https://medium.com/@robert.broeckelmann/openid-connect-logout-eccc73df758f) (https://openid.net/specs/openid-connect-frontchannel-1_0.html) Thanks, Dan
0
0
792
Jun ’22
How to disable Hide My Email for new accounts (this is a banking app)
Usually, people respond to these types of posts with things like: "honor the users choice here" This isn't about choice. We are a bank. A literal bank. For regulatory reasons, we need to collect the user's email during onboarding. It's used for legal communications including bank statements, as well as compliance with anti money laundering laws. In fact, email is one of the least invasive things we collect. Banks need to collect SSN, mailing/billing addresses, full legal names, phone numbers, and more. If Apple's response was, "there's no way to disable Hide My Email", then we would be legally required to have entirely separate UI after the "Sign in with Apple" screen where we collect and verify their real email. Two email auth screens. By telling us to NOT disable Hide My Email, you're saying that we need to have separate email collection UI, or we need to abandon Sign in with Apple entirely and go with custom email/password auth.
1
0
1.7k
Jun ’22
server api api.storekit.itunes.apple.com Unauthorized error
I am testing the apple server api. Every works fine in the sandbox environment. But when I want to change to url from sandbox to prod environment, I only get 401 unauthorized response. I am using the same way to generate jwt token in both sandbox and prod. Is the jwt token different in this two environments? Can anybody help me with this problem?
1
0
733
May ’22
Connection to appleid.apple.com/auth/keys refused
The server IP is restricted by appleid.apple.com. I tried several ways to access but was denied. In this case, how can I access Sign in with Apple? Under linux system, curl https://appleid.apple.com The result returns:Failed connect to appleid.apple.com:443; curl http://appleid.apple.com The result returns:Failed connect to appleid.apple.com:80; The server can access other websites except appleid.apple.com
4
0
2.4k
May ’22
Apple API
Hello fellas, I wanted to build a website where users can ping my iPhone, but I'm facing some trouble on the back-end side. I was wondering if there is an API for such a thing that would help and save a lot of time. Note I thought of using Findmyiphone but didn't really get the hang of it, and didn't know how to use it to get what I want Would love to hear out from you people regarding any thoughts! Thanks.
1
0
842
May ’22
Regarding API which provides apple product details
Hi, Any my organization there are many apple products, i am creating an app for organization. in that app barcode scan facility is their, now i am looking for apple api which can provide details after scanning to barcode like Product type, Model number..etc, is there any api available at apple & what is charges for that api. Thanks, Yusuf Shaikh
0
0
638
Apr ’22
Sign In With Apple
Initially, our application provided the user with SIWA without requesting an email address. A bit later, the user authorization flow was changed and the email area for authorization request was added. However, the updated areas are not reflected in further responses, whether it is a native iOS or a web client. Both give the same result without email in JWT claims until the user manually cancels the authorization of the application from his Apple ID. Is there another way of getting email from already authorized user except revoking an access to our app?
0
0
1.3k
Apr ’22
MusicKit User Token Issues
I'm building a music streaming application using Music Kit JS. The frontend uses Vue and the backend uses Express. That said I had a few questions. I'm trying to generate a token that can be used with the music player configuration. This is how I have it setup currently:   const mk = await (window as any).MusicKit;   musicKit.value = await mk.configure({     developerToken: "DevTokenExample", userToken:"userTokenExample",     app: {       name: "Apple Streaming Example",       build: "1.0.0",     },   }); I've omitted my developer token and user token. I'm able to stream music just fine, but it plays "previews" of the songs. I have a login system setup for Apple OAuth authentication using this process: https://developer.apple.com/documentation/sign_in_with_apple/sign_in_with_apple_js And all that works fine, I can get tokens and everything. I tried using the access_token as the userToken in the music kit configuration and the player still plays the previews of the songs. I also used the id_token for the userToken to see if that would make a difference and it didn't do anything different, still played the previews. To clarify, yes the account used is signed up to Apple Music. Since that didn't work, I then used the "musicKit.authorize()" method which gave me a popup and I was trying to log in like that. Once I added in my 2FA code it just says there was an error connecting and I see in the URL an "UNABLE TO VERIFY JWT". The few posts regarding that issue don't seem to have any fixes. My questions are: Can I use the Sign In With Apple Rest API method shown for the music kit user token? If I can't use the Rest API method, how do I resolve the JWT error when using musicKit.authorize()?
3
0
3.1k
Apr ’22
Sign in with Apple doesn't return user email
Hello, We've stumbled upon the issue with "Sign in with Apple" functionality today. It worked absolutely fine for quite a long time on our dev instances, but today as we've deployed it to production - it stopped working both on dev and prod. The issue is that idToken doesn't have email field for all the requests except 1 specific email for some unknown reason. Because of this - we cannot identify the user in our database. We've tried to test with multiple Apple accounts, including the ones we've already used, the ones that were never used for this app and even the absolutely new accounts with no luck (except 1 specific account). What we do: Redirect user to authorization page like this: https://appleid.apple.com/auth/authorize?client_id={SERVICE_ID}&redirect_uri={REDIRECT_URI}&response_type=code After authorization user is redirected to the redirect_uri where we get state and code. On the server-side of web app we create client_secret signed JWT (as required by documentation) and send POST https://appleid.apple.com/auth/token request with the following data: { code, client_id: result.Item.clientId, client_secret, grant_type: "authorization_code", } In response we get JSON with "access_token", "token_type", "expires_in", "refresh_token" and "id_token" We parse "id_token" to get email. Code we use to parse: const idToken = JSON.parse(body).id_token || ""; const [, infoPart] = idToken.split("."); const buff = Buffer.from(infoPart, "base64"); const text = buff.toString("ascii"); const json = JSON.parse(text); if (json.hasOwnProperty("email")) { endUserEmail = json.email; } The issue is that for all accounts we've tested except 1 - there's no "email" field. We've also tried to use AWS Cognito to verify if this is the issue with our implementation. They specify scope=email%20name&response_mode=form_post in their request. Unfortunately, the result is the same - Cognito returns an error saying that there's no email. Is it some kind of misconfiguration on our side? What should we do to allow users to sign in with Apple ID? Thank you, Dmitrii Khizhniakov Web developer Graebert GmbH https://graebert.com
0
2
1.6k
Apr ’22
Apple Search Ads API - Multiple Countries/Regions
I'm generating reports for a few campaigns with the Search Ads API. I've been running into this problem, where if a campaign is running in multiple countries (in my specific case: ['AR', 'CL', 'CO', 'PE']), I'm unable to find a way to get more granular results. The report only shows that list in the metadata. So my question is: is there any way to determine how well the ad performs in each country in the list as opposed to seeing the results grouped together? json payload: json = { "startTime": start_date, "endTime": end_date, "selector": { "orderBy": [ { "field": sort_field, "sortOrder": sort_order } ], "conditions": conditions, "pagination": { "offset": offset, "limit": limit } }, "timeZone": "UTC", "returnRecordsWithNoMetrics": no_metrics, "returnRowTotals": return_row_totals, "granularity":granularity, "returnGrandTotals": return_grand_totals } post request: requests.post("https://api.searchads.apple.com/api/v4/reports/campaigns", json=json, headers=headers) campaign metadata: {'campaignId': CAMPAIGN_ID, 'campaignName': CAMPAIGN_NAME, 'deleted': False, 'campaignStatus': 'PAUSED', 'app': {'appName': APP_NAME, 'adamId': ADAMID}, 'servingStatus': 'NOT_RUNNING', 'servingStateReasons': ['PAUSED_BY_USER'], 'countriesOrRegions': ['AR', 'CL', 'CO', 'PE'], 'modificationTime': '2021-12-14T23:42:57.281', 'totalBudget': {'amount': AMOUNT, 'currency': 'USD'}, 'dailyBudget': {'amount': AMOUNT, 'currency': 'USD'}, 'displayStatus': 'PAUSED', 'supplySources': ['APPSTORE_SEARCH_RESULTS'], 'adChannelType': 'SEARCH', 'orgId': ORG_ID, 'countryOrRegionServingStateReasons': {}, 'billingEvent': 'TAPS'} As you can see, there's a list of countries. At the moment, I am unaware of how to break it down into specific countries.
1
0
1.6k
Mar ’22
Extracting user's email using IdentityToken
On my client mobile app I perform apple-id authorization and obtain IdentityToken from Apple server. Now I want to send this IdentityToken (looks like string xJahN102mdPq2jHAiisPsla012nYahKL ) to my application server. And I want to get user's email on my application server via processing this token. For google (for example) it is plain simple way, I just make a GET request to: https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=google_identity_token And in case the token is correct, Google returns JSON with the user's email inside. What apple server endpoint should I call and what HTTP request should be done (GET, POST, etc) to obtain user's email using IdentityToken ? Thank you.
1
0
3.4k
Mar ’22
How to remove the Use different apple id option while implementing Sign in with apple in Reactjs + React Native App?
I'm trying to implement Sign in with apple My tech stack of frontend include React Native + the Reactjs Problem is that I want to remove the Use a different Apple Id option as shown in the images below 1st one is of Binance which has removed the option that I'm talking about 2nd one is my app where this option is coming I read the full documentation of apple developer but found nothing Kindly help me out
Replies
0
Boosts
0
Views
1k
Activity
Jul ’22
405 ERROR when using 'sign in with apple'
We are trying to adopt social sign in feature with 'sign in with apple'. We thoroughly went through documents and managed to successfully connect to apple sign in page from our website. However, when a user type in the information necessary to sign in, the id_token and the code in the response sent from Apple's server fail to reach our front end server and display 405 Method Not Allowed error. We believe this is the issue with the response_mode in the parameter of the link we use when the button('sign in with apple) is clicked. In our case, response_mode is set to form_post to get id_token and the users' email from scope parameter. It seems the form_post requests using POST method and this is getting blocked by AWS S3 or the CloudFront service that it nests in. We tried to change the way S3 and CloudFront work and let POST method get in but it seems it is not supported. What kind of measures can we take when we really need Apple users' email for sign up and sign in feature? It seems form_post mode is necessary if we want the userinfo we need.
Replies
1
Boosts
2
Views
2.4k
Activity
Jul ’22
405 Method not allowed
Please, I am implementing sign-in with an apple on an android, but after a successful sign flow, I don't get the authorization code I need to send to the backend server but instead receive an error which says the "405 methods not allowed." I have provided the correct credentials (client_id, redirect_url, and scope) and followed the documentation requirements, but still, I can not get the implementation done. I'll be much appreciated for any support. Thanks.
Replies
0
Boosts
0
Views
1.5k
Activity
Jul ’22
Facing errors in adding Sign in with Apple
i have inserted a link of error which is coming after logging in on apple id and the error is "Cannot POST /home" i am using this url for sign in with apple-> "https://appleid.apple.com/auth/authorize?client_id=" + this.apple_clientId + "&redirect_uri="+ this.appleuri + "&response_type=code%20id_token" + "&scope=name%20email" +"&response_mode=form_post" Please help me to correct this error
Replies
0
Boosts
0
Views
641
Activity
Jul ’22
revoke Apple Token Api, Always Return 200
I received the mail below. Starting June 30, 2022, apps submitted to the App Store that support account creation must also include an option to initiate account deletion. We noticed this app may support account creation. If it already offers account deletion or you’re working to implement it, we appreciate your efforts to follow the App Store Review Guidelines. Apps submitted after June 30 that do not comply with the account deletion requirements in guideline 5.1.1(v) will not pass review. https://appleid.apple.com/auth/revoke However, the revoke api is not working properly. Even if you throw an incorrect key value, 200 is always returned. Is the API working properly? What should I do?
Replies
7
Boosts
4
Views
4.3k
Activity
Jul ’22
Unable to retrieve data from apple sign in
We are not able to retrieve name and, address and ethnicity after using Sign in with Apple. We are able to get email only. May I know where can we get resource to retrieve these information? Please advise.
Replies
0
Boosts
0
Views
971
Activity
Jun ’22
Is Apple sign in with AuthentificationService required calling REST API revoke?
We use AuthService to authenticate users using native framework. Framework doesn't offer access/refresh token which we could send. Should we file revoke REST API for account deleting? its all abount 30th June Apples rule.
Replies
1
Boosts
0
Views
936
Activity
Jun ’22
signinwithapple you'll need to use the Sign in with Apple REST API to revoke user tokens when deleting an account
Apple requires that the delete account operation be provided in the app on June 30. Regarding signinwithapple, the Apple website says that if your app offers Sign in with Apple, you'll need to use the Sign in with Apple REST API to revoke user tokens when deleting an account. Currently connected to signinwithapple, jwt verification is used in the background, and Apple api is not requested to complete verification, please refer to https://blog.csdn.net/w_monster/article/details/124171787 Method 1: id_token verification. Question: In this case, to delete the Apple account, do I still need to call Apple's REST API?
Replies
1
Boosts
1
Views
1.3k
Activity
Jun ’22
Does Sign in with Apple support the Logout Endpoint in line with the OpenID Connect specification?
I am investigating Sign in with Apple in detail and its relation with OpenID Connect. In line with this, it is known if Sign In with Apple supports the OpenID spec Logout endpoint? (https://medium.com/@robert.broeckelmann/openid-connect-logout-eccc73df758f) (https://openid.net/specs/openid-connect-frontchannel-1_0.html) Thanks, Dan
Replies
0
Boosts
0
Views
792
Activity
Jun ’22
How to disable Hide My Email for new accounts (this is a banking app)
Usually, people respond to these types of posts with things like: "honor the users choice here" This isn't about choice. We are a bank. A literal bank. For regulatory reasons, we need to collect the user's email during onboarding. It's used for legal communications including bank statements, as well as compliance with anti money laundering laws. In fact, email is one of the least invasive things we collect. Banks need to collect SSN, mailing/billing addresses, full legal names, phone numbers, and more. If Apple's response was, "there's no way to disable Hide My Email", then we would be legally required to have entirely separate UI after the "Sign in with Apple" screen where we collect and verify their real email. Two email auth screens. By telling us to NOT disable Hide My Email, you're saying that we need to have separate email collection UI, or we need to abandon Sign in with Apple entirely and go with custom email/password auth.
Replies
1
Boosts
0
Views
1.7k
Activity
Jun ’22
server api api.storekit.itunes.apple.com Unauthorized error
I am testing the apple server api. Every works fine in the sandbox environment. But when I want to change to url from sandbox to prod environment, I only get 401 unauthorized response. I am using the same way to generate jwt token in both sandbox and prod. Is the jwt token different in this two environments? Can anybody help me with this problem?
Replies
1
Boosts
0
Views
733
Activity
May ’22
Connection to appleid.apple.com/auth/keys refused
The server IP is restricted by appleid.apple.com. I tried several ways to access but was denied. In this case, how can I access Sign in with Apple? Under linux system, curl https://appleid.apple.com The result returns:Failed connect to appleid.apple.com:443; curl http://appleid.apple.com The result returns:Failed connect to appleid.apple.com:80; The server can access other websites except appleid.apple.com
Replies
4
Boosts
0
Views
2.4k
Activity
May ’22
Apple API
Hello fellas, I wanted to build a website where users can ping my iPhone, but I'm facing some trouble on the back-end side. I was wondering if there is an API for such a thing that would help and save a lot of time. Note I thought of using Findmyiphone but didn't really get the hang of it, and didn't know how to use it to get what I want Would love to hear out from you people regarding any thoughts! Thanks.
Replies
1
Boosts
0
Views
842
Activity
May ’22
Regarding API which provides apple product details
Hi, Any my organization there are many apple products, i am creating an app for organization. in that app barcode scan facility is their, now i am looking for apple api which can provide details after scanning to barcode like Product type, Model number..etc, is there any api available at apple & what is charges for that api. Thanks, Yusuf Shaikh
Replies
0
Boosts
0
Views
638
Activity
Apr ’22
Scope issue while using SignIn with Apple
Hello, I'm having trouble retrieving user info on a SignIn use case. To start authentication process I send a request with a scope param like scope=name email. It is sent URL encoded. However after successful login, I do get the email information in the IdToken along with the sub etc. but the name is never provided, any idea what I'm doing wrong ?
Replies
0
Boosts
0
Views
770
Activity
Apr ’22
Sign In With Apple
Initially, our application provided the user with SIWA without requesting an email address. A bit later, the user authorization flow was changed and the email area for authorization request was added. However, the updated areas are not reflected in further responses, whether it is a native iOS or a web client. Both give the same result without email in JWT claims until the user manually cancels the authorization of the application from his Apple ID. Is there another way of getting email from already authorized user except revoking an access to our app?
Replies
0
Boosts
0
Views
1.3k
Activity
Apr ’22
MusicKit User Token Issues
I'm building a music streaming application using Music Kit JS. The frontend uses Vue and the backend uses Express. That said I had a few questions. I'm trying to generate a token that can be used with the music player configuration. This is how I have it setup currently:   const mk = await (window as any).MusicKit;   musicKit.value = await mk.configure({     developerToken: "DevTokenExample", userToken:"userTokenExample",     app: {       name: "Apple Streaming Example",       build: "1.0.0",     },   }); I've omitted my developer token and user token. I'm able to stream music just fine, but it plays "previews" of the songs. I have a login system setup for Apple OAuth authentication using this process: https://developer.apple.com/documentation/sign_in_with_apple/sign_in_with_apple_js And all that works fine, I can get tokens and everything. I tried using the access_token as the userToken in the music kit configuration and the player still plays the previews of the songs. I also used the id_token for the userToken to see if that would make a difference and it didn't do anything different, still played the previews. To clarify, yes the account used is signed up to Apple Music. Since that didn't work, I then used the "musicKit.authorize()" method which gave me a popup and I was trying to log in like that. Once I added in my 2FA code it just says there was an error connecting and I see in the URL an "UNABLE TO VERIFY JWT". The few posts regarding that issue don't seem to have any fixes. My questions are: Can I use the Sign In With Apple Rest API method shown for the music kit user token? If I can't use the Rest API method, how do I resolve the JWT error when using musicKit.authorize()?
Replies
3
Boosts
0
Views
3.1k
Activity
Apr ’22
Sign in with Apple doesn't return user email
Hello, We've stumbled upon the issue with "Sign in with Apple" functionality today. It worked absolutely fine for quite a long time on our dev instances, but today as we've deployed it to production - it stopped working both on dev and prod. The issue is that idToken doesn't have email field for all the requests except 1 specific email for some unknown reason. Because of this - we cannot identify the user in our database. We've tried to test with multiple Apple accounts, including the ones we've already used, the ones that were never used for this app and even the absolutely new accounts with no luck (except 1 specific account). What we do: Redirect user to authorization page like this: https://appleid.apple.com/auth/authorize?client_id={SERVICE_ID}&redirect_uri={REDIRECT_URI}&response_type=code After authorization user is redirected to the redirect_uri where we get state and code. On the server-side of web app we create client_secret signed JWT (as required by documentation) and send POST https://appleid.apple.com/auth/token request with the following data: { code, client_id: result.Item.clientId, client_secret, grant_type: "authorization_code", } In response we get JSON with "access_token", "token_type", "expires_in", "refresh_token" and "id_token" We parse "id_token" to get email. Code we use to parse: const idToken = JSON.parse(body).id_token || ""; const [, infoPart] = idToken.split("."); const buff = Buffer.from(infoPart, "base64"); const text = buff.toString("ascii"); const json = JSON.parse(text); if (json.hasOwnProperty("email")) { endUserEmail = json.email; } The issue is that for all accounts we've tested except 1 - there's no "email" field. We've also tried to use AWS Cognito to verify if this is the issue with our implementation. They specify scope=email%20name&response_mode=form_post in their request. Unfortunately, the result is the same - Cognito returns an error saying that there's no email. Is it some kind of misconfiguration on our side? What should we do to allow users to sign in with Apple ID? Thank you, Dmitrii Khizhniakov Web developer Graebert GmbH https://graebert.com
Replies
0
Boosts
2
Views
1.6k
Activity
Apr ’22
Apple Search Ads API - Multiple Countries/Regions
I'm generating reports for a few campaigns with the Search Ads API. I've been running into this problem, where if a campaign is running in multiple countries (in my specific case: ['AR', 'CL', 'CO', 'PE']), I'm unable to find a way to get more granular results. The report only shows that list in the metadata. So my question is: is there any way to determine how well the ad performs in each country in the list as opposed to seeing the results grouped together? json payload: json = { "startTime": start_date, "endTime": end_date, "selector": { "orderBy": [ { "field": sort_field, "sortOrder": sort_order } ], "conditions": conditions, "pagination": { "offset": offset, "limit": limit } }, "timeZone": "UTC", "returnRecordsWithNoMetrics": no_metrics, "returnRowTotals": return_row_totals, "granularity":granularity, "returnGrandTotals": return_grand_totals } post request: requests.post("https://api.searchads.apple.com/api/v4/reports/campaigns", json=json, headers=headers) campaign metadata: {'campaignId': CAMPAIGN_ID, 'campaignName': CAMPAIGN_NAME, 'deleted': False, 'campaignStatus': 'PAUSED', 'app': {'appName': APP_NAME, 'adamId': ADAMID}, 'servingStatus': 'NOT_RUNNING', 'servingStateReasons': ['PAUSED_BY_USER'], 'countriesOrRegions': ['AR', 'CL', 'CO', 'PE'], 'modificationTime': '2021-12-14T23:42:57.281', 'totalBudget': {'amount': AMOUNT, 'currency': 'USD'}, 'dailyBudget': {'amount': AMOUNT, 'currency': 'USD'}, 'displayStatus': 'PAUSED', 'supplySources': ['APPSTORE_SEARCH_RESULTS'], 'adChannelType': 'SEARCH', 'orgId': ORG_ID, 'countryOrRegionServingStateReasons': {}, 'billingEvent': 'TAPS'} As you can see, there's a list of countries. At the moment, I am unaware of how to break it down into specific countries.
Replies
1
Boosts
0
Views
1.6k
Activity
Mar ’22
Extracting user's email using IdentityToken
On my client mobile app I perform apple-id authorization and obtain IdentityToken from Apple server. Now I want to send this IdentityToken (looks like string xJahN102mdPq2jHAiisPsla012nYahKL ) to my application server. And I want to get user's email on my application server via processing this token. For google (for example) it is plain simple way, I just make a GET request to: https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=google_identity_token And in case the token is correct, Google returns JSON with the user's email inside. What apple server endpoint should I call and what HTTP request should be done (GET, POST, etc) to obtain user's email using IdentityToken ? Thank you.
Replies
1
Boosts
0
Views
3.4k
Activity
Mar ’22