Class ValidateAudienceTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- net.shibboleth.idp.plugin.oidc.op.profile.impl.BaseOIDCResponseActionTest
-
- net.shibboleth.idp.plugin.oidc.op.oauth2.profile.impl.ValidateAudienceTest
-
public class ValidateAudienceTest extends BaseOIDCResponseActionTest
ValidateAudienceunit test.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.shibboleth.idp.plugin.oidc.op.profile.impl.BaseOIDCResponseActionTest
BaseOIDCResponseActionTest.MockRevocationCache
-
-
Field Summary
Fields Modifier and Type Field Description private net.shibboleth.idp.plugin.oidc.op.oauth2.profile.impl.ValidateAudienceactionAction to test.private com.nimbusds.openid.connect.sdk.rp.OIDCClientMetadatametaDataClient metadata.-
Fields inherited from class net.shibboleth.idp.plugin.oidc.op.profile.impl.BaseOIDCResponseActionTest
clientId, credentialEC256, credentialEC384, credentialEC521, credentialHMAC, credentialRSA, idGenerator, metadataCtx, profileRequestCtx, request, requestCtx, respCtx, rpCtx, subject
-
-
Constructor Summary
Constructors Constructor Description ValidateAudienceTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidinit()voidtestTokenFailNonePrevGranted()Test that action filters out unregistered audiences on back-channel with prior grant of nothing.voidtestTokenFailPrevGranted()Test that action filters out unregistered audiences on back-channel with a prior grant.voidtestTokenFirstAudience()Test that action filters out unregistered audiences on back-channel with no prior grant and selects the first registered value.voidtestTokenNoneAllowed()Test that action filters out unregistered audiences on back-channel with no prior grant.voidtestTokenSuccess()Test that action filters out unregistered audiences on back-channel with no prior grant and includes the registered values.-
Methods inherited from class net.shibboleth.idp.plugin.oidc.op.profile.impl.BaseOIDCResponseActionTest
addEntryToMap, getDataSealer, initializeDataSealer, setAuthenticationRequest, setIdTokenToResponseContext, setTokenRequest, setUp, setUserInfoRequest, setUserInfoResponseToResponseContext, signIdTokenInResponseContext, signUserInfoResponseInResponseContext
-
-
-
-
Method Detail
-
init
@BeforeMethod private void init() throws ComponentInitializationException, URISyntaxException
-
testTokenNoneAllowed
public void testTokenNoneAllowed() throws ComponentInitializationException, URISyntaxExceptionTest that action filters out unregistered audiences on back-channel with no prior grant.This is most common for the client_credentials grant, which has no prior step.
-
testTokenSuccess
public void testTokenSuccess() throws ComponentInitializationException, URISyntaxExceptionTest that action filters out unregistered audiences on back-channel with no prior grant and includes the registered values.
-
testTokenFirstAudience
public void testTokenFirstAudience() throws ComponentInitializationException, URISyntaxExceptionTest that action filters out unregistered audiences on back-channel with no prior grant and selects the first registered value.
-
testTokenFailNonePrevGranted
public void testTokenFailNonePrevGranted() throws ComponentInitializationException, URISyntaxExceptionTest that action filters out unregistered audiences on back-channel with prior grant of nothing.This is likely impossible in practice, but theoretical.
-
testTokenFailPrevGranted
public void testTokenFailPrevGranted() throws ComponentInitializationException, URISyntaxExceptionTest that action filters out unregistered audiences on back-channel with a prior grant.
-
-