mirror of
https://github.com/wekan/wekan.git
synced 2025-12-27 20:58:48 +01:00
enable redirect to oidc provider to empower sso solutions even further
This commit is contained in:
parent
2e354f9b1e
commit
84d51393e4
6 changed files with 72 additions and 57 deletions
|
|
@ -7,8 +7,6 @@ Oidc = {};
|
|||
// error.
|
||||
Oidc.requestCredential = function (options, credentialRequestCompleteCallback) {
|
||||
// support both (options, callback) and (callback).
|
||||
console.log("from client");
|
||||
console.log(options);
|
||||
if (!credentialRequestCompleteCallback && typeof options === 'function') {
|
||||
credentialRequestCompleteCallback = options;
|
||||
options = {};
|
||||
|
|
@ -57,14 +55,13 @@ Oidc.requestCredential = function (options, credentialRequestCompleteCallback) {
|
|||
width: options.popupOptions.width || 320,
|
||||
height: options.popupOptions.height || 450
|
||||
};
|
||||
OAuth.saveDataForRedirect(options.loginService, options.credentialToken);
|
||||
Accounts.oauth.tryLoginAfterPopupClosed(credentialToken, credentialRequestCompleteCallback);
|
||||
// OAuth.launchLogin({
|
||||
// loginService: 'oidc',
|
||||
// loginStyle: loginStyle,
|
||||
// loginUrl: loginUrl,
|
||||
// credentialRequestCompleteCallback: credentialRequestCompleteCallback,
|
||||
// credentialToken: credentialToken,
|
||||
// popupOptions: popupOptions,
|
||||
// });
|
||||
|
||||
OAuth.launchLogin({
|
||||
loginService: 'oidc',
|
||||
loginStyle: loginStyle,
|
||||
loginUrl: loginUrl,
|
||||
credentialRequestCompleteCallback: credentialRequestCompleteCallback,
|
||||
credentialToken: credentialToken,
|
||||
popupOptions: popupOptions,
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue