DetermineClientType determines if client is public or confidential
()
| 488 | |
| 489 | // DetermineClientType determines if client is public or confidential |
| 490 | func (*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 |
| 500 | func (req *OAuth2ClientRegistrationRequest) GenerateClientName() string { |
no outgoing calls
no test coverage detected