1

Trying to use Challenge(AuthenticationProperties, String[]) as below in my mvc project

 [Authorize]
 public IActionResult SignIn()
 {
     return Challenge(new AuthenticationProperties { RedirectUri = "/" }, OpenIdConnectDefaults.AuthenticationScheme);
 }

But getting following error

cannot convert from Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties to string

Am I doing something wrong here?

Updated

enter image description here

1
  • It thinks you are trying to call Challenge(String[]) Commented Jul 8, 2019 at 11:03

1 Answer 1

1

Found the issue

It was the reference to AuthenticationProperties

This come from both Microsoft.AspNetCore.Authentication and Microsoft.AspNetCore.Http.Authentication

It was pointing to Microsoft.AspNetCore.Http.Authentication which caused the issue

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.