Search in sources :

Example 1 with ScopeService

use of org.xdi.oxauth.client.uma.ScopeService in project oxAuth by GluuFederation.

the class ScopeHttpTest method scopePresence.

@Test
@Parameters({ "umaMetaDataUrl" })
public void scopePresence(final String umaMetaDataUrl) {
    final UmaConfiguration conf = UmaClientFactory.instance().createMetaDataConfigurationService(umaMetaDataUrl).getMetadataConfiguration();
    final ScopeService scopeService = UmaClientFactory.instance().createScopeService(conf);
    final ScopeDescription modifyScope = scopeService.getScope("modify");
    UmaTestUtil.assert_(modifyScope);
}
Also used : ScopeService(org.xdi.oxauth.client.uma.ScopeService) UmaConfiguration(org.xdi.oxauth.model.uma.UmaConfiguration) ScopeDescription(org.xdi.oxauth.model.uma.ScopeDescription) Parameters(org.testng.annotations.Parameters) Test(org.testng.annotations.Test)

Aggregations

Parameters (org.testng.annotations.Parameters)1 Test (org.testng.annotations.Test)1 ScopeService (org.xdi.oxauth.client.uma.ScopeService)1 ScopeDescription (org.xdi.oxauth.model.uma.ScopeDescription)1 UmaConfiguration (org.xdi.oxauth.model.uma.UmaConfiguration)1