Skip to content

Commit 37942e5

Browse files
committed
[refactor] Update environment configuration and OIDCProvider to use new variable names and local backend URL
1 parent ca247b0 commit 37942e5

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.env.exmaple

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
SD_BACKEND_URL="/v2"
1+
SD_BACKEND_URL="https://localhost:8080/v2"
22

33
SD_CLIENT_ID=""
4-
SD_AUTHORITY=""
5-
SD_REDIRECT="/signin-oidc"
6-
SD_LOGOUT_REDIRECT="/signout-callback-oidc"
4+
SD_AUTHORITY_URL=""
5+
SD_REDIRECT_URL="https://localhost/signin-oidc"
6+
SD_LOGOUT_REDIRECT_URL="https://localhost/signout-callback-oidc"
77
SD_AUTH_SECRET=""

src/Components/Auth/index.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ export function OIDCProvider({ children }: { children: ReactNode }): ReactNode {
2222
onSigninCallback={() => Reload("/")}
2323
onSignoutCallback={() => Reload("/")}
2424
matchSignoutCallback={(args) => window.location.href === args.post_logout_redirect_uri}
25-
authority={process.env.SD_AUTHORITY}
26-
post_logout_redirect_uri={process.env.SD_LOGOUT_REDIRECT}
27-
redirect_uri={process.env.SD_REDIRECT}
25+
authority={process.env.SD_AUTHORITY_URL}
26+
post_logout_redirect_uri={process.env.SD_LOGOUT_REDIRECT_URL}
27+
redirect_uri={process.env.SD_REDIRECT_URL}
2828
client_secret={process.env.SD_AUTH_SECRET}
2929
>
3030
<AuthHandler />

0 commit comments

Comments
 (0)