parseScopes parses a space-delimited scope string into a slice of scopes per RFC 6749.
(scope string)
| 14 | // parseScopes parses a space-delimited scope string into a slice of scopes |
| 15 | // per RFC 6749. |
| 16 | func 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 |
no test coverage detected