Class AddForceAuthenticationPromptHandlerTest


  • public class AddForceAuthenticationPromptHandlerTest
    extends AbstractOIDCTest
    Tests for AddForceAuthenticationHandler.
    • Field Detail

      • handler

        private net.shibboleth.idp.plugin.authn.oidc.rp.messaging.impl.AddForceAuthenticationHandler handler
        The action to test.
      • rpc

        private net.shibboleth.idp.profile.context.RelyingPartyContext rpc
        The RPC.
      • oidcAuthzConfig

        private net.shibboleth.oidc.profile.config.impl.DefaultOIDCAuthorizationConfiguration oidcAuthzConfig
        The profile config.
    • Constructor Detail

      • AddForceAuthenticationPromptHandlerTest

        public AddForceAuthenticationPromptHandlerTest()
    • Method Detail

      • testSuccess

        public void testSuccess()
                         throws Exception
        Test LOGIN prompt is added when force authn is enabled.
        Throws:
        Exception - on error
      • testForceAuthnNotRequired

        public void testForceAuthnNotRequired()
                                       throws Exception
        Test no login prompt is added when force authn is not requested.
        Throws:
        Exception - on error