Class AddResponseTypeAndModeHandlerTest
- java.lang.Object
-
- net.shibboleth.idp.plugin.authn.oidc.rp.impl.AbstractOIDCTest
-
- net.shibboleth.idp.plugin.authn.oidc.rp.messaging.impl.AddResponseTypeAndModeHandlerTest
-
public class AddResponseTypeAndModeHandlerTest extends AbstractOIDCTest
Tests for theAddResponseTypeAndModeHandleraction.
-
-
Field Summary
Fields Modifier and Type Field Description private net.shibboleth.idp.plugin.authn.oidc.rp.messaging.impl.AddResponseTypeAndModeHandlerhandlerThe handler.private net.shibboleth.oidc.profile.config.impl.DefaultOIDCAuthorizationConfigurationoidcAuthzConfigThe profile config.private net.shibboleth.idp.profile.context.RelyingPartyContextrpcThe relying party context.-
Fields inherited from class net.shibboleth.idp.plugin.authn.oidc.rp.impl.AbstractOIDCTest
ac, ACCESS_TOKEN_RESPONSE, ACCESS_TOKEN_RESPONSE_NO_ACCESSTOKEN, ACCESS_TOKEN_RESPONSE_NO_IDTOKEN, authnRequest, CLIENT_METADATA, GOOD_PROVIDER_CONFIGURATION_INFO, partyConfig, peerEntityCtx, prc, providerCtx, rootPrc, src, TOKEN_RESPONSE_ERROR, USERINFO_RESPONSE, USERINFO_RESPONSE_JWE, USERINFO_RESPONSE_JWS
-
-
Constructor Summary
Constructors Constructor Description AddResponseTypeAndModeHandlerTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetup()Setup the various contexts.voidtestResponseModeDefault()Test a response mode and type that are the default pairing.voidtestResponseModeNotSupportedByOP()Test a response mode that is not supported by the OP.voidtestResponseModeOverride()Test the response mode override is added when set.voidtestResponseTypeNotSupportedByOP()Test the unsupported response type (IDTOKEN).voidtestUnknownResponseType()Test an unknown response type correctly throws an exception.-
Methods inherited from class net.shibboleth.idp.plugin.authn.oidc.rp.impl.AbstractOIDCTest
convertHttpResponseToJSONObject
-
-
-
-
Field Detail
-
handler
private net.shibboleth.idp.plugin.authn.oidc.rp.messaging.impl.AddResponseTypeAndModeHandler handler
The handler.
-
rpc
private net.shibboleth.idp.profile.context.RelyingPartyContext rpc
The relying party context.
-
oidcAuthzConfig
private net.shibboleth.oidc.profile.config.impl.DefaultOIDCAuthorizationConfiguration oidcAuthzConfig
The profile config.
-
-
Method Detail
-
setup
@BeforeMethod public void setup() throws ExceptionDescription copied from class:AbstractOIDCTestSetup the various contexts.- Overrides:
setupin classAbstractOIDCTest- Throws:
Exception- on error
-
testResponseModeOverride
public void testResponseModeOverride() throws ExceptionTest the response mode override is added when set.- Throws:
Exception- on error
-
testResponseTypeNotSupportedByOP
public void testResponseTypeNotSupportedByOP() throws ExceptionTest the unsupported response type (IDTOKEN).- Throws:
Exception- on error
-
testResponseModeNotSupportedByOP
public void testResponseModeNotSupportedByOP() throws ExceptionTest a response mode that is not supported by the OP.- Throws:
Exception- on error
-
testResponseModeDefault
public void testResponseModeDefault() throws ExceptionTest a response mode and type that are the default pairing.- Throws:
Exception- on error
-
-