Class OAuth2Resource
- java.lang.Object
-
- io.jans.ca.plugin.adminui.rest.auth.OAuth2Resource
-
@Path("/admin-ui/oauth2") public class OAuth2Resource extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
SCOPE_OPENID
-
Constructor Summary
Constructors Constructor Description OAuth2Resource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.ws.rs.core.Response
getAccessToken(String code)
jakarta.ws.rs.core.Response
getApiProtectionToken(String ujwt)
jakarta.ws.rs.core.Response
getOAuth2Config()
jakarta.ws.rs.core.Response
getUserInfo(@Valid @NotNull UserInfoRequest userInfoRequest)
-
-
-
Field Detail
-
SCOPE_OPENID
public static final String SCOPE_OPENID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getOAuth2Config
@GET @Path("/config") @Produces("application/json") public jakarta.ws.rs.core.Response getOAuth2Config()
-
getAccessToken
@GET @Path("/access-token") @Produces("application/json") public jakarta.ws.rs.core.Response getAccessToken(@QueryParam("code") String code)
-
getApiProtectionToken
@GET @Path("/api-protection-token") @Produces("application/json") public jakarta.ws.rs.core.Response getApiProtectionToken(@QueryParam("ujwt") String ujwt)
-
getUserInfo
@POST @Path("/user-info") @Produces("application/json") public jakarta.ws.rs.core.Response getUserInfo(@Valid @NotNull @Valid @NotNull UserInfoRequest userInfoRequest)
-
-