Ejemplo n.º 1
0
        /// <summary>
        /// OAuth provider.
        /// </summary>
        /// <param name="tokenStore">The token store</param>
        /// <param name="consumerStore">The consumer store</param>
        /// <param name="nonceStore">The nonce store.</param>
        public AuthProvider(ITokenStore tokenStore, IConsumerStore consumerStore, INonceStore nonceStore)
        {
            _tokenStore    = tokenStore;
            _consumerStore = consumerStore;
            _nonceStore    = nonceStore;

            ValidateEx();

            // Create a new client authenticator
            List <ClientAuthenticationModule> clientAuth = new List <ClientAuthenticationModule>()
            {
                new ClientAuthentication(tokenStore, consumerStore, nonceStore)
            };

            // Create the OAuth servers.
            _oAuthAuthorizationServer = new OAuthAuthorizationServer(tokenStore, consumerStore, nonceStore);
            _authorizationServer      = new AuthorizationServer(_oAuthAuthorizationServer, clientAuth);
        }
Ejemplo n.º 2
0
 partial void DeleteSymmetricCryptoKey(OAuthAuthorizationServer.Code.SymmetricCryptoKey instance);
Ejemplo n.º 3
0
 partial void InsertNonce(OAuthAuthorizationServer.Code.Nonce instance);
Ejemplo n.º 4
0
 partial void DeleteNonce(OAuthAuthorizationServer.Code.Nonce instance);
Ejemplo n.º 5
0
 partial void DeleteClientAuthorization(OAuthAuthorizationServer.Code.ClientAuthorization instance);
Ejemplo n.º 6
0
 partial void InsertClientAuthorization(OAuthAuthorizationServer.Code.ClientAuthorization instance);
Ejemplo n.º 7
0
 partial void UpdateClient(OAuthAuthorizationServer.Code.Client instance);
Ejemplo n.º 8
0
 partial void DeleteUser(OAuthAuthorizationServer.Code.User instance);
Ejemplo n.º 9
0
 partial void InsertUser(OAuthAuthorizationServer.Code.User instance);