on-internet
← Community

Unable to authentication a user with spring custom filter

Stack Overflow ·

I am trying to authenticate a user on login request with username and password comparing from database using jpa but some how the authentication fails and returns 401 error. The request flow is as follows: Request from client side: login: function(data,success, error){ $http.post('auth', data).success(success).error(error); } application.yml is configured to accept request for "auth" as # config context path to "/" by setting an empty string server: contextPath: # JACKSON spring: jackson: serialization: INDENT_OUTPUT: true jwt: header: Authorization secret: mySecret expiration: 604800 route: a

Comments

Sign in or sign up to comment and upvote.

No comments yet.