Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
UseCookieAuthentication expects a CookieAuthenticationOptions object, and refuses lambda #892
Comments
|
FYI, there are already a few tickets about that (e.g #825) |
|
We are not planning on changing this pattern. |
Eilon
closed this
Jul 21, 2016
Eilon
added
the
wontfix
label
Jul 21, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
diddledan commentedJul 6, 2016
The documentation used to state (until I fixed it) that the following was acceptable for setting-up cookie authentication:
This form is in line with other middlewares such as
app.UseMvc()(inConfigure()) andservices.AddAuthorization()(inConfigureServices()).However the final 1.0.0 code requires the following form:
The second, i.e. current as of 1.0.0, state seems to be inconsistent with related middleware configuration methods such as the two I mention above.
Unfortunately now the 1.0.0 version is live we cannot easily change the semantics, so I wonder about the possibility of adding an overload to accept the lambda-style instantiation as seems to have been the case in the 1.0.0rc1 days: