Search in sources :

Example 1 with UmaScopeService

use of org.gluu.oxauth.client.uma.UmaScopeService in project oxAuth by GluuFederation.

the class ScopeHttpTest method scopePresence.

@Test
@Parameters({ "umaMetaDataUrl" })
public void scopePresence(final String umaMetaDataUrl) {
    final UmaMetadata metadata = UmaClientFactory.instance().createMetadataService(umaMetaDataUrl).getMetadata();
    final UmaScopeService scopeService = UmaClientFactory.instance().createScopeService(metadata.getScopeEndpoint());
    final UmaScopeDescription modifyScope = scopeService.getScope("modify");
    UmaTestUtil.assert_(modifyScope);
}
Also used : UmaMetadata(org.gluu.oxauth.model.uma.UmaMetadata) UmaScopeDescription(org.gluu.oxauth.model.uma.UmaScopeDescription) UmaScopeService(org.gluu.oxauth.client.uma.UmaScopeService) Parameters(org.testng.annotations.Parameters) Test(org.testng.annotations.Test)

Aggregations

UmaScopeService (org.gluu.oxauth.client.uma.UmaScopeService)1 UmaMetadata (org.gluu.oxauth.model.uma.UmaMetadata)1 UmaScopeDescription (org.gluu.oxauth.model.uma.UmaScopeDescription)1 Parameters (org.testng.annotations.Parameters)1 Test (org.testng.annotations.Test)1