We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am trying to use the AspNetSaml nuget package and I am getting an error when trying to use the Response.Redirect(url) method.
This is the error: Error CS0117 'Response' does not contain a definition for 'Redirect'
I am already using the namespace System.Web and also I added the System.Web.dll
CODE:
static void Redir(Response samlResponse) { //specify the SAML provider url here, aka "Endpoint" var samlEndpoint = "https://saml.xxxx.com/idp/SSO.saml2"; AuthRequest request = new AuthRequest( "https://www.xxxx.com/", //put your app's "unique ID" here "https://www.xxxx.com/" //assertion Consumer Url - the redirect URL where the provider will send authenticated users ); // Generate the provider URL string url = request.GetRedirectUrl(samlEndpoint); Response.Redirect(url); }))
The text was updated successfully, but these errors were encountered:
You're using the example wrong, it's an example of usage from ASP.NET MVC app only
Sorry, something went wrong.
No branches or pull requests
I am trying to use the AspNetSaml nuget package and I am getting an error when trying to use the Response.Redirect(url) method.
This is the error:
Error CS0117 'Response' does not contain a definition for 'Redirect'
I am already using the namespace System.Web and also I added the System.Web.dll
CODE:
The text was updated successfully, but these errors were encountered: