Пример #1
0
        public void RequestAuthentication(IAuthenticationClient client, IOpenAuthDataProvider provider, string returnUrl)
        {
            var securityManager = new OpenAuthSecurityManager(
                new HttpContextWrapper(HttpContext.Current), client, provider);

            securityManager.RequestAuthentication(returnUrl);
        }
Пример #2
0
 /// <summary>
 ///   Verifies the authentication.
 /// </summary>
 /// <param name="client"> The client. </param>
 /// <param name="provider"> The provider. </param>
 /// <param name="returnUrl"> The return URL. </param>
 /// <returns> </returns>
 public AuthenticationResult VerifyAuthentication(IAuthenticationClient client, IOpenAuthDataProvider provider,
                                                  string returnUrl)
 {
     var context = new HttpContextWrapper(HttpContext.Current);
     var securityManager = new OpenAuthSecurityManager(context, client, provider);
     return securityManager.VerifyAuthentication(returnUrl);
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LtiOpenAuthSecurityManager"/> class.
 /// </summary>
 /// <param name="requestContext">
 /// The request context.
 /// </param>
 /// <param name="provider">
 /// The provider.
 /// </param>
 /// <param name="dataProvider">
 /// The data provider.
 /// </param>
 public LtiOpenAuthSecurityManager(
     HttpContextBase requestContext,
     IAuthenticationClient provider,
     IOpenAuthDataProvider dataProvider)
     : base(requestContext, provider, dataProvider)
 {
     this.requestContext         = requestContext;
     this.authenticationProvider = provider;
 }
		/// <summary>
		/// Initializes a new instance of the <see cref="OpenAuthSecurityManager"/> class.
		/// </summary>
		/// <param name="requestContext">
		/// The request context. 
		/// </param>
		/// <param name="provider">
		/// The provider. 
		/// </param>
		/// <param name="dataProvider">
		/// The data provider. 
		/// </param>
		public OpenAuthSecurityManager(
			HttpContextBase requestContext, IAuthenticationClient provider, IOpenAuthDataProvider dataProvider) {
			Requires.NotNull(requestContext, "requestContext");
			Requires.NotNull(provider, "provider");
			Requires.NotNull(dataProvider, "dataProvider");

			this.requestContext = requestContext;
			this.dataProvider = dataProvider;
			this.authenticationProvider = provider;
		}
		/// <summary>
		/// Initializes a new instance of the <see cref="OpenAuthSecurityManager"/> class.
		/// </summary>
		/// <param name="requestContext">
		/// The request context. 
		/// </param>
		/// <param name="provider">
		/// The provider. 
		/// </param>
		/// <param name="dataProvider">
		/// The data provider. 
		/// </param>
		public OpenAuthSecurityManager(
			HttpContextBase requestContext, IAuthenticationClient provider, IOpenAuthDataProvider dataProvider) {
			if (requestContext == null) {
				throw new ArgumentNullException("requestContext");
			}

			this.requestContext = requestContext;
			this.dataProvider = dataProvider;
			this.authenticationProvider = provider;
		}
Пример #6
0
        /// <summary>
        /// Initializes a new instance of the <see cref="OpenAuthSecurityManager"/> class.
        /// </summary>
        /// <param name="requestContext">
        /// The request context.
        /// </param>
        /// <param name="provider">
        /// The provider.
        /// </param>
        /// <param name="dataProvider">
        /// The data provider.
        /// </param>
        public OpenAuthSecurityManager(
            HttpContextBase requestContext, IAuthenticationClient provider, IOpenAuthDataProvider dataProvider)
        {
            Requires.NotNull(requestContext, "requestContext");
            Requires.NotNull(provider, "provider");
            Requires.NotNull(dataProvider, "dataProvider");

            this.requestContext         = requestContext;
            this.dataProvider           = dataProvider;
            this.authenticationProvider = provider;
        }
Пример #7
0
        /// <summary>
        /// Initializes a new instance of the <see cref="OpenAuthSecurityManager"/> class.
        /// </summary>
        /// <param name="requestContext">
        /// The request context.
        /// </param>
        /// <param name="provider">
        /// The provider.
        /// </param>
        /// <param name="dataProvider">
        /// The data provider.
        /// </param>
        public OpenAuthSecurityManager(
            HttpContextBase requestContext, IAuthenticationClient provider, IOpenAuthDataProvider dataProvider)
        {
            if (requestContext == null)
            {
                throw new ArgumentNullException("requestContext");
            }

            this.requestContext         = requestContext;
            this.dataProvider           = dataProvider;
            this.authenticationProvider = provider;
        }
 public AuthenticationResult VerifyAuthentication(IAuthenticationClient client, IOpenAuthDataProvider provider, string returnUrl)
 {
     return(new AuthenticationResult(true));
 }
 public void RequestAuthentication(IAuthenticationClient client, IOpenAuthDataProvider provider, string returnUrl)
 {
 }
Пример #10
0
 public void RequestAuthentication(IAuthenticationClient client, IOpenAuthDataProvider provider, string returnUrl)
 {
     var securityManager = new OpenAuthSecurityManager(
         new HttpContextWrapper(HttpContext.Current), client, provider);
     securityManager.RequestAuthentication(returnUrl);
 }
Пример #11
0
        public AuthenticationResult VerifyAuthentication(IAuthenticationClient client, IOpenAuthDataProvider provider, string returnUrl)
        {
            var context         = new HttpContextWrapper(HttpContext.Current);
            var securityManager = new OpenAuthSecurityManager(context, client, provider);

            return(securityManager.VerifyAuthentication(returnUrl));
        }
 public AuthenticationResult VerifyAuthentication(IAuthenticationClient client, IOpenAuthDataProvider provider, string returnUrl)
 {
     return new AuthenticationResult(true);
 }
 public void RequestAuthentication(IAuthenticationClient client, IOpenAuthDataProvider provider, string returnUrl)
 {
 }