fixed to handle scope init option
This commit is contained in:
parent
3b6899ef1f
commit
b5758dadc4
|
@ -217,6 +217,10 @@
|
|||
} else {
|
||||
kc.enableLogging = false;
|
||||
}
|
||||
|
||||
if (typeof initOptions.scope === 'string') {
|
||||
kc.scope = initOptions.scope;
|
||||
}
|
||||
}
|
||||
|
||||
if (!kc.responseMode) {
|
||||
|
@ -439,7 +443,7 @@
|
|||
}
|
||||
|
||||
var scope;
|
||||
if (options && options.scope) {
|
||||
if (options && options.scope || kc.scope) {
|
||||
if (options.scope.indexOf("openid") != -1) {
|
||||
scope = options.scope;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue