Skip to content

Commit

Permalink
Corrected OAuth2 environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
oxisto committed Nov 9, 2023
1 parent a4cf967 commit 13ad5a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ EXPOSE 5173
# Default Port
ENV PORT=5173
# Default ENV variables for communication with clouditor engine
ENV PUBLIC_OAUTH_AUTH_URL=http://localhost:8080/v1/auth/authorize
ENV PUBLIC_OAUTH_TOKEN_URL=http://localhost:8080/v1/auth/token
ENV PUBLIC_OAUTH_AUTHORITY=http://localhost:8080
ENV PUBLIC_OAUTH_CLIENT_ID=dashboard
ENV PUBLIC_OAUTH_REDIRECT_URI=http://localhost:5173/callback
ENV PUBLIC_OAUTH_SCOPE="profile email"
Expand Down
2 changes: 1 addition & 1 deletion src/lib/oauth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { type OidcClientSettings, OidcClient } from "oidc-client-ts";

const settings: OidcClientSettings = {
authority: env.PUBLIC_OAUTH_AUTHORITY,
client_id: "dashboard",
client_id: env.PUBLIC_OAUTH_CLIENT_ID,
redirect_uri: env.PUBLIC_OAUTH_REDIRECT_URI,
scope: "profile"
};
Expand Down

0 comments on commit 13ad5a8

Please sign in to comment.