# Functions

No description provided by the author
ParseProtectedResourceMetadataURL returns the URL of the protected resource metadata according to https://www.ietf.org/archive/id/draft-ietf-oauth-resource-metadata-07.html, if the HTTP response contains a WWW-Authenticate header according to the specification.
ProtectedResourceMetadataLocator tries to load the OAuth2 Authorization Server URL for a resource server, using protected resource metadata provided by the resource server.
StaticAuthorizationServerURL returns an AuthorizationServerLocator that always returns the same URL.
WithResourceURI returns a new context with the given resource URI, which will be used to fetch the protected resource metadata when using ProtectedResourceMetadataLocator.
WithScope returns a new context with the given OAuth2 scope, which will override the default scope set in the OAuth2 client.

# Structs

No description provided by the author
MetadataLoader loads metadata from a URL and unmarshals it into a target struct.
ProtectedResourceMetadata contains metadata about a protected resource according to https://www.ietf.org/archive/id/draft-ietf-oauth-resource-metadata-07.html.
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author

# Type aliases

AuthorizationServerLocator is a function that determines the URL of the OAuth2 Authorization Server from an OAuth2 Resource Server response.