Autostart Dropwizard

Does Dropwizard also support digest authentication? All I found is Basic Authentication and OAuth. Sample code for this would be nice.

If there is really no support for digest and existing code, what would be the best idea to do a digest out in DW?

The implementation of filters will lead to the destruction of resources that do not require resources.

What I have found so far:

+5
source share
2 answers

AFAIK - the answer is no (at least officially). Currently, the only supported authentication schemes are Basic Auth + OAuth ( http://dropwizard.io/manual/auth.html ).

I also could not find third-party authenticators - sorry :(

+2
source

Take a look at authentication packages like https://github.com/yammer/dropwizard-auth-ldap

Basically, you can create your own Authenticator, which you will use with the @User annotation on the resource endpoints. The only limitations that you have on Authenticators are that they return Optional any type you want.

This is really quite flexible, and if im not mistaken digest is just a base64 encoded string with the username: is the password malformed with the cleartext username?

so username: base64 (username: password)? It should be easy to quickly copy.

+2
source

Source: https://habr.com/ru/post/1206428/


All Articles