Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

How to add a proxy agent to reach the Keycloak server ? #185

Open
HooGitHub opened this issue May 16, 2024 · 0 comments
Open

How to add a proxy agent to reach the Keycloak server ? #185

HooGitHub opened this issue May 16, 2024 · 0 comments

Comments

@HooGitHub
Copy link

HooGitHub commented May 16, 2024

This is how I register KeycloakConnectModule in my AppModule :

KeycloakConnectModule.register({
      authServerUrl: process.env.KEYCLOAK_SERVER,
      realm: process.env.KEYCLOAK_REALM,
      clientId: process.env.KEYCLOAK_CLIENT_ID,
      secret: process.env.KEYCLOAK_CLIENT_SECRET,
      'bearer-only': true,
      logLevels: ['error'],
      useNestLogger: true,
      policyEnforcement: PolicyEnforcementMode.PERMISSIVE,
      tokenValidation: TokenValidation.ONLINE,
    }),

My concern is that I need to use a proxy to reach the keycloak server, and I don't know how to proceed. I am also not able to catch the calls to this server at global level to add the proxy agent before they are processed.

Thank for your help !

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant