MCPcopy
hub / github.com/tinyauthapp/tinyauth / filterScopes

Method filterScopes

internal/service/oidc_service.go:308–312  ·  view source on GitHub ↗
(scopes []string)

Source from the content-addressed store, hash-verified

306}
307
308func (service *OIDCService) filterScopes(scopes []string) []string {
309 return utils.Filter(scopes, func(scope string) bool {
310 return slices.Contains(SupportedScopes, scope)
311 })
312}
313
314func (service *OIDCService) StoreCode(c *gin.Context, sub string, code string, req AuthorizeRequest) error {
315 // Fixed 10 minutes

Callers 1

StoreCodeMethod · 0.95

Calls 1

FilterFunction · 0.92

Tested by

no test coverage detected