Ejemplo n.º 1
0
        private AuthResult SetTokenForAuthenticationRequest(AuthResult authResults, IAuthProvider provider)
        {
            if (!authResults.IsAuthenticated)
            {
                return(authResults);
            }

            string token = _tokenSrv.CreateClaimToken(authResults.ResourcePermissions);

            return(authResults.SetSignedToken(token));
        }