Ejemplo n.º 1
0
        //[ValidateAntiForgeryToken]
        public async Task <IActionResult> OAuth2(string provider, string returnUrl = null)
        {
            string redirectUrl = Url.Action(nameof(OAuth2Callback), "Index", new { returnUrl });
            var    result      = await _identityService.OAuth2(provider, redirectUrl);

            return(Challenge(result));
        }