PrivateAIM / node-ui

User interface for a node.
0 stars 1 forks source link

Simplify config and auth #121

Closed brucetony closed 1 month ago

brucetony commented 1 month ago

Test out if the params in the nuxt config can be replaced with empty strings and the globalMiddlewareEnabled is sufficient

brucetony commented 1 month ago

The globalMiddlewareEnabled option is simple, but it is nice to reach the landing page first and then opt to sign in so it will not be used

brucetony commented 1 month ago

The config can be used as such:

runtimeConfig: {
  oidc: {
    defaultProvider: "keycloak",
    providers: {
      keycloak: {
        audience: "account",
        userNameClaim: "preferred_username",
        clientId: "",
        clientSecret: "",
        redirectUri: "",
        authorizationUrl: "",
        tokenUrl: "",
        userinfoUrl: "",
        openIdConfiguration: "",
        logoutUrl: "",
        logoutRedirectUri: "",
        exposeAccessToken: false,
        pkce: false,
      },
    },
}