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

Function isSupportedGrantType

codersdk/oauth2_validation.go:204–210  ·  view source on GitHub ↗
(grant OAuth2ProviderGrantType)

Source from the content-addressed store, hash-verified

202}
203
204func isSupportedGrantType(grant OAuth2ProviderGrantType) bool {
205 switch grant {
206 case OAuth2ProviderGrantTypeAuthorizationCode, OAuth2ProviderGrantTypeRefreshToken:
207 return true
208 }
209 return false
210}
211
212// validateResponseTypes validates OAuth2 response types
213func validateResponseTypes(responseTypes []OAuth2ProviderResponseType) error {

Callers 1

validateGrantTypesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected