Skip to content

Commit

Permalink
change the entra url and changing the electron loopback url when built
Browse files Browse the repository at this point in the history
  • Loading branch information
lelemm committed Dec 16, 2024
1 parent 45f89b2 commit cf53879
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ const openIdProviders: (OpenIdProviderOption | typeof Menu.line)[] = [
{
label: 'Microsoft Entra',
value: 'microsoft',
issuer: 'https://login.microsoftonline.com/common/v2.0/',
issuer: 'https://login.microsoftonline.com/{tenant-id}',
clientIdRequired: true,
clientSecretRequired: true,
clientSecretDisabled: false,
Expand Down
6 changes: 5 additions & 1 deletion packages/desktop-electron/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ const createOAuthServer = async () => {

const code = query.get('token');
if (code && clientWin) {
clientWin.loadURL(`http://localhost:3001/openid-cb?token=${code}`);
if (isDev) {
clientWin.loadURL(`http://localhost:3001/openid-cb?token=${code}`);
} else {
clientWin.loadURL(`app://actual/openid-cb?token=${code}`);
}

// Respond to the browser
res.writeHead(200, { 'Content-Type': 'text/plain' });
Expand Down

0 comments on commit cf53879

Please sign in to comment.