Skip to content

Commit

Permalink
For legacy flow, the scope should default to openid
Browse files Browse the repository at this point in the history
  • Loading branch information
glena committed Jan 10, 2017
1 parent 1cfed1a commit bf10dea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,8 @@ function extractAuthOptions(options) {
throw new Error("It is not posible to request an 'id_token' while using popup mode.");
}

if (oidcConformant && !params.scope) {
// for legacy flow, the scope should default to openid
if (!oidcConformant && !params.scope) {
params.scope = 'openid';
}

Expand Down

0 comments on commit bf10dea

Please sign in to comment.