public abstract class AbstractAuthHandler
extends co.cask.http.AbstractHttpHandler
Modifier | Constructor and Description |
---|---|
protected |
AbstractAuthHandler(TenantStore tenantStore) |
Modifier and Type | Method and Description |
---|---|
protected Account |
getAndAuthenticateAccount(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder)
Gets the user and tenant from the request and authenticates, returning null and writing an error message to the
responder if there was an error getting or authenticating the user and tenant.
|
protected AbstractAuthHandler(TenantStore tenantStore)
protected Account getAndAuthenticateAccount(org.jboss.netty.handler.codec.http.HttpRequest request, co.cask.http.HttpResponder responder)
request
- Request containing the user id.responder
- Responder to use when there is an issue getting or authenticating the user.Copyright © 2013-2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.