Cannot Update Scopes in Apple Social Connection
Last Updated:
Overview
This article explains the correct method for updating the Apple social connection's scopes.
When passing the following payload, the scopes are not updated:
{
"options": {
"kid": "something",
"team_id": "something",
"client_id": "something",
"app_secret": "something",
"scope": ["email", "name"]
},
"is_domain_connection": false,
"enabled_clients": [ ]
}Applies To
- Apple Social Connection
Cause
Apple Social Connection Scopes are updated by adding flags to the payload, as those scopes are handled as flags and not as a "scopes" field.
Solution
A valid way to handle Apple social connections scopes for both the creation and update of this kind of social connection would be:
{
"options": {
"client_id": "<clientID>",
"name": true,
"email": true
},
"is_domain_connection": <boolean>,
"enabled_clients": [
<enabled clients>
]
}