-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
✔️ Resolution: AnsweredResolved because the question asked by the original author has been answered.Resolved because the question asked by the original author has been answered.Status: Resolvedold-area-web-frameworks-do-not-use*DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels*DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels
Description
My apologies in advance if this is explained before, but I could not find any topic on this Github repo, SO, or learn.microsoft.com that explains it.
I am wondering what are the differences between the following two calls when authenticating with an external identity provider, and when each is recommended over the other?
[HttpPost]
[AllowAnonymous]
public IActionResult ExternalLogin()
{
return Challenge(_getProps(), GoogleDefaults.AuthenticationScheme);
}
[HttpPost]
[AllowAnonymous]
public IActionResult ExternalLogin()
{
return new ChallengeResult(GoogleDefaults.AuthenticationScheme, _getProps());
}Metadata
Metadata
Assignees
Labels
✔️ Resolution: AnsweredResolved because the question asked by the original author has been answered.Resolved because the question asked by the original author has been answered.Status: Resolvedold-area-web-frameworks-do-not-use*DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels*DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels