-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide x-auth-token authentication method #892
Comments
I've implemented an X-Auth-Token authentication on a Jhipster project with MongoDB. |
@julienboulay why do you implement generic filter and not AbstractPreAuthenticatedProcessingFilter ? |
Hi Michael, I didn't know AbstractPreAuthenticatedProcessingFilter. Thanks for the tip. I will have a look at it. |
i ve used it on a Jhipster project, where user id were inject in http header by a security provider. |
Great stuff. I can see it as another option. Could you please send us a PR? |
@mpages, hi Michael,
In XAuthToken authentication, the user must be authenticated for each request and is not authenticated by an external application. |
@jmirc : Thanks, I will try to implement a new option for jhipster generator and make a pull request as soon as it will be ready. |
I've looked at your PR and I'm trying to better understand how x-auth-token is supposed to work:
|
|
OK, that looks good to me. |
I confirm it is pretty impossible to revert the MD5. You need to have power and dictionary files. |
Yes, I thought it was only a MD5 of the username+secret key, but if you add expires and password then you can't revert it. |
This is merged! |
Do we have refresh token option in x-auth-token authentication. If not, do we have to save username and password of the user in client's local storage or do we have to set the expiration time of token to be infinity. |
Hi, |
Hi i just wonder that is it more better to implement some AbstractAuthenticationFilter for doing login process instead of let UserXAuthTokenController do this. ??? |
When no cache system is enabled on the server side, x-auth-token could provide a better stateless and simpler authentication method compared to OAuth2.
An example here : https://github.com/joshlong/boot-examples/tree/4b14c1634e7cfa0e5ab5313fe5a14121ef7c10f7/x-auth-security/src/main/java/demo/xauth
The text was updated successfully, but these errors were encountered: