Jump to content
Alfredo I.

MARS and JWT cookie authentication

Recommended Posts

Hi,
I'm (very) new on MARS...


I tried to use cookie authentication. No problems with Postman but with a browser (Chrome, Edge, Firefox) the JWT cookie doesn't work (I checked with debug console but no cookies are saved).
The authentication is correct, I receive the full http-ony cookie but the browser simply ignore it...
(I also tried with cookie domain 'localhost' but nothing...)

 

Any suggestions?

 

Thank you in advance, Alfredo.

Share this post


Link to post

Hi @Alfredo I.,

thanks for using MARS!

 

Please have a look at the Authorization demo. Just compile and run the server and open a browser at http://localhost:8080/rest/default/token/html

 

You should see a simple HTML page allowing you to login/logout. The mechanism is cookie-based and it really seems your same situation.

 

Please let me know if you find out what's not working in your case.

 

Sincerely,

Andrea

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×