github.com/Axway/agent-sdk@v1.1.101/pkg/authz/oauth/authservermetadata.go (about)

     1  package oauth
     2  
     3  type MTLSEndPointAlias struct {
     4  	TokenEndpoint         string `json:"token_endpoint,omitempty"`
     5  	RegistrationEndpoint  string `json:"registration_endpoint,omitempty"`
     6  	IntrospectionEndpoint string `json:"introspection_endpoint,omitempty"`
     7  	RevocationEndpoint    string `json:"revocation_endpoint,omitempty"`
     8  }
     9  
    10  // AuthorizationServerMetadata - OAuth metadata from IdP
    11  type AuthorizationServerMetadata struct {
    12  	Issuer string `json:"issuer,omitempty"`
    13  
    14  	AuthorizationEndpoint              string `json:"authorization_endpoint,omitempty"`
    15  	TokenEndpoint                      string `json:"token_endpoint,omitempty"`
    16  	RegistrationEndpoint               string `json:"registration_endpoint,omitempty"`
    17  	JwksURI                            string `json:"jwks_uri,omitempty"`
    18  	IntrospectionEndpoint              string `json:"introspection_endpoint,omitempty"`
    19  	RevocationEndpoint                 string `json:"revocation_endpoint,omitempty"`
    20  	EndSessionEndpoint                 string `json:"end_session_endpoint,omitempty"`
    21  	DeviceAuthorizationEndpoint        string `json:"device_authorization_endpoint,omitempty"`
    22  	PushedAuthorizationRequestEndpoint string `json:"pushed_authorization_request_endpoint,omitempty"`
    23  
    24  	ResponseTypesSupported                    []string `json:"response_types_supported,omitempty"`
    25  	ResponseModesSupported                    []string `json:"response_modes_supported,omitempty"`
    26  	GrantTypesSupported                       []string `json:"grant_types_supported,omitempty"`
    27  	SubjectTypeSupported                      []string `json:"subject_types_supported,omitempty"`
    28  	ScopesSupported                           []string `json:"scopes_supported,omitempty"`
    29  	TokenEndpointAuthMethodSupported          []string `json:"token_endpoint_auth_methods_supported,omitempty"`
    30  	ClaimsSupported                           []string `json:"claims_supported,omitempty"`
    31  	CodeChallengeMethodsSupported             []string `json:"code_challenge_methods_supported,omitempty"`
    32  	IntrospectionEndpointAuthMethodsSupported []string `json:"introspection_endpoint_auth_methods_supported,omitempty"`
    33  	RevocationEndpointAuthMethodsSupported    []string `json:"revocation_endpoint_auth_methods_supported,omitempty"`
    34  
    35  	RequestParameterSupported              bool     `json:"request_parameter_supported,omitempty"`
    36  	RequestObjectSigningAlgValuesSupported []string `json:"request_object_signing_alg_values_supported,omitempty"`
    37  
    38  	MTLSEndPointAlias *MTLSEndPointAlias `json:"mtls_endpoint_aliases,omitempty"`
    39  }