Use this API to implement OAuth client functionality.
With this functionality in place, users with the appropriate security scopes can create and configure OAuth clients to use as a way to obtain authorization to use the Identity Security Cloud REST API.
Refer to Authentication for more information about OAuth and how it works with the Identity Security Cloud REST API.
Client Error - Returned if the request body is invalid.
ErrorResponseDto
-
401
Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.
ListAccessModelMetadataAttribute401Response
-
403
Forbidden - Returned if the user you are running as, doesn't have access to this end-point.
ErrorResponseDto
-
429
Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.
ListAccessModelMetadataAttribute429Response
-
500
Internal Server Error - Returned if there is an unexpected error.
ErrorResponseDto
-
HTTP request headers
Content-Type: application/json
Accept: application/json
Example
importsailpoint.betafromsailpoint.beta.models.create_o_auth_client_requestimportCreateOAuthClientRequestfromsailpoint.beta.models.create_o_auth_client_responseimportCreateOAuthClientResponsefromsailpoint.beta.restimportApiExceptionfrompprintimportpprintcreate_o_auth_client_request={"internal":false,"businessName":"Acme-Solar","description":"An API client used for the authorization_code, refresh_token, and client_credentials flows","refreshTokenValiditySeconds":86400,"type":"CONFIDENTIAL","redirectUris":["http://localhost:12345","http://localhost:67890"],"enabled":true,"accessType":"OFFLINE","grantTypes":["AUTHORIZATION_CODE","CLIENT_CREDENTIALS","REFRESH_TOKEN"],"strongAuthSupported":false,"homepageUrl":"http://localhost:12345","accessTokenValiditySeconds":750,"scope":["demo:api-client-scope:first","demo:api-client-scope:second"],"name":"Demo API Client","claimsSupported":false}# CreateOAuthClientRequest | try:# Create OAuth ClientResult=create_o_auth_client_request.from_json(create_o_auth_client_request)api_response=api_instance.create_oauth_client(Result)# Below is a request that includes all optional parameters# api_response = api_instance.create_oauth_client(Result)print("The response of OAuthClientsApi->create_oauth_client:\n")pprint(api_response)exceptExceptionase:print("Exception when calling OAuthClientsApi->create_oauth_client: %s\n"%e)
Client Error - Returned if the request body is invalid.
ErrorResponseDto
-
401
Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.
ListAccessModelMetadataAttribute401Response
-
403
Forbidden - Returned if the user you are running as, doesn't have access to this end-point.
ErrorResponseDto
-
404
Not Found - returned if the request URL refers to a resource or object that does not exist
ErrorResponseDto
-
429
Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.
ListAccessModelMetadataAttribute429Response
-
500
Internal Server Error - Returned if there is an unexpected error.
ErrorResponseDto
-
HTTP request headers
Content-Type: Not defined
Accept: application/json
Example
importsailpoint.betafromsailpoint.beta.restimportApiExceptionfrompprintimportpprintid='ef38f94347e94562b5bb8424a56397d8'# str | The OAuth client id # str | The OAuth client idtry:# Delete OAuth Clientapi_instance.delete_oauth_client(id)# Below is a request that includes all optional parameters# api_instance.delete_oauth_client(id)exceptExceptionase:print("Exception when calling OAuthClientsApi->delete_oauth_client: %s\n"%e)
Client Error - Returned if the request body is invalid.
ErrorResponseDto
-
401
Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.
ListAccessModelMetadataAttribute401Response
-
403
Forbidden - Returned if the user you are running as, doesn't have access to this end-point.
ErrorResponseDto
-
404
Not Found - returned if the request URL refers to a resource or object that does not exist
ErrorResponseDto
-
429
Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.
ListAccessModelMetadataAttribute429Response
-
500
Internal Server Error - Returned if there is an unexpected error.
ErrorResponseDto
-
HTTP request headers
Content-Type: Not defined
Accept: application/json
Example
importsailpoint.betafromsailpoint.beta.models.get_o_auth_client_responseimportGetOAuthClientResponsefromsailpoint.beta.restimportApiExceptionfrompprintimportpprintid='ef38f94347e94562b5bb8424a56397d8'# str | The OAuth client id # str | The OAuth client idtry:# Get OAuth Clientapi_response=api_instance.get_oauth_client(id)# Below is a request that includes all optional parameters# api_response = api_instance.get_oauth_client(id)print("The response of OAuthClientsApi->get_oauth_client:\n")pprint(api_response)exceptExceptionase:print("Exception when calling OAuthClientsApi->get_oauth_client: %s\n"%e)
Filter results using the standard syntax described in V3 API Standard Collection Parameters Filtering is supported for the following fields and operators: lastUsed: le, isnull
Client Error - Returned if the request body is invalid.
ErrorResponseDto
-
401
Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.
ListAccessModelMetadataAttribute401Response
-
403
Forbidden - Returned if the user you are running as, doesn't have access to this end-point.
ErrorResponseDto
-
429
Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.
ListAccessModelMetadataAttribute429Response
-
500
Internal Server Error - Returned if there is an unexpected error.
ErrorResponseDto
-
HTTP request headers
Content-Type: Not defined
Accept: application/json
Example
importsailpoint.betafromsailpoint.beta.models.get_o_auth_client_responseimportGetOAuthClientResponsefromsailpoint.beta.restimportApiExceptionfrompprintimportpprintfilters='lastUsed le 2023-02-05T10:59:27.214Z'# str | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **lastUsed**: *le, isnull* (optional) # str | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **lastUsed**: *le, isnull* (optional)try:# List OAuth Clientsapi_response=api_instance.list_oauth_clients()# Below is a request that includes all optional parameters# api_response = api_instance.list_oauth_clients(filters)print("The response of OAuthClientsApi->list_oauth_clients:\n")pprint(api_response)exceptExceptionase:print("Exception when calling OAuthClientsApi->list_oauth_clients: %s\n"%e)
A list of OAuth client update operations according to the JSON Patch standard. The following fields are patchable: * tenant * businessName * homepageUrl * name * description * accessTokenValiditySeconds * refreshTokenValiditySeconds * redirectUris * grantTypes * accessType * enabled * strongAuthSupported * claimsSupported
Indicates the PATCH operation succeeded, and returns the OAuth client's new representation.
GetOAuthClientResponse
-
400
Client Error - Returned if the request body is invalid.
ErrorResponseDto
-
401
Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.
ListAccessModelMetadataAttribute401Response
-
403
Forbidden - Returned if the user you are running as, doesn't have access to this end-point.
ErrorResponseDto
-
404
Not Found - returned if the request URL refers to a resource or object that does not exist
ErrorResponseDto
-
429
Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.
ListAccessModelMetadataAttribute429Response
-
500
Internal Server Error - Returned if there is an unexpected error.
ErrorResponseDto
-
HTTP request headers
Content-Type: application/json-patch+json
Accept: application/json
Example
importsailpoint.betafromsailpoint.beta.models.get_o_auth_client_responseimportGetOAuthClientResponsefromsailpoint.beta.models.json_patch_operationimportJsonPatchOperationfromsailpoint.beta.restimportApiExceptionfrompprintimportpprintid='ef38f94347e94562b5bb8424a56397d8'# str | The OAuth client id # str | The OAuth client id[{op=replace,path=/strongAuthSupported,value=true},{op=replace,path=/businessName,value=acme-solar}]# List[JsonPatchOperation] | A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * tenant * businessName * homepageUrl * name * description * accessTokenValiditySeconds * refreshTokenValiditySeconds * redirectUris * grantTypes * accessType * enabled * strongAuthSupported * claimsSupported json_patch_operation={"op":"replace","path":"/description","value":"New description"}# List[JsonPatchOperation] | A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * tenant * businessName * homepageUrl * name * description * accessTokenValiditySeconds * refreshTokenValiditySeconds * redirectUris * grantTypes * accessType * enabled * strongAuthSupported * claimsSupported try:# Patch OAuth ClientResult=json_patch_operation.from_json(json_patch_operation)api_response=api_instance.patch_oauth_client(id,Result)# Below is a request that includes all optional parameters# api_response = api_instance.patch_oauth_client(id, Result)print("The response of OAuthClientsApi->patch_oauth_client:\n")pprint(api_response)exceptExceptionase:print("Exception when calling OAuthClientsApi->patch_oauth_client: %s\n"%e)