Skip to content

Commit

Permalink
Fix the lint
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Liang <[email protected]>
  • Loading branch information
RyanL1997 committed Aug 22, 2023
1 parent 9103b23 commit af8aaa7
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import org.opensearch.rest.NamedRoute;
import org.opensearch.rest.RestChannel;
import org.opensearch.rest.RestRequest;
import org.opensearch.rest.RestRequest.Method;
import org.opensearch.core.rest.RestStatus;
import org.opensearch.security.authtoken.jwt.JwtVendor;
import org.opensearch.security.securityconf.ConfigModel;
Expand All @@ -46,13 +45,8 @@
public class CreateOnBehalfOfTokenAction extends BaseRestHandler {

private static final List<Route> routes = addRoutesPrefix(
ImmutableList.of(
new NamedRoute.Builder().method(POST)
.path("/user/onbehalfof")
.uniqueName("security:obo/create")
.build()
),
"/_plugins/_security/api"
ImmutableList.of(new NamedRoute.Builder().method(POST).path("/user/onbehalfof").uniqueName("security:obo/create").build()),
"/_plugins/_security/api"
);

private JwtVendor vendor;
Expand Down Expand Up @@ -99,7 +93,7 @@ public String getName() {
public List<Route> routes() {
return routes;
}

@Override
protected RestChannelConsumer prepareRequest(RestRequest request, NodeClient client) throws IOException {
switch (request.method()) {
Expand Down

0 comments on commit af8aaa7

Please sign in to comment.