

# OAuthDiscovery

How the authorization server's OAuth endpoints are determined. Set exactly one member: give a discovery URL and let the service fetch the endpoints, or state the endpoints yourself. On reads, this reports the endpoints the service resolved and is using.

## Contents
<a name="API_OAuthDiscovery_Contents"></a>

**Important**  
This data type is a UNION, so only one of the following members can be specified when used or returned.

 ** authorizationServerMetadata **   <a name="credentialbrokercontrol-Type-OAuthDiscovery-authorizationServerMetadata"></a>
The authorization server's endpoints, supplied explicitly instead of discovered.  
Type: [AuthorizationServerMetadata](API_AuthorizationServerMetadata.md) object  
Required: No

 ** discoveryUrl **   <a name="credentialbrokercontrol-Type-OAuthDiscovery-discoveryUrl"></a>
URL of the authorization server's discovery document. The service fetches it and resolves the endpoints from it.  
Type: String  
Pattern: `https://[^\s?#]+/\.well-known/(openid-configuration|oauth-authorization-server)(/[^\s?#]+)?`   
Required: No

## See Also
<a name="API_OAuthDiscovery_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/credentialbroker-control-2026-09-30/OAuthDiscovery) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/credentialbroker-control-2026-09-30/OAuthDiscovery) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/credentialbroker-control-2026-09-30/OAuthDiscovery) 