Beispiel #1
0
 public void Post(CreateKey request)
 {
     _authRepo.Create(new AuthenticationInfo
     {
         AppName     = request.App,
         IsActive    = true,
         AccessToken = Guid.NewGuid().ToString("N"),
         DateCreated = DateTime.UtcNow
     }, CancellationToken.None);
 }
Beispiel #2
0
 public void Post(CreateKey request)
 {
     _authRepo.Create(new AuthenticationInfo
     {
         AppName     = request.App,
         AccessToken = Guid.NewGuid().ToString("N"),
         DateCreated = DateTime.UtcNow,
         DeviceId    = _appHost.SystemId,
         DeviceName  = _appHost.FriendlyName,
         AppVersion  = _appHost.ApplicationVersion
     });
 }