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

Function parseScopes

coderd/oauth2provider/tokens_internal_test.go:16–18  ·  view source on GitHub ↗

parseScopes parses a space-delimited scope string into a slice of scopes per RFC 6749.

(scope string)

Source from the content-addressed store, hash-verified

14// parseScopes parses a space-delimited scope string into a slice of scopes
15// per RFC 6749.
16func parseScopes(scope string) []string {
17 return strings.Fields(strings.TrimSpace(scope))
18}
19
20// TestExtractTokenParams_Scopes tests OAuth2 scope parameter parsing
21// to ensure RFC 6749 compliance where scopes are space-delimited

Calls 1

FieldsMethod · 0.65

Tested by

no test coverage detected