Search in sources :

Example 1 with UmaScopeService

use of io.jans.as.client.uma.UmaScopeService in project jans by JanssenProject.

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.assertIt(modifyScope);
}
Also used : UmaMetadata(io.jans.as.model.uma.UmaMetadata) UmaScopeDescription(io.jans.as.model.uma.UmaScopeDescription) UmaScopeService(io.jans.as.client.uma.UmaScopeService) Parameters(org.testng.annotations.Parameters) Test(org.testng.annotations.Test)

Aggregations

UmaScopeService (io.jans.as.client.uma.UmaScopeService)1 UmaMetadata (io.jans.as.model.uma.UmaMetadata)1 UmaScopeDescription (io.jans.as.model.uma.UmaScopeDescription)1 Parameters (org.testng.annotations.Parameters)1 Test (org.testng.annotations.Test)1