Class OAuthResource
- java.lang.Object
-
- org.smallmind.sso.oauth.v2dot0.jersey.OAuthResource
-
@Path("/sso/oauth") public class OAuthResource extends Object
-
-
Constructor Summary
Constructors Constructor Description OAuthResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Responseauthorization(String responseType, String clientId, String redirectUri, String scope, String acrValues, Integer maxAge, String state)javax.ws.rs.core.Responsecode(String code, String redirectUri, Integer maxAge, String state, com.fasterxml.jackson.databind.JsonNode body)voidsetIdpService(IDPService idpService)javax.ws.rs.core.Responsetoken(String authorization, String grantType, String code, String redirectUri, String clientId, String clientSecret)
-
-
-
Method Detail
-
setIdpService
public void setIdpService(IDPService idpService)
-
authorization
@GET @Path("/authorization") public javax.ws.rs.core.Response authorization(@QueryParam("response_type") String responseType, @QueryParam("client_id") String clientId, @QueryParam("redirect_uri") String redirectUri, @QueryParam("scope") String scope, @QueryParam("acr_values") String acrValues, @QueryParam("max_age") Integer maxAge, @QueryParam("state") String state) throws MissingClientIdException, InvalidClientIdException, MissingRedirectUriException, InvalidRedirectUriException, MismatchingRedirectUriException
-
code
@POST @Path("/authentication/authorization_code/{code}") @Consumes("application/json") public javax.ws.rs.core.Response code(@PathParam("code") String code, @QueryParam("redirect_uri") String redirectUri, @QueryParam("max_age") Integer maxAge, @QueryParam("state") String state, com.fasterxml.jackson.databind.JsonNode body) throws MissingRedirectUriException- Throws:
MissingRedirectUriException
-
token
@POST @Path("/token") @Consumes("application/x-www-form-urlencoded") public javax.ws.rs.core.Response token(@HeaderParam("Authorization") String authorization, @FormParam("grant_type") String grantType, @FormParam("code") String code, @FormParam("redirect_uri") String redirectUri, @FormParam("client_id") String clientId, @FormParam("client_secret") String clientSecret) throws IOException- Throws:
IOException
-
-