/// <summary>
 /// Creates a new <see cref="OAuthRequestContextValidator"/>.
 /// </summary>
 /// <param name="appStore">The <see cref="IApplicationStore"/> to get registered applications.</param>
 /// <param name="scopeStore">The <see cref="IResourceAccessDelegateScopeStore"/> is get resource access delegate scope.</param>
 /// <param name="oauthGrantStore">The <see cref="IOAuthGrantStore"/> to get currently effective authorization code, access token and refresh token.</param>
 /// <param name="systemClock">The <see cref="ISystemClock"/> to provide standard time.</param>
 /// <exception cref="ArgumentNullException">Specified <paramref name="appStore"/> is null.</exception>
 /// <exception cref="ArgumentNullException">Specified <paramref name="scopeStore"/> is null.</exception>
 /// <exception cref="ArgumentNullException">Specified <paramref name="oauthGrantStore"/> is null.</exception>
 /// <exception cref="ArgumentNullException">Specified <paramref name="systemClock"/> is null.</exception>
 public OAuthContextValidator(IApplicationStore appStore, IDelegateScopeStore scopeStore, IOAuthGrantStore oauthGrantStore, ISystemClock systemClock)
 {
     ApplicationStore = Guard.ArgumentNotNull(appStore, nameof(appStore));
     ScopeStore       = Guard.ArgumentNotNull(scopeStore, nameof(scopeStore));
     OAuthGrantStore  = Guard.ArgumentNotNull(oauthGrantStore, nameof(oauthGrantStore));
     SystemClock      = Guard.ArgumentNotNull(systemClock, nameof(systemClock));
 }
Example #2
0
 public OAuthController(IDelegateScopeStore scopeStore)
 {
     _scopeStore = scopeStore;
 }