Package org.yamcs.http.auth
Class AuthHandler
java.lang.Object
org.yamcs.http.HttpHandler
org.yamcs.http.BodyHandler
org.yamcs.http.auth.AuthHandler
Adds servers-side support for OAuth 2 authorization flows for obtaining limited access to API functionality. The
resource server is assumed to be the same server as the authentication server.
Currently only one flow is supported:
- Resource Owner Password Credentials
- User credentials are directly exchanged for access tokens.
-
Field Summary
Fields inherited from class org.yamcs.http.HttpHandler
log, MIME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AuthInfo
static SecurityStore
void
handle
(HandlerContext ctx) boolean
Methods inherited from class org.yamcs.http.BodyHandler
doHandle
Methods inherited from class org.yamcs.http.HttpHandler
getAccessTokenFromCookie
-
Constructor Details
-
AuthHandler
-
-
Method Details
-
requireAuth
public boolean requireAuth()- Specified by:
requireAuth
in classHttpHandler
-
handle
- Specified by:
handle
in classHttpHandler
-
createAuthInfo
-
getSecurityStore
-