Ejemplo n.º 1
0
        /// <summary>
        /// Instantiates the controller to use the specified instances to perform authentication
        /// and response parsing.
        /// </summary>
        /// <param name="authenticationController">Handler that will be called to perform authentication.</param>
        /// <param name="responseParser">Handler that will be called to parse successful authentication responses</param>
        public SAMLAuthenticationController(IAuthenticationController authenticationController, IAuthenticationResponseParser responseParser)
        {
            if (authenticationController == null)
            {
                throw new ArgumentNullException("authenticationController");
            }
            if (responseParser == null)
            {
                throw new ArgumentNullException("responseParser");
            }

            AuthenticationController = authenticationController;
            ResponseParser           = responseParser;
        }
        /// <summary>
        /// Instantiates the controller to use the specified instances to perform authentication
        /// and response parsing.
        /// </summary>
        /// <param name="authenticationController">
        /// Handler that will be called to perform authentication.
        /// </param>
        /// <param name="responseParser">
        /// Handler that will be called to parse successful authentication responses
        /// </param>
        /// <param name="proxySettings">
        /// Null or proxy settings that should be used when communicating with the authentication endpoint.
        /// </param>
        public SAMLAuthenticationController(IAuthenticationController authenticationController,
                                            IAuthenticationResponseParser responseParser,
                                            WebProxy proxySettings)
        {
            if (authenticationController == null)
            {
                throw new ArgumentNullException("authenticationController");
            }
            if (responseParser == null)
            {
                throw new ArgumentNullException("responseParser");
            }

            AuthenticationController = authenticationController;
            ResponseParser           = responseParser;
            ProxySettings            = proxySettings;
        }
        /// <summary>
        /// Instantiates the controller to use the specified instances to perform authentication
        /// and response parsing.
        /// </summary>
        /// <param name="authenticationController">
        /// Handler that will be called to perform authentication.
        /// </param>
        /// <param name="responseParser">
        /// Handler that will be called to parse successful authentication responses
        /// </param>
        /// <param name="proxySettings">
        /// Null or proxy settings that should be used when communicating with the authentication endpoint.
        /// </param>
        public SAMLAuthenticationController(IAuthenticationController authenticationController,
                                            IAuthenticationResponseParser responseParser,
#if NETSTANDARD
                                            IWebProxy proxySettings)
        /// <summary>
        /// Instantiates the controller to use the specified instances to perform authentication
        /// and response parsing.
        /// </summary>
        /// <param name="authenticationController">Handler that will be called to perform authentication.</param>
        /// <param name="responseParser">Handler that will be called to parse successful authentication responses</param>
        public SAMLAuthenticationController(IAuthenticationController authenticationController, IAuthenticationResponseParser responseParser)
        {
            if (authenticationController == null)
                throw new ArgumentNullException("authenticationController");
            if (responseParser == null)
                throw new ArgumentNullException("responseParser");

            AuthenticationController = authenticationController;
            ResponseParser = responseParser;
        }
        /// <summary>
        /// Instantiates the controller to use the specified instances to perform authentication
        /// and response parsing.
        /// </summary>
        /// <param name="authenticationController">
        /// Handler that will be called to perform authentication.
        /// </param>
        /// <param name="responseParser">
        /// Handler that will be called to parse successful authentication responses
        /// </param>
        /// <param name="proxySettings">
        /// Null or proxy settings that should be used when communicating with the authentication endpoint.
        /// </param>
        public SAMLAuthenticationController(IAuthenticationController authenticationController, 
                                            IAuthenticationResponseParser responseParser,
                                            WebProxy proxySettings)
        {
            if (authenticationController == null)
                throw new ArgumentNullException("authenticationController");
            if (responseParser == null)
                throw new ArgumentNullException("responseParser");

            AuthenticationController = authenticationController;
            ResponseParser = responseParser;
            ProxySettings = proxySettings;
        }