

This is the new *Amazon CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [Amazon CloudFormation User Guide](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::CredentialBroker::CredentialProvider AuthorizationServerMetadata

An authorization server's OAuth endpoints, stated explicitly rather than discovered. Use this when the authorization server publishes no discovery document, or when you want to pin the endpoints instead of resolving them.

## Syntax
<a name="aws-properties-credentialbroker-credentialprovider-authorizationservermetadata-syntax"></a>

To declare this entity in your Amazon CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-credentialbroker-credentialprovider-authorizationservermetadata-syntax.json"></a>

```json
{
  "[AuthorizationEndpoint](#cfn-credentialbroker-credentialprovider-authorizationservermetadata-authorizationendpoint)" : {{String}},
  "[Issuer](#cfn-credentialbroker-credentialprovider-authorizationservermetadata-issuer)" : {{String}},
  "[TokenEndpoint](#cfn-credentialbroker-credentialprovider-authorizationservermetadata-tokenendpoint)" : {{String}}
}
```

### YAML
<a name="aws-properties-credentialbroker-credentialprovider-authorizationservermetadata-syntax.yaml"></a>

```yaml
  [AuthorizationEndpoint](#cfn-credentialbroker-credentialprovider-authorizationservermetadata-authorizationendpoint): {{String}}
  [Issuer](#cfn-credentialbroker-credentialprovider-authorizationservermetadata-issuer): {{String}}
  [TokenEndpoint](#cfn-credentialbroker-credentialprovider-authorizationservermetadata-tokenendpoint): {{String}}
```

## Properties
<a name="aws-properties-credentialbroker-credentialprovider-authorizationservermetadata-properties"></a>

`AuthorizationEndpoint`  <a name="cfn-credentialbroker-credentialprovider-authorizationservermetadata-authorizationendpoint"></a>
Where the end user is sent to grant consent. Required in practice for a provider using AUTHORIZATION\_CODE, which has no other source for it; a provider that resolves its endpoints from DiscoveryUrl instead takes it from the discovery document. Optional so the grants that never redirect a browser need not supply one.  
*Required*: No  
*Type*: String  
*Pattern*: `^https://[^\s]+$`  
*Minimum*: `1`  
*Maximum*: `2048`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Issuer`  <a name="cfn-credentialbroker-credentialprovider-authorizationservermetadata-issuer"></a>
Identifier the authorization server uses for itself, as it appears in the tokens it issues.  
*Required*: Yes  
*Type*: String  
*Pattern*: `^https://[^\s]+$`  
*Minimum*: `1`  
*Maximum*: `2048`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`TokenEndpoint`  <a name="cfn-credentialbroker-credentialprovider-authorizationservermetadata-tokenendpoint"></a>
The HTTPS URL of the authorization server's token endpoint, where the provider exchanges a grant for an access token. Required unless the provider resolves its endpoints from `DiscoveryUrl`.  
*Required*: Yes  
*Type*: String  
*Pattern*: `^https://[^\s]+$`  
*Minimum*: `1`  
*Maximum*: `2048`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)