Skip to content

Commit

Permalink
Issue #6554 - create the DefaultIdentityService even if no realmName …
Browse files Browse the repository at this point in the history
…is provided

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
  • Loading branch information
lachlan-roberts committed Jul 29, 2021
1 parent 40c7934 commit e1a6653
Showing 1 changed file with 3 additions and 15 deletions.
Expand Up @@ -293,12 +293,8 @@ protected IdentityService findIdentityService()
return getServer().getBean(IdentityService.class);
}

/**
*
*/
@Override
protected void doStart()
throws Exception
protected void doStart() throws Exception
{
// copy security init parameters
ContextHandler.Context context = ContextHandler.getCurrentContext();
Expand Down Expand Up @@ -334,11 +330,8 @@ protected void doStart()

if (_identityService == null)
{
if (_realmName != null)
{
setIdentityService(new DefaultIdentityService());
manage(_identityService);
}
setIdentityService(new DefaultIdentityService());
manage(_identityService);
}
else
unmanage(_identityService);
Expand Down Expand Up @@ -456,11 +449,6 @@ public void setSessionRenewedOnAuthentication(boolean renew)
_renewSession = renew;
}

/*
* @see org.eclipse.jetty.server.Handler#handle(java.lang.String,
* javax.servlet.http.HttpServletRequest,
* javax.servlet.http.HttpServletResponse, int)
*/
@Override
public void handle(String pathInContext, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
{
Expand Down

0 comments on commit e1a6653

Please sign in to comment.