Skip to content

Commit b2b98f0

Browse files
committed
rollback test
1 parent 4d51d08 commit b2b98f0

3 files changed

Lines changed: 20 additions & 16 deletions

File tree

OpenFlow/src/LoginProvider.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -153,20 +153,20 @@ export class LoginProvider {
153153
});
154154

155155
app.get("/Signout", (req: any, res: any, next: any): void => {
156-
var providerid: string = req.cookies.provider;
157-
var provider: passport.Strategy;
158-
if (providerid != null && providerid != undefined && providerid != "") {
159-
provider = LoginProvider._providers[providerid];
160-
}
161-
if (provider != null && provider != undefined) {
162-
(provider as any).logout(req, function (err, requestUrl) {
163-
// LOCAL logout
164-
req.logout();
165-
// redirect to the IdP with the encrypted SAML logout request
166-
res.redirect(requestUrl);
167-
});
168-
return;
169-
}
156+
// var providerid: string = req.cookies.provider;
157+
// var provider: passport.Strategy;
158+
// if (providerid != null && providerid != undefined && providerid != "") {
159+
// provider = LoginProvider._providers[providerid];
160+
// }
161+
// if (provider != null && provider != undefined) {
162+
// (provider as any).logout(req, function (err, requestUrl) {
163+
// // LOCAL logout
164+
// req.logout();
165+
// // redirect to the IdP with the encrypted SAML logout request
166+
// res.redirect(requestUrl);
167+
// });
168+
// return;
169+
// }
170170
req.logout();
171171
var originalUrl: any = req.cookies.originalUrl;
172172
if (!Util.IsNullEmpty(originalUrl)) {

OpenFlow/src/SamlProvider.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,11 @@ export class SamlProvider {
146146

147147

148148

149-
// // https://sso.slagelse.dk/adfs/ls/?wa=wsignout1.0
149+
// https://sso.slagelse.dk/adfs/ls/?wa=wsignout1.0
150+
// https://sso.slagelse.dk/adfs/ls/?wa=wsignout1.0&wreply=https://slagelseapi.access-iot.com/issue
151+
152+
// https://social.msdn.microsoft.com/Forums/vstudio/en-US/ac41c0c5-83ef-4394-9111-fa6d07215f5d/adfs-20-does-not-redirect-back-to-reply-url-on-signout?forum=Geneva
153+
// https://www.sevecek.com/EnglishPages/Lists/Posts/Post.aspx?ID=93
150154

151155
// res.send(html)
152156
} else {

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.362
1+
0.0.363

0 commit comments

Comments
 (0)