use of org.xdi.oxauth.model.uma.RptAuthorizationResponse in project oxAuth by GluuFederation.
the class TrustElevationWSTest method authorizePermission.
@Test(dependsOnMethods = { "registerPermissionForRpt" })
@Parameters({ "umaPermissionAuthorizationPath", "umaAmHost" })
public void authorizePermission(String umaPermissionAuthorizationPath, String umaAmHost) {
final RptAuthorizationRequest request = new RptAuthorizationRequest();
request.setRpt(rpt.getRpt());
request.setTicket(ticket.getTicket());
request.setClaims(new ClaimTokenList().addToken(new ClaimToken("clientClaim", "clientValue")));
final RptAuthorizationResponse response = TUma.requestAuthorization(url, umaPermissionAuthorizationPath, umaAmHost, aat, request);
assertNotNull(response, "Token response status is null");
// final RptIntrospectionResponse status = TUma.requestRptStatus(this,
// umaRptStatusPath, umaAmHost, m_pat, m_rpt.getRpt());
// UmaTestUtil.assert_(status);
}
Aggregations