
@Component @Path(value="/oidc") public class OpenIdConnectResource extends Object
| Modifier and Type | Field and Description |
|---|---|
private javax.ws.rs.client.ClientBuilder |
cb |
private net.trajano.ms.common.beans.JwksProvider |
jwksProvider |
private org.springframework.cache.Cache |
nonceCache |
private ServiceConfiguration |
serviceConfiguration |
private net.trajano.ms.common.beans.TokenGenerator |
tokenGenerator |
| Constructor and Description |
|---|
OpenIdConnectResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
auth(String state,
String issuerId,
javax.ws.rs.core.UriInfo uriInfo) |
URI |
authUri(String state,
String issuerId,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
callback(String code,
String issuerId) |
private String |
generateNonce(String issuerId) |
@Autowired private javax.ws.rs.client.ClientBuilder cb
@Autowired private net.trajano.ms.common.beans.JwksProvider jwksProvider
@Autowired @Qualifier(value="nonce") private org.springframework.cache.Cache nonceCache
@Autowired private ServiceConfiguration serviceConfiguration
@Autowired private net.trajano.ms.common.beans.TokenGenerator tokenGenerator
@Path(value="/auth")
@GET
public javax.ws.rs.core.Response auth(@QueryParam(value="state")
String state,
@QueryParam(value="issuer_id")
String issuerId,
@Context
javax.ws.rs.core.UriInfo uriInfo)
@Path(value="/auth-uri") @GET @Produces(value="text/plain") public URI authUri(@QueryParam(value="state") String state, @QueryParam(value="issuer_id") String issuerId, @Context javax.ws.rs.core.UriInfo uriInfo)
@Path(value="/cb/{issuer_id}")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response callback(@QueryParam(value="code")
String code,
@PathParam(value="issuer_id")
String issuerId)
throws MalformedURLException,
IOException,
ParseException,
com.nimbusds.jose.JOSEException
MalformedURLExceptionIOExceptionParseExceptioncom.nimbusds.jose.JOSEExceptionCopyright © 2012–2017 Trajano. All rights reserved.