fix format of oidc authorization checks
This commit is contained in:
parent
3301a48750
commit
ae85c3fd24
@ -189,9 +189,9 @@ class OpenIDController extends Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async grant_and_save(req, res, next) {
|
async grant_and_save(req, res, next) {
|
||||||
if ( !req.user.has_authorized({ client_id: req.params.app_id }) ) {
|
if ( !req.user.has_authorized({ id: req.params.app_id }) ) {
|
||||||
req.user.authorize({
|
req.user.authorize({
|
||||||
client_id: req.params.app_id,
|
id: req.params.app_id,
|
||||||
api_scopes: ['openid-connect'],
|
api_scopes: ['openid-connect'],
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user