Example #1
0
 public string GetUid([Service] IdentityServerService service)
 {
     return(service.SignInManager.Context.User.Identity?.GetSubjectId() ?? "");
 }
Example #2
0
 public async Task <string> GetToken(string userName, string password, [Service] IdentityServerService service)
 {
     return(await service.GetToken(userName, password));
 }