
@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 |
| Constructor and Description |
|---|
AuthnResource() |
| Modifier and Type | Method and Description |
|---|---|
net.trajano.ms.auth.token.OAuthTokenResponse |
json(String username,
String password,
String authorization) |
@Value(value="${authorizationEndpoint}")
private URI authorizationEndpoint
@Context private javax.ws.rs.client.Client client
@Autowired private net.trajano.ms.core.CryptoOps cryptoOps
@POST
@Consumes(value="application/x-www-form-urlencoded")
@Produces(value="application/json")
public net.trajano.ms.auth.token.OAuthTokenResponse json(@FormParam(value="j_username")
String username,
@FormParam(value="j_password")
String password,
@HeaderParam(value="Authorization")
String authorization)
Copyright © 2012–2017 Trajano. All rights reserved.