marcushellberg / hilla-microservices

hilla-microservices
6 stars 2 forks source link

Authentication for microservices #1

Open mars3142 opened 1 year ago

mars3142 commented 1 year ago

How would you implement JWT authentication for the microservices and where can the bff get the JWT to send it, if it's using the default oauth implementation of spring boot?

Could you add additional code for just one microservice?

marcushellberg commented 1 year ago

Yeah. Essentially you'd make the Hilla app the oauth client that performs the auth and then pass the JWT to the other services that would act as resource servers. I'll see if I can find time to add auth to the example

hezhezhez commented 3 months ago

Hello Marcus, Did you get time to implement JWT auth example for microservices?