Skip to main content

HeaderContentType Constant

Specifies the default header for HTTP requests to an OAuth 2.0 authorization server.

Declaration

const HeaderContentType = 'Content-Type: application/x-www-form-urlencoded';

Remarks

The authorization agent component uses this writable typed constant value in all requests to authorization servers. Additionally, OAuth 2.0-compatible user information providers (that is, TdxOAuth2AuthorizationAgentUserInfo class descendant instances) use the HeaderContentType constant to retrieve the connected account’s user email and display name.

See Also