use of org.xdi.oxauth.model.uma.ClaimTokenList in project oxAuth by GluuFederation.
the class AccessProtectedResourceFlowWSTest method _5_authorizePermission.
@Test(dependsOnMethods = { "_4_registerPermissionForRpt" })
@Parameters({ "umaPermissionAuthorizationPath", "umaAmHost" })
public void _5_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");
}
use of org.xdi.oxauth.model.uma.ClaimTokenList 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