Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

keycloak is using jwt token, the JWTMeshAuthandler authenticates it but is not invoking the keycloakPlugin.. #1135

Open
bbelghith opened this issue Sep 26, 2020 · 0 comments

Comments

@bbelghith
Copy link

Dear colleagues,
at the moment i am facing a challenge here with your code. Our keycloak is issuing jwt token and they are validated by the
MeshJWTHandler which does not invoke any plugins for keycloak and no keycloak users gets created.

I see that only MeshOAUTH2Service is invoking such plugins - it never gets invoked when the authentication with mesjwthandler fails.

What can i do?

BTW, i have changed the gentics mesh algorithm from HS256 to RS256 according to your documentation - but it does not pick it up - because in jwtoptions is the algorithm "HS256" hard-coded.

public class JWTOptions {

private static final JsonObject EMPTY = new JsonObject(Collections.emptyMap());

private int leeway = 0;
private boolean ignoreExpiration;
private String algorithm = "HS256";
private JsonObject header = EMPTY;

Gentics Mesh Version, operating system, or hardware.

  • v1.7.1

Operating System

  • Linux
  • MacOSX
  • Windows
  • Other, name?

JVM

  • Oracle JDK 1.8.0_100
  • Open JDK 1.8.0_100

Problem

Reproducer

Expected behaviour and actual behaviour

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

No branches or pull requests

1 participant