fix format of oidc authorization checks
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

This commit is contained in:
Garrett Mills 2021-04-15 14:03:14 -05:00
parent 3301a48750
commit ae85c3fd24
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246

View File

@ -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'],
}) })