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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.yamcs.protobuf.AuthInfostatic SecurityStorevoidhandle(HandlerContext ctx) booleanMethods inherited from class org.yamcs.http.BodyHandler
doHandleMethods inherited from class org.yamcs.http.HttpHandler
getAccessTokenFromCookie
-
Constructor Details
-
AuthHandler
-
-
Method Details
-
requireAuth
public boolean requireAuth()- Specified by:
requireAuthin classHttpHandler
-
handle
- Specified by:
handlein classHttpHandler
-
createAuthInfo
public static org.yamcs.protobuf.AuthInfo createAuthInfo() -
getSecurityStore
-