
@Component @Path(value="/authn") @PermitAll public class AuthnResource extends Object
| Modifier and Type | Field and Description |
|---|---|
private URI |
authorizationEndpoint |
private javax.ws.rs.client.Client |
client |
private net.trajano.ms.core.CryptoOps |
cryptoOps |
private net.trajano.ms.core.NonceOps |
nonceProvider |
private boolean |
secure
configuration value to determine if the cookies should be sent as secure.
|
| Constructor and Description |
|---|
AuthnResource() |
| Modifier and Type | Method and Description |
|---|---|
net.trajano.ms.core.NonceObject |
getNonce() |
javax.ws.rs.core.Response |
json(String username,
String password,
String nonce,
String authorization) |
@Value(value="${authorizationEndpoint}")
private URI authorizationEndpoint
@Context private javax.ws.rs.client.Client client
@Autowired private net.trajano.ms.core.CryptoOps cryptoOps
@Autowired private net.trajano.ms.core.NonceOps nonceProvider
@Value(value="${secure:#{true}}")
private boolean secure
@GET @Path(value="/nonce") @Produces(value="application/json") public net.trajano.ms.core.NonceObject getNonce()
@POST
@Consumes(value="application/x-www-form-urlencoded")
@Produces(value="application/json")
public javax.ws.rs.core.Response json(@FormParam(value="j_username")
String username,
@FormParam(value="j_password")
String password,
@FormParam(value="nonce")
String nonce,
@HeaderParam(value="Authorization")
String authorization)
Copyright © 2012–2017 Trajano. All rights reserved.