use of org.xdi.oxauth.model.uma.RptIntrospectionResponse in project oxAuth by GluuFederation.
the class AccessProtectedResourceFlowWSTest method _6_hostDeterminesRptStatus.
/*
* **************************************************************** 6. Host
* determines RPT status
*/
@Test(dependsOnMethods = { "_5_authorizePermission" })
@Parameters({ "umaRptStatusPath", "umaAmHost" })
public void _6_hostDeterminesRptStatus(String umaRptStatusPath, String umaAmHost) throws Exception {
final RptIntrospectionResponse status = TUma.requestRptStatus(url, umaRptStatusPath, umaAmHost, pat, rpt.getRpt());
UmaTestUtil.assert_(status);
}
use of org.xdi.oxauth.model.uma.RptIntrospectionResponse in project oxAuth by GluuFederation.
the class AccessProtectedResourceFlowWSTest method _3_hostDeterminesRptStatus.
/*
* **************************************************************** 3. Host
* determines RPT status
*/
@Test(dependsOnMethods = { "_2_requesterAccessProtectedResourceWithNotEnoughPermissionsRpt" })
@Parameters({ "umaRptStatusPath", "umaAmHost" })
public void _3_hostDeterminesRptStatus(String umaRptStatusPath, String umaAmHost) throws Exception {
final RptIntrospectionResponse status = TUma.requestRptStatus(url, umaRptStatusPath, umaAmHost, pat, rpt.getRpt());
Assert.assertTrue(status.getActive(), "Token response status is not active");
Assert.assertTrue(status.getPermissions() == null || status.getPermissions().isEmpty(), "Permissions list is not empty.");
}
Aggregations