public class OAuth2AuthenticationAction extends play.mvc.Action<OAuth2Authentication>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ACCESS_TOKEN |
static java.lang.String |
AUTHORIZATION |
static java.lang.String |
BEARER |
| Constructor and Description |
|---|
OAuth2AuthenticationAction() |
| Modifier and Type | Method and Description |
|---|---|
play.libs.F.Promise<play.mvc.Result> |
call(play.mvc.Http.Context context) |
protected org.springframework.security.authentication.UsernamePasswordAuthenticationToken |
getAuthentication(UserAuthentication user) |
protected java.lang.String |
getAuthorizationToken(play.mvc.Http.Request request) |
protected org.springframework.security.oauth2.provider.OAuth2Request |
getOAuth2Request(ClientAuthentication client) |
badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, badRequest, created, created, created, created, created, created, created, created, created, created, created, created, created, created, created, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, forbidden, found, found, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, internalServerError, movedPermanently, movedPermanently, noContent, notFound, notFound, notFound, notFound, notFound, notFound, notFound, notFound, notFound, notFound, notFound, notFound, notFound, notFound, notFound, ok, ok, ok, ok, ok, ok, ok, ok, ok, ok, ok, ok, ok, ok, ok, redirect, redirect, seeOther, seeOther, status, status, status, status, status, status, status, status, status, status, status, status, status, temporaryRedirect, temporaryRedirect, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorized, unauthorizedpublic static java.lang.String ACCESS_TOKEN
public static java.lang.String AUTHORIZATION
public static java.lang.String BEARER
public play.libs.F.Promise<play.mvc.Result> call(play.mvc.Http.Context context)
throws java.lang.Throwable
call in class play.mvc.Action<OAuth2Authentication>java.lang.Throwableprotected org.springframework.security.authentication.UsernamePasswordAuthenticationToken getAuthentication(UserAuthentication user)
protected java.lang.String getAuthorizationToken(play.mvc.Http.Request request)
protected org.springframework.security.oauth2.provider.OAuth2Request getOAuth2Request(ClientAuthentication client)