Created
February 10, 2015 03:52
-
-
Save javaeeeee/29676d8b6548083e3ba1 to your computer and use it in GitHub Desktop.
Dropwizard Authenticator Registration
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
| @Override | |
| public void run(final DWGettingStartedConfiguration configuration, | |
| final Environment environment) { | |
| environment.jersey().register(AuthFactory.binder( | |
| new BasicAuthFactory<>( | |
| new GreetingAuthenticator(), | |
| "SECURITY REALM", | |
| User.class))); | |
| // Resources are registered here | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment