Пример #1
0
 private bool InitFromJwt(string authHeader, ISecurityContext securityContext)
 {
     if (authHeader != null && authHeader.StartsWith("Bearer "))
     {
         securityContext.InitFromJwt(authHeader.Replace("Bearer ", ""));
         return(true);
     }
     return(false);
 }