Skip to content

Commit 76bec6a

Browse files
committed
fix: update URL serialization
1 parent 90695ae commit 76bec6a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

plugins/backstage-plugin-coder/src/components/CoderAuthForm/CoderAuthInputForm.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,17 +159,15 @@ export const CoderAuthInputForm = () => {
159159
state: btoa(JSON.stringify({ returnTo: window.location.pathname })),
160160
response_type: 'code',
161161
client_id: clientId,
162-
redirect_uri: encodeURIComponent(
163-
`${backendUrl}/api/auth/coder/oauth/callback`,
164-
),
162+
redirect_uri: `${backendUrl}/api/auth/coder/oauth/callback`,
165163
});
166164

167165
const oauthUrl = `${
168166
appConfig.deployment.accessUrl
169167
}/oauth2/authorize?${params.toString()}`;
170168

171-
const width = 600;
172-
const height = 700;
169+
const width = 800;
170+
const height = 800;
173171
const left = window.screen.width / 2 - width / 2;
174172
const top = window.screen.height / 2 - height / 2;
175173

0 commit comments

Comments
 (0)