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

Method DetermineClientType

codersdk/oauth2.go:490–497  ·  view source on GitHub ↗

DetermineClientType determines if client is public or confidential

()

Source from the content-addressed store, hash-verified

488
489// DetermineClientType determines if client is public or confidential
490func (*OAuth2ClientRegistrationRequest) DetermineClientType() string {
491 // For now, default to confidential
492 // In the future, we might detect based on:
493 // - token_endpoint_auth_method == "none" -> public
494 // - application_type == "native" -> might be public
495 // - Other heuristics
496 return "confidential"
497}
498
499// GenerateClientName generates a client name if not provided
500func (req *OAuth2ClientRegistrationRequest) GenerateClientName() string {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected