private AuthResult SetTokenForAuthenticationRequest(AuthResult authResults, IAuthProvider provider) { if (!authResults.IsAuthenticated) { return(authResults); } string token = _tokenSrv.CreateClaimToken(authResults.ResourcePermissions); return(authResults.SetSignedToken(token)); }