Skip to content

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

@HooGitHub

Description

@HooGitHub

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 !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions