5

I want to authenticate end users using JWT provided by OpenId connect providers like keycloak or auth0..etc in a istio service mesh.But I am not able to successfully integrate it proboably because I am new to JWT auth and istio.

Can someone provide right information and sources to complete the authentication?It will be really helpful.

sachin
  • 1,220
  • 1
  • 14
  • 24

1 Answers1

5

There are some links which could be helpful with JWT


For JWT with auth0


And for JWT with keycloak


But I am not able to successfully integrate it proboably because I am new to JWT auth and istio.

If you have tried 1 of below tutorials and it didn't work my suggestion would be to create new stackoverflow question and accurately describe your problem there, so community could actually help you with your issue.


I hope those links help you. Let me know if you have any more questions.

Jakub
  • 8,189
  • 1
  • 17
  • 31
  • Thanks..I am able to get the access tokens and verify it in istio using postman.But how will I get the user login page from keycloak?Do I have to write any code in my application or any frontend code? – sachin Mar 03 '20 at 07:59
  • Hey @sachin, what you mean by "get the user login page"? You want to access your keycloak site like in the `4. Set up the client on KeyCloak` from the keycloak tutorial? – Jakub Mar 03 '20 at 08:29
  • I completed upto step 10.I also get the access tokens in the next step. But the next step 11 testing confuses me.How do a normal user login flow with authentication occur? By user login, I meant user giving his user name and password to keycloak and then keycloak verifies the credentials. – sachin Mar 03 '20 at 08:50
  • I think that line in step 11 explain everything? 'Because I don't implement any application to handle the user authentication flow so to test the scenario, I just use get the access token by calling the KeyCloak token endpoint using HTTP client'. If you want to have login page then based on [this tutorial](https://scalac.io/user-authentication-keycloak-1/) you need some frontend code for that. – Jakub Mar 03 '20 at 09:05
  • 1
    thank you very much ..i was having doubt on how to redirect the user to login page and now I understand. – sachin Mar 03 '20 at 10:17
  • @sachin Happy to help. If this answer or any other one solved your issue, please mark it as accepted. – Jakub Mar 03 '20 at 10:42