Merge pull request #1789 from GoWind/remove-scope-check

(auth-backend) Bugfix: Do not throw Exception if scopes dont exist. Refs #1786
This commit is contained in:
Patrik Oldsberg
2020-07-30 17:17:16 +02:00
committed by GitHub
@@ -104,10 +104,6 @@ export class OAuthProvider implements AuthProviderRouteHandlers {
// retrieve scopes from request
const scope = req.query.scope?.toString() ?? '';
if (!scope) {
throw new InputError('missing scope parameter');
}
if (this.options.persistScopes) {
this.setScopesCookie(res, scope);
}