示例#1
0
 public Task <FacebookAdto> ChangeAsync(ChangeFacebookAdto changeFacebookAdto)
 {
     return(_securityApplicationService.SecureAsync(() => _facebookAuthenticationServiceApplicationService.ChangeAsync(changeFacebookAdto),
                                                    DefaultAuthorisationContext.Create(AuthorisationResource.AuthenticationService, AuthorisationAction.Update)));
 }
 public Task <IEnumerable <ApplicationAdto> > GetAllAsync()
 {
     return(_securityApplicationService.SecureAsync(() => _applicationApplicationService.GetAllAsync(),
                                                    DefaultAuthorisationContext.Create(AuthorisationResource.Application, AuthorisationAction.Search)));
 }
示例#3
0
 public Task <FacebookAdto> GetAsync(GetFacebookAdto getFacebookAdto)
 {
     return(_securityApplicationService.SecureAsync(() => _facebookAuthenticationServiceApplicationService.GetAsync(getFacebookAdto),
                                                    DefaultAuthorisationContext.Create(AuthorisationResource.AuthenticationService, AuthorisationAction.Get)));
 }
 public Task <PasswordAdto> RegisterPasswordAsync(RegisterPasswordAdto registerPasswordAdto)
 {
     return(_securityApplicationService.SecureAsync(() => _identityApplicationService.RegisterPasswordAsync(registerPasswordAdto),
                                                    DefaultAuthorisationContext.Create(AuthorisationResource.Identity, AuthorisationAction.Create)));
 }
示例#5
0
 public Task <ReferenceDataValueAdto> GetAsync(GetReferenceDataAdto getReferenceDataAdto)
 {
     return(_securityApplicationService.SecureAsync(() => _referenceDataApplicationService.GetAsync(getReferenceDataAdto),
                                                    DefaultAuthorisationContext.Create(AuthorisationResource.ReferenceData, AuthorisationAction.Get)));
 }
 public Task DeleteClientCredentialAsync(DeleteClientCredentialAdto deleteClientCredentialAdto)
 {
     return(_securityApplicationService.SecureAsync(() => _authenticationServiceApplicationService.DeleteClientCredentialAsync(deleteClientCredentialAdto),
                                                    DefaultAuthorisationContext.Create(AuthorisationResource.AuthenticationService, AuthorisationAction.Delete)));
 }
 public Task ForgotPasswordAsync(ForgotPasswordAdto forgotPasswordAdto)
 {
     return(_securityApplicationService.SecureAsync(() => _identityApplicationService.ForgotPasswordAsync(forgotPasswordAdto),
                                                    DefaultAuthorisationContext.Create(AuthorisationResource.Identity, AuthorisationAction.Create)));
 }
 public Task <IEnumerable <AuthenticationServiceTypeAdto> > GetAuthenticationServiceTypes()
 {
     return(_securityApplicationService.SecureAsync(() => _authenticationServiceApplicationService.GetAuthenticationServiceTypes(),
                                                    DefaultAuthorisationContext.Create(AuthorisationResource.AuthenticationService, AuthorisationAction.Create)));
 }
示例#9
0
 public Task <GoogleAdto> CreateAsync(CreateGoogleAdto createGoogleAdto)
 {
     return(_securityApplicationService.SecureAsync(() => _googleAuthenticationServiceApplicationService.CreateAsync(createGoogleAdto),
                                                    DefaultAuthorisationContext.Create(AuthorisationResource.AuthenticationService, AuthorisationAction.Create)));
 }
示例#10
0
 public Task <JwtAdto> FacebookAsync(ClientCredentialAdto clientCredentialAdto)
 {
     return(_securityApplicationService.SecureAsync(() => _authenticationApplicationService.FacebookAsync(clientCredentialAdto),
                                                    DefaultAuthorisationContext.Create(AuthorisationResource.Authenticate, AuthorisationAction.Create)));
 }
示例#11
0
 public Task <JwtAdto> RefreshTokenAsync(RefreshTokenAdto refreshTokenAdto)
 {
     return(_securityApplicationService.SecureAsync(() => _authenticationApplicationService.RefreshTokenAsync(refreshTokenAdto),
                                                    DefaultAuthorisationContext.Create(AuthorisationResource.Authenticate, AuthorisationAction.Create)));
 }
示例#12
0
 public Task <JwtAdto> PasswordAsync(PasswordAdto passwordAdto)
 {
     return(_securityApplicationService.SecureAsync(() => _authenticationApplicationService.PasswordAsync(passwordAdto),
                                                    DefaultAuthorisationContext.Create(AuthorisationResource.Authenticate, AuthorisationAction.Create)));
 }