Update security profile
put
/apiplatform/gatewaynode/v1/security/profile
Updates the security profile the node uses to authenticate APIs secured with the OAuth 2.0 policy.
Users requesting this resource must be assigned the Gateway Manager role for the logical gateway this node is registered to.
Request
Supported Media Types
- text/plain
The security identity provider's profile.
Root Schema : UpdateProfileRequest
Type:
string
The security identity provider's profile.
Response
Supported Media Types
- application/json
- text/plain
204 Response
Request completed successfully.
400 Response
Bad request, indicates a problem with the input parameters.
Error Definition.
Root Schema : Error
Type:
object
Error Definition.
Show Source
-
detail(optional):
string
Detailed error message.
-
errorCode(optional):
string
Application-specific error code.
-
errorDetails(optional):
array errorDetails
Additional errors.
-
errorPath(optional):
string
-
instance(optional):
string
URI to the link that provides more detail about the error.
-
status(optional):
string
HTTP status code.
-
title:
string
Summary error message.
-
type:
string
Error type.
Nested Schema : errorDetails
Type:
array
Additional errors.
Show Source
-
Array of:
object Error
Error Definition.
401 Response
Authentication required.
Error Definition.
Root Schema : Error
Type:
object
Error Definition.
Show Source
-
detail(optional):
string
Detailed error message.
-
errorCode(optional):
string
Application-specific error code.
-
errorDetails(optional):
array errorDetails
Additional errors.
-
errorPath(optional):
string
-
instance(optional):
string
URI to the link that provides more detail about the error.
-
status(optional):
string
HTTP status code.
-
title:
string
Summary error message.
-
type:
string
Error type.
Nested Schema : errorDetails
Type:
array
Additional errors.
Show Source
-
Array of:
object Error
Error Definition.
403 Response
Forbidden.
Error Definition.
Root Schema : Error
Type:
object
Error Definition.
Show Source
-
detail(optional):
string
Detailed error message.
-
errorCode(optional):
string
Application-specific error code.
-
errorDetails(optional):
array errorDetails
Additional errors.
-
errorPath(optional):
string
-
instance(optional):
string
URI to the link that provides more detail about the error.
-
status(optional):
string
HTTP status code.
-
title:
string
Summary error message.
-
type:
string
Error type.
Nested Schema : errorDetails
Type:
array
Additional errors.
Show Source
-
Array of:
object Error
Error Definition.
500 Response
Unexpected error.
Error Definition.
Root Schema : Error
Type:
object
Error Definition.
Show Source
-
detail(optional):
string
Detailed error message.
-
errorCode(optional):
string
Application-specific error code.
-
errorDetails(optional):
array errorDetails
Additional errors.
-
errorPath(optional):
string
-
instance(optional):
string
URI to the link that provides more detail about the error.
-
status(optional):
string
HTTP status code.
-
title:
string
Summary error message.
-
type:
string
Error type.
Nested Schema : errorDetails
Type:
array
Additional errors.
Show Source
-
Array of:
object Error
Error Definition.
503 Response
Temporarily unavailable error.
Error Definition.
Root Schema : Error
Type:
object
Error Definition.
Show Source
-
detail(optional):
string
Detailed error message.
-
errorCode(optional):
string
Application-specific error code.
-
errorDetails(optional):
array errorDetails
Additional errors.
-
errorPath(optional):
string
-
instance(optional):
string
URI to the link that provides more detail about the error.
-
status(optional):
string
HTTP status code.
-
title:
string
Summary error message.
-
type:
string
Error type.
Nested Schema : errorDetails
Type:
array
Additional errors.
Show Source
-
Array of:
object Error
Error Definition.
Examples
The following example shows how to update the OAuth 2.0 profile for the gateway node by submitting a PUT request on the REST resource using cURL. For more information about cURL, see Use cURL
curl -i -X PUT
-H "Authorization: Bearer access_token
-H "Content-Type: text/plain"
?-data-binary @oAuthProfile.xml
https://example.com/apiplatform/gatewaynode/v1/security/profile
Example OAuth 2.0 Profile
The following example shows a sample OAuth 2.0 profile, passed to the gateway node via the ?-data-binary @oAuthProfile.xml
flag, as shown in the cURL example.
<OAuth2TokenLocalEnforcerConfig> <Name>DEFAULT</Name> <HeaderNameIDToken>IDToken</HeaderNameIDToken> <Issuer>https://identity.oraclecloud.com/</Issuer> <AudienceRestrictionFromConfig>true</AudienceRestrictionFromConfig> <Audience>http://example</Audience> <MandatoryClaims></MandatoryClaims> <Subject></Subject> <!-- useFormat has 3 values PEMFormatPubKey, X509FormatPubKey, JWKFormatPubKey --> <PublicCertLocation useFormat="X509FormatPubKey"> <X509FormatPubKey>MIICUDCCAbmgAwIBAgIELfGcXDANBgkqhkiG9w0BAQUFADBXMRMwEQYKCZImiZPyLGQBGRYDY29tMRYwFAYKCZImiZPyLGQBGRYGb3JhY2xlMRUwEwYKCZImiZPyLGQBGRYFY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J6OZf7O+KC9WzP+X+UwiQTMUzp+B4UWUEbpGNW7dv7jiyKdsgYGrnpwINl6OT4wrlKD8r2+7yQLNBsvDQjVeWmhHTqFfgqTfd/wi3MC2itft+I40O4GnSL3/VDcTSxJZMaigKizAgMBAAGjNTAzMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFPwqb7nQaKEVc+oSa7ohvOxIGMfXMA0GCSqGSIb3DQEBBQUAA4GBADydG93z/CGRVfUyVfD/ULT/d+RYfm3sriGgPPZlEO+idCgA6tEMcnIOFf3lP5CFAdFq6ykmFHMOf15CYvqkv7jZULiL3zMgy7OgB4I0i0WMUAAybqeiZlU90y86zd2yfAgQEM4ncUCHg+Dwf2XF0qmYK0XLF7CSb/hSEJJp4W2j</X509FormatPubKey> </PublicCertLocation> </OAuth2TokenLocalEnforcerConfig>
Example of Response Headers
The following shows an example of the response headers.
HTTP/1.1 204 No Content Date: Fri, 30 Dec 2016 20:08:03 GMT