wip redirect on landing page and logout to oidc provider

This commit is contained in:
viehlieb 2022-05-11 09:05:43 +02:00
parent b97c51abde
commit 2e354f9b1e
7 changed files with 92 additions and 15 deletions

View file

@ -7,11 +7,14 @@ if (Meteor.isClient) {
callback = options;
options = null;
}
console.log(options.loginStyle);
console.log(callback);
var credentialRequestCompleteCallback = Accounts.oauth.credentialRequestCompleteHandler(callback);
console.log("credentialCallback",credentialRequestCompleteCallback);
Oidc.requestCredential(options, credentialRequestCompleteCallback);
};
} else {
}
else {
Accounts.addAutopublishFields({
// not sure whether the OIDC api can be used from the browser,
// thus not sure if we should be sending access tokens; but we do it