mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
OIDC: Upgrade "zitadel/oidc" from v1 to v2 #782
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -14,3 +14,12 @@ func Scope(s string) string {
|
||||
|
||||
return list.ParseAttr(strings.ToLower(s)).String()
|
||||
}
|
||||
|
||||
// Scopes sanitizes authentication scope identifiers and returns them as string slice.
|
||||
func Scopes(s string) []string {
|
||||
if s == "" {
|
||||
return []string{}
|
||||
}
|
||||
|
||||
return list.ParseAttr(strings.ToLower(s)).Strings()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user