@Path(value="/api/auth/oauth2/v1.[\\d]+/token") @ApplicationPath(value="/token") public class TokenApi extends Object implements org.wso2.msf4j.Microservice
| Constructor and Description |
|---|
TokenApi() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
tokenPost(String authorization,
String grantType,
String code,
String redirectUri,
String clientId,
String refreshToken,
String scope,
String username,
String password,
org.wso2.msf4j.Request request) |
@POST
@Consumes(value="application/x-www-form-urlencoded")
@Produces(value="application/json")
public javax.ws.rs.core.Response tokenPost(@HeaderParam(value="Authorization")
String authorization,
@QueryParam(value="grant_type")
String grantType,
@QueryParam(value="code")
String code,
@QueryParam(value="redirect_uri")
String redirectUri,
@QueryParam(value="client_id")
String clientId,
@QueryParam(value="refresh_token")
String refreshToken,
@QueryParam(value="scope")
String scope,
@FormParam(value="username")
String username,
@FormParam(value="password")
String password,
@Context
org.wso2.msf4j.Request request)
throws NotFoundException
NotFoundExceptionCopyright © 2018 WSO2. All rights reserved.