Auth0 Home Blog Docs

Auth0 is sending a RS256 signed token instead of HS256 signed token

token
java

#1

I am trying to obtain an auth token with Auth0 java client.

In Auth0, I have a non interactive client. JsonWebToken Signature Algorithm is set to HS256 in the client. I use following code to obtain the token.

AuthAPI auth = new AuthAPI("my.domain", "my_client_id", "my_client_secret");
AuthRequest request = auth.login("username", "password").setAudience("my_audience");
TokenHolder holder = request.execute();

But, the token I receive is signed with RS256 instead of HS256.

What could be the problem here?


#2

lahiruchandima, I’m running into the same issue: I get a token back, but instead of being an HS256 token, it’s a RS256 one, as indentified by JWT.io. Any hope?


#3

I got an answer for this in Stack Overflow. https://stackoverflow.com/a/46269995/1015678


#4

I got an answer for this in Stack Overflow. https://stackoverflow.com/a/46269995/1015678


#5