metadata

open suspend override fun metadata(): OAuth2AuthorizationServerMetadata(source)

Serve this result under /.well-known/openid-configuration, see OpenIdConstants.WellKnownPaths.OpenidConfiguration, and under /.well-known/oauth-authorization-server, see OpenIdConstants.WellKnownPaths.OauthAuthorizationServer, converted with OAuth2AuthorizationServerMetadata.toHttpResponse.