/api/apis/{api_server_id}/connect_app/{client_app_id}/first-partyAdminMark an app-to-API connection first-party
Whether the connection is first-party: the app and the API server belong to the same party, so users signing in to the app for the API server (the authorization request's RFC 8707 resource) consent implicitly. Such requests get the API scopes they ask for, among those the app may be granted (the connection's scope allowances still apply), without the consent screen; the app authorization and the scope consents are recorded when the authorization code is minted, so they appear on the user's third-party access page, where the user can still withdraw them (signing in again records them again). prompt=consent still shows the consent screen. Requests that ask for none of the API server's scopes are unaffected. Platform administrators only: skipping the consent screen is a statement that the app may act for every user on the API server without asking them, which neither the API server's nor the app's managers can make for themselves. Turning it off does not withdraw the consents already recorded through it; users are asked for anything new.
put_api_apis_api_server_id_connect_app_client_app_id_first_partyAPI serversAuthentication & permissionsAdmin
Platform administrators only
- Accepted credentials
- Auth server session (refresh token cookie)
cookie "refresh_token_<auth_server_app_id>" - Access token (cookie)
cookie "access_token_<auth_server_app_id>" - Access token (Bearer)
Authorization: Bearer <JWT>
- Auth server session (refresh token cookie)
- Who may call
- Platform administrators only
Path parameters
| Name | Type | Description |
|---|---|---|
| api_server_id* | string | API server id |
| client_app_id* | string | Client application id |
Request body
Required
true) or not (false). Unknown keys are rejected.| Property | Type | Description |
|---|---|---|
| first_party* | boolean |
Responses
| Property | Type | Description |
|---|---|---|
| success* | true | |
| first_party* | boolean | Whether the connection is first-party: the app and the API server belong to the same party, so users signing in to the app for the API server (the authorization request's RFC 8707 |
Example request
curl -X PUT 'https://auth.schemavaults.com/api/apis/<api_server_id>/connect_app/<client_app_id>/first-party' \
-b 'refresh_token_<auth_server_app_id>=<value>' \
-H 'Content-Type: application/json' \
-d '{
"first_party": true
}'