User OAuth Scope Consents
A user OAuth scope consent resource is a record of a user’s OpenID Connect OAuth scope consents. The OAuth scope consent service gives end users the ability to control the user data they wish to share with third party applications. These consents granted through PingOne help enterprises build trust with customers who want to use third-party applications with the enterprise’s service but want control over the data they are agreeing to share.
This service provides operations to create, read, and update user OAuth scope consent resources. This service applies only to applications that have their protocol property set to OPENID_CONNECT.
|
Applications with a |
You need the Identity Data Admin role to perform operations on user oauth scope consent resources.
Expanding and filtering response data
You can expand GET {{apiPath}}/environments/{{envID}}/users{{userID}}/oauthConsents and GET {{apiPath}}/environments/{{envID}}/users/{{userID}}/oauthConsents/{{oauthConsentID}} results with the expand=applications query parameter to return additional information about the associated application in the response.
You can filter a user’s consents by application ID or by application name using the query parameters filter=application.id eq "{{appID}}" or filter=application.name eq "{{appName}}" on GET operations.
OAuth scope consent state data model
| Property | Type | Required? | Mutable? | Description |
|---|---|---|---|---|
|
Relationship |
Optional |
Mutable |
A relationship that specifies the application associated with this OAuth scope consent. |
|
String |
Optional |
Mutable |
A string that specifies the ID of the application associated with this OAuth scope consent. This property is required for applications with an |
|
String |
Optional |
Mutable |
A string that specifies the name of the application associated with this OAuth scope consent. This property is required for applications with an |
|
String |
Optional |
Mutable |
A string that specifies the application type associated with this OAuth scope consent. Options are |
|
UserAgentInfo |
Optional |
Read only |
Information that specifies the browser used to make the consent. The UserAgentInfo object includes data for |
|
Date |
Optional |
Read only |
The time when a user consent occurs. |
|
UserAgentInfo |
Optional |
Read only |
Information that specifies the device used to make the consent. The UserAgentInfo object includes data for the device |
|
String |
Optional |
Read only |
A string that specifies the ID of the environment associated with this OAuth scope consent. |
|
UserAgentInfo |
Optional |
Read only |
Information that specifies the operating system of the device used to make the consent. The UserAgentInfo object includes data for |
|
Set |
Optional |
Mutable |
A set of strings that specifies the scopes associated with this OAuth scope consent. |
|
String |
Required |
Mutable |
A string that specifies whether the consent is valid or not. Options are |
|
Relationship |
Optional |
Mutable |
A relationship that specifies the user associated with this OAuth scope consent. |
|
String |
Optional |
Mutable |
A string that specifies the ID of the user associated with this OAuth scope consent. |
|
Date |
Optional |
Read only |
The time when a user consent is updated. |