Skip to content

Commit

Permalink
PR #12393 - update javadoc and remove duplicate for AnyUserLoginService
Browse files Browse the repository at this point in the history
Signed-off-by: Lachlan Roberts <[email protected]>
  • Loading branch information
lachlan-roberts committed Jan 7, 2025
1 parent 1b0437c commit 4a69ed3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 117 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,14 @@

/**
* A {@link LoginService} which allows unknown users to be authenticated.
* <p>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.</p>
* <p>
* This can delegate to a nested {@link LoginService} if it is supplied to the constructor, it will first attempt to log in
* This can delegate to a nested {@link LoginService} which can supply roles for known users.
* This nested {@link LoginService} is supplied to the constructor, and this will first attempt to log in
* with the nested {@link LoginService} and only create a new {@link UserIdentity} if none was found with
* {@link LoginService#login(String, Object, Request, Function)}.
* {@link LoginService#login(String, Object, Request, Function)}
* </p>
* <p>This {@link LoginService} does not check credentials, a {@link UserIdentity} will be produced for any
* username provided in {@link #login(String, Object, Request, Function)}.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import org.eclipse.jetty.http.MultiPartFormData;
import org.eclipse.jetty.io.Content;
import org.eclipse.jetty.io.content.ByteBufferContentSource;
import org.eclipse.jetty.security.AnyUserLoginService;
import org.eclipse.jetty.security.AuthenticationState;
import org.eclipse.jetty.security.Authenticator;
import org.eclipse.jetty.security.Constraint;
Expand All @@ -42,7 +43,6 @@
import org.eclipse.jetty.security.UserIdentity;
import org.eclipse.jetty.security.authentication.LoginAuthenticator;
import org.eclipse.jetty.security.authentication.SessionAuthentication;
import org.eclipse.jetty.security.siwe.internal.AnyUserLoginService;
import org.eclipse.jetty.security.siwe.internal.EthereumUtil;
import org.eclipse.jetty.security.siwe.internal.SignInWithEthereumToken;
import org.eclipse.jetty.server.FormFields;
Expand Down

This file was deleted.

0 comments on commit 4a69ed3

Please sign in to comment.