jitbit / AspNetSaml

Very simple SAML 2.0 consumer module for ASP.NET/C#
https://www.jitbit.com
Apache License 2.0
361 stars 118 forks source link

Response.Redirect in mvc #18

Closed ShanghaiBill closed 5 years ago

ShanghaiBill commented 5 years ago

I am attempting to implement AspNetSaml in mvc but ran into an error. The Response.Redirect line in step 1 of your example gives an error that says it doesn't exist in the current context. I have placed the code into the StartUp.cs page of the application replacing the app.UseAuthentication() method. How do I do a redirect to my provider in mvc and am I placing the code in the correct place?

Thanks

alex-jitbit commented 5 years ago

It should be in an action-method, not in "Startup"