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