Created
October 23, 2017 12:18
-
-
Save brunokrebs/42aa35f360181c66824a64e5cc913fde to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.auth0.samples.authapi.security; | |
// imports ... | |
public class JWTAuthenticationFilter extends UsernamePasswordAuthenticationFilter { | |
private AuthenticationManager authenticationManager; | |
public JWTAuthenticationFilter(AuthenticationManager authenticationManager) { | |
this.authenticationManager = authenticationManager; | |
setFilterProcessesUrl("/api/login"); | |
} | |
// everything else remains untouched | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment