-
Notifications
You must be signed in to change notification settings - Fork 605
New issue
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
Sustainsys.Saml2.AspNetCore2.HttpRequestExtensions should be public #1474
Comments
This looks like a reasonable change to do, yes. Would you like to submit a PR? |
[Sustainsys/Saml2] Sustainsys.Saml2.AspNetCore2.HttpRequestExtensions should be public (Issue Sustainsys#1474)
I made a PR for the v2 branch. Haven't checked if there's a need in the develop branch. |
One word of caution here: I copied the code for
Naturally this isn't a problem if the class is internal, as there is a great deal of control over where the method can be used. The restriction on where it's safe to use this method is not so obvious for a public class however. Obviously, the quick (and safe?) fix is to use [1]
|
I would like to be able to call Sustainsys.Saml2.AspNetCore2.HttpRequestExtensions.ToHttpRequestData() from my code. As the similar function in the older Sustainsys.Saml2.HttpModule is defined in a public class I assume this omission is just an oversight.
As a workaround, I can copy this class into my own code without any issues. But I would prefer if I could use the existing code from the Sustainsys.Saml2.AspNetCore2 nuget .
The text was updated successfully, but these errors were encountered: