
@Component @Path(value="/oidc") @PermitAll public class OpenIdConnectResource extends Object
| Modifier and Type | Field and Description |
|---|---|
private AuthenticationUriBuilder |
authenticationUriBuilder |
private URI |
authorizationEndpoint |
private javax.ws.rs.client.Client |
client |
private org.springframework.cache.CacheManager |
cm |
private net.trajano.ms.core.CryptoOps |
cryptoOps |
private org.springframework.cache.Cache |
serverStateCache |
private ServiceConfiguration |
serviceConfiguration |
| Constructor and Description |
|---|
OpenIdConnectResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
auth(String state,
String issuerId,
String authorization)
The state that is passed here is transformed to a JWT before passing to the
OIDC IP.
|
URI |
authUri(String state,
String issuerId,
String authorization) |
com.google.gson.JsonObject |
authUriJson(String state,
String issuerId,
String authorization) |
javax.ws.rs.core.Response |
callback(String code,
String jwtState,
String issuerId) |
void |
init() |
@Autowired private AuthenticationUriBuilder authenticationUriBuilder
@Value(value="${authorization.endpoint}")
private URI authorizationEndpoint
@Context private javax.ws.rs.client.Client client
@Autowired private org.springframework.cache.CacheManager cm
@Autowired private net.trajano.ms.core.CryptoOps cryptoOps
private org.springframework.cache.Cache serverStateCache
@Autowired private ServiceConfiguration serviceConfiguration
@Path(value="/auth/{issuer_id}")
@POST
@Consumes(value="application/x-www-form-urlencoded")
public javax.ws.rs.core.Response auth(@FormParam(value="state")
String state,
@PathParam(value="issuer_id")
String issuerId,
@HeaderParam(value="Authorization")
String authorization)
state - this is a client level stateop - optional server operation identifierissuerId - issuer@Path(value="/auth-uri/{issuer_id}")
@GET
@Produces(value="text/plain")
public URI authUri(@QueryParam(value="state")
String state,
@PathParam(value="issuer_id")
String issuerId,
@HeaderParam(value="Authorization")
String authorization)
@Path(value="/auth-uri/{issuer_id}")
@GET
@Produces(value="application/json")
public com.google.gson.JsonObject authUriJson(@QueryParam(value="state")
String state,
@PathParam(value="issuer_id")
String issuerId,
@HeaderParam(value="Authorization")
String authorization)
@Path(value="/cb/{issuer_id}")
@GET
public javax.ws.rs.core.Response callback(@QueryParam(value="code")
String code,
@QueryParam(value="state")
String jwtState,
@PathParam(value="issuer_id")
String issuerId)
throws org.jose4j.jwt.MalformedClaimException
org.jose4j.jwt.MalformedClaimException@PostConstruct public void init()
Copyright © 2012–2017 Trajano. All rights reserved.