Skip to content

Commit

Permalink
Fix Login code
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Malinin committed Sep 13, 2024
1 parent dbed693 commit 9e2096b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 340 deletions.
3 changes: 2 additions & 1 deletion Auth/login1.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const IdP = url.searchParams.get('idp') || '';
const autoLogin = url.searchParams.get('autologin');
var sLogin = url.searchParams.get('slogin');
const sApp = url.searchParams.get('app');
const sMode = url.searchParams.get('mode');

const callback = url.origin+url.pathname + (sApp ? '?app='+sApp : '');

Expand Down Expand Up @@ -81,7 +82,7 @@ const authCode =
authClient.login({
oidcIssuer: idp,
redirectUrl: callback,
tokenType: "DPoP", //"Bearer",
tokenType: mode==="Bearer" ? "Bearer" : "DPoP",
clientName: "OSDS"
});

Expand Down
154 changes: 0 additions & 154 deletions Auth/login2.html

This file was deleted.

185 changes: 0 additions & 185 deletions Auth/login2.js

This file was deleted.

0 comments on commit 9e2096b

Please sign in to comment.