MCPcopy Index your code
hub / github.com/coder/coder / OAuth2ClientRegistrationRequest

Struct OAuth2ClientRegistrationRequest

codersdk/oauth2.go:439–456  ·  view source on GitHub ↗

OAuth2ClientRegistrationRequest represents RFC 7591 Dynamic Client Registration Request.

Source from the content-addressed store, hash-verified

437
438// OAuth2ClientRegistrationRequest represents RFC 7591 Dynamic Client Registration Request.
439type OAuth2ClientRegistrationRequest struct {
440 RedirectURIs []string `json:"redirect_uris,omitempty"`
441 ClientName string `json:"client_name,omitempty"`
442 ClientURI string `json:"client_uri,omitempty"`
443 LogoURI string `json:"logo_uri,omitempty"`
444 TOSURI string `json:"tos_uri,omitempty"`
445 PolicyURI string `json:"policy_uri,omitempty"`
446 JWKSURI string `json:"jwks_uri,omitempty"`
447 JWKS json.RawMessage `json:"jwks,omitempty" swaggertype:"object"`
448 SoftwareID string `json:"software_id,omitempty"`
449 SoftwareVersion string `json:"software_version,omitempty"`
450 SoftwareStatement string `json:"software_statement,omitempty"`
451 GrantTypes []OAuth2ProviderGrantType `json:"grant_types,omitempty"`
452 ResponseTypes []OAuth2ProviderResponseType `json:"response_types,omitempty"`
453 TokenEndpointAuthMethod OAuth2TokenEndpointAuthMethod `json:"token_endpoint_auth_method,omitempty"`
454 Scope string `json:"scope,omitempty"`
455 Contacts []string `json:"contacts,omitempty"`
456}
457
458func (req OAuth2ClientRegistrationRequest) ApplyDefaults() OAuth2ClientRegistrationRequest {
459 // Apply grant type defaults.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected