Exemplo n.º 1
0
        public ApplicationOAuthProvider(string publicClientId, IIdentityManagerFactory identityManagerFactory,
            CookieAuthenticationOptions cookieOptions)
        {
            if (publicClientId == null)
            {
                throw new ArgumentNullException("publicClientId");
            }

            if (identityManagerFactory == null)
            {
                throw new ArgumentNullException("_identityManagerFactory");
            }

            if (cookieOptions == null)
            {
                throw new ArgumentNullException("cookieOptions");
            }

            _publicClientId = publicClientId;
            _identityManagerFactory = identityManagerFactory;
            _cookieOptions = cookieOptions;
        }
        public ApplicationOAuthProvider(string publicClientId, IIdentityManagerFactory identityManagerFactory,
                                        CookieAuthenticationOptions cookieOptions)
        {
            if (publicClientId == null)
            {
                throw new ArgumentNullException("publicClientId");
            }

            if (identityManagerFactory == null)
            {
                throw new ArgumentNullException("_identityManagerFactory");
            }

            if (cookieOptions == null)
            {
                throw new ArgumentNullException("cookieOptions");
            }

            _publicClientId         = publicClientId;
            _identityManagerFactory = identityManagerFactory;
            _cookieOptions          = cookieOptions;
        }