|
|
@ -384,7 +384,10 @@ $(function () { |
|
|
|
} |
|
|
|
|
|
|
|
// Session initialization
|
|
|
|
return $.ajax({ url: '.well-known/oauth3/directives.json' }).then(function (directives) { |
|
|
|
return OAUTH3.discover( |
|
|
|
OAUTH3.clientUri(window.location) |
|
|
|
, { client_uri: OAUTH3.clientUri(window.location) } |
|
|
|
).then(function (directives) { |
|
|
|
// TODO cache directives in memory (and storage)
|
|
|
|
CONFIG.directives = directives; |
|
|
|
directives.issuer = directives.issuer || (window.location.host + window.location.pathname).replace(/\/$/, ''); |