public AuthorizationCodeGrantSaga(IClientRepository clientRepo, IUserRepository userRepo, IPermissionScopeRepository scopeRepo, OAuth20Service oauth20Service) : base(clientRepo, userRepo, scopeRepo, oauth20Service) { }
public ImplicitGrantSaga(IClientRepository clientRepo, IUserRepository userRepo, IPermissionScopeRepository scopeRepo, OAuth20Service oauth20Service) : base(clientRepo, userRepo, scopeRepo, oauth20Service) { }
public ResourceOwnerPasswordCredentialsGrantSaga(IClientRepository clientRepo, IUserRepository userRepo, IPermissionScopeRepository scopeRepo, OAuth20Service oauth20Service) : base(clientRepo, userRepo, scopeRepo, oauth20Service) { }
public OAuth20Saga(IClientRepository clientRepo, IUserRepository userRepo, IPermissionScopeRepository scopeRepo, OAuth20Service oauth20Service) { _clientRepository = clientRepo; _userRepository = userRepo; _scopeRepository = scopeRepo; _oauth20Service = oauth20Service; }
public static async Task <PermissionScope> GetScopeAsync(this Permission instance, IPermissionScopeRepository repository, CancellationToken cancellationToken = default) { if (instance is null) { return(null); } if (repository is null) { throw SystemBaseException.RepositoryIsNull <IPermissionScopeRepository>(); } var scopeId = instance.ScopeId; if (scopeId > 0) { var scope = await repository.GetAsync(scopeId ?? 0, cancellationToken); instance.Scope = scope; return(scope); } return(null); }
public UpdateScopeSaga(IPermissionScopeRepository repo) { _repo = repo; }
public ScopesController(IPermissionScopeRepository scopeRepo, SagaBus bus) { _scopeRepository = scopeRepo; _sagaBus = bus; }