PR #11883 - changes from review

Signed-off-by: Lachlan Roberts <lachlan.p.roberts@gmail.com>
This commit is contained in:
Lachlan Roberts 2024-07-25 10:46:17 +10:00
parent 44286feae6
commit f1f16029c2
No known key found for this signature in database
GPG Key ID: 5663FB7A8FF7E348
2 changed files with 6 additions and 7 deletions

View File

@ -25,7 +25,7 @@ import org.eclipse.jetty.server.Request;
import org.eclipse.jetty.server.Session;
/**
* A {@link LoginService} which allows any user to be authenticated.
* A {@link LoginService} which allows unknown users to be authenticated.
* <p>
* This can delegate to a nested {@link LoginService} if it is supplied to the constructor, it will first attempt to log in
* with the nested {@link LoginService} and only create a new {@link UserIdentity} if none was found with
@ -38,11 +38,10 @@ public class AnyUserLoginService implements LoginService
private final LoginService _loginService;
private IdentityService _identityService;
public AnyUserLoginService(String realm)
{
this(realm, null);
}
/**
* @param realm the realm name.
* @param loginService optional {@link LoginService} which can be used to assign roles to known users.
*/
public AnyUserLoginService(String realm, LoginService loginService)
{
_realm = realm;

View File

@ -1 +1 @@
org.eclipse.jetty.security.siwe.EthereumAuthenticatorFactory
org.eclipse.jetty.security.siwe.EthereumAuthenticatorFactory