mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-13 04:06:54 +00:00
fix: Don't bail on unrecognized OAuth scopes
This commit is contained in:
1 parent
08b6ab4af7
commit
af84202ba4
1 file changed
+1
-5
@@ -145,12 +145,8 @@ impl RawScopes {
|
||||
} else if let Some(captures) = device_token_regex.captures(token) {
|
||||
scopes
|
||||
.insert(RequestedScope::Device(captures.get(2).unwrap().as_str().into()))
|
||||
} else if token == "openid" {
|
||||
// TODO(unspecced): Element sets this scope but doesn't use
|
||||
// it for anything
|
||||
true
|
||||
} else {
|
||||
return Err(format!("Invalid scope: {token}"));
|
||||
continue;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user