AnthonyDeroche / mod_authnz_jwt

An authentication module for Apache httpd using JSON Web Tokens
Other
79 stars 46 forks source link

How do I forward to another page after login? #66

Closed danchaseCTS closed 2 years ago

danchaseCTS commented 2 years ago

When using cookie, I have a login html page with a username/password form, with the submit going to the configured login handler Location in apache "/authenticate". When I click the form's SUBMIT it works just fine to authenticate, but I don't see a way of forwarding anywhere, such as a returnURL or the secured page. Is there a directive I should be using, what's the correct approach given the context of this plugin?

Any help is greatly appreaciated.

danchaseCTS commented 2 years ago

Let me confirm something I thought about after submitting my question, is it even recommended to use SUBMIT in the form to the authorization URL, or should I be using AJAX instead and handle errors/redirects in Javascript?