Check app ID on oidc auth
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:06:25 -05:00
parent ae85c3fd24
commit 5391c7c6d6
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246

View File

@ -154,7 +154,7 @@ class OpenIDController extends Controller {
}
// If the user has already authorized this app, just redirect
if ( req.user.has_authorized({ id: params.client_id }) ) {
if ( req.user.has_authorized({ id: application.id }) ) {
return res.redirect(`/openid/interaction/${uid.toLowerCase()}/grant`)
}