Skip to content

Commit

Permalink
feat(conf): update nuxt config to manually control keycloak endpoints…
Browse files Browse the repository at this point in the history
… build_image
  • Loading branch information
brucetony committed Aug 13, 2024
1 parent 268c6af commit 3cca8da
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,23 @@ export default defineNuxtConfig({
defaultProvider: "keycloak",
providers: {
keycloak: {
baseUrl: process.env.NUXT_OIDC_PROVIDERS_KEYCLOAK_BASE_URL as string,
clientId:
process.env.NUXT_OIDC_PROVIDERS_KEYCLOAK_CLIENT_ID || "node-ui",
clientSecret: process.env
.NUXT_OIDC_PROVIDERS_KEYCLOAK_CLIENT_SECRET as string,
redirectUri:
process.env.NUXT_PUBLIC_BASE_URL + "/auth/keycloak/callback",
exposeAccessToken: true,
// The auth is different since that is accessed via a frontend client
authorizationUrl:
process.env.KEYCLOAK_LOGIN_URL + "/protocol/openid-connect/auth",
tokenUrl:
process.env.KEYCLOAK_SERVICE_URL + "/protocol/openid-connect/token",
userinfoUrl:
process.env.KEYCLOAK_SERVICE_URL +
"/protocol/openid-connect/userinfo",
logoutUrl:
process.env.KEYCLOAK_SERVICE_URL + "/protocol/openid-connect/auth",
},
},
session: {
Expand Down

0 comments on commit 3cca8da

Please sign in to comment.