oidc reloaded
This commit is contained in:
parent
adfaa1a587
commit
c65985477e
22 changed files with 558 additions and 255 deletions
|
|
@ -8,10 +8,10 @@ namespace Mvc.Client.Controllers {
|
|||
public class AuthenticationController : Controller {
|
||||
|
||||
[HttpGet("~/signin")]
|
||||
public ActionResult SignIn(string returnUrl) {
|
||||
public ActionResult SignIn() {
|
||||
// Instruct the OIDC client middleware to redirect the user agent to the identity provider.
|
||||
// Note: the authenticationType parameter must match the value configured in Startup.cs
|
||||
var properties = new AuthenticationProperties { RedirectUri = "/" };
|
||||
var properties = new AuthenticationProperties { RedirectUri = "http://localhost:5002/signin-oidc" };
|
||||
return new ChallengeResult(OpenIdConnectDefaults.AuthenticationScheme, properties);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue