Class AnyUserLoginService

java.lang.Object
org.eclipse.jetty.security.AnyUserLoginService
All Implemented Interfaces:
LoginService

public class AnyUserLoginService extends Object implements LoginService
A LoginService which allows unknown users to be authenticated.

This is useful for authentication protocols like OpenID Connect and Sign in With Ethereum, where Jetty doesn't store a collection of user credentials and passwords. Once the user proves authenticates themselves through the respective protocol, Jetty does not have to validate any credential.

This can delegate to a nested LoginService which can supply roles for known users. This nested LoginService is supplied to the constructor, and this will first attempt to log in with the nested LoginService and only create a new UserIdentity if none was found with LoginService.login(String, Object, Request, Function)

This LoginService does not check credentials, a UserIdentity will be produced for any username provided in login(String, Object, Request, Function).