In .Net Core 2.0 using the code as supplied results in an exception, the fix is to pass the scheme name when calling AddCookie.
Fails:
services.AddAuthentication("MyCookieAuthenticationScheme")
.AddCookie
Works:
Fix demo code for services.AddAuthentication.AddCookie
services.AddAuthentication("MyCookieAuthenticationScheme")
.AddCookie("MyCookieAuthenticationScheme",
* Add ASP.NET Core 2 features to Identity Configuration.
Fixed typo with ASP.NET Core 1 Cookie Name.
* Make things more clear and call out the specific options.
* Fix wording, spacing, typo on folder name. Display 1.x snippets with more context
* Fix typo
* Move properties and call out ASP.NET Core 1.x ones.
* Create mvc2.md
Added temp file to house doc requested in #3809
* Initial outline of document
* Added Note for Special Tooling (VS 2017 Preview 3)
Will remove when Preview 3 is updated into Release
* Added Porting Link
* Added Core DI Sample
* added DI Section
* Added Storing Configuration Settings Section
* Adding Custom Settings samples
* part of static content
* static content section
* .net standard section
* Adding Edit in VS 2017 Image
* Samples for Startup
* startup and csproj section
* update image reference
* Updates to Migration Doc
changes per @scottaddie
* Final round of changes
Please review
* Edits
* Fix invalid xref link
* More edits
* More edits
* More edits
* More edits
* More edits
* More edits
* Move Content to different directory
* Update Code Sample Links
* change sample location
* ::
* Update Sample Filenames
* Minor edit
* Remove extra space
* More edits
* Move Static Folder
* update reference to image
* Update mvc2.md
* Minor tweaks
* Changes to sample file
* Change copy for Configuration Section
* Fix code formatting
* Remove extra line feed
* Remove extra line feed
* Fix 3xx/4xx/5xx Status Codes in aspnetcore folder
* Take out locality references in urls:
* change MSDN urls to docs.microsoft if possible
* Update aspnet-core-module.md
* Update iis.md
* Remove localization from external links
* Changes to split out the ASP.NET Core 2 Identity cofig from ASP.NET Core 1.
* Fix problem with number rendering
Show differences between ASP.NET Core 1.x and 2.x config.
* Fix extra spaces
Add snippet_ prefix to regions
* Correct what UseAuthentication does.
* Update snippet regions with snippet_ prefix.
* Update Localization sample app
Fixes#2943
* Takes the sample to 2.0
* HTML5 (I gave this some thought, and I still prefer unclosed void
elements. Content-Type = "text/html" and doctype is HTML5. I think the
spec (making the closure optional) is a bit of a hack on their part.
These tags do not contain content, so imo they really shouldn't be
closed (logically).
* Bower out: Adds too many complications. We have *www/lib* locked out
of the source; therefore, the sample will break if the machine is
offline and Bower isn't run. Bower requires npm. Many *many* devs and
shops don't like it and don't want it. It has nothing to do with
localization. imo samples should run everywhere possible with minimal
config and setup and only use the tech required to demo the focused
tech.
*
Add one file
Updates
* React to feedback
Also patched the title, description, and keywords on this pass.
* Very important note about URL format
I spent 4 hours finding what is wrong!
If you can you must highlight it with red font
* Update cors.md
* Update cors.md
* [WIP] Update Azure Key Vault Config Provider topic and sample
@Rick-Anderson @tdykstra Would you mind marking this **WIP** right now.
I'll need to make a few passes on it prior to getting review underway.
cc/ @anurse (partner in crime on this topic), @blowdart, @pakrym,
@olavt, @Coderrob
Fixes#3369
:flame: *HOT!* :flame: updates in this one:
* 2.0 samples added (note that tabs aren't required, because the topic's
examples are the same thus far across 1.x and 2.x). However, the 1.1 and
2.0 samples are linked when mentioning to the reader what they can
download.
* Re-organized the topic a bit to accomodate the two samples.
* Reacted to the feedback in #3369 and the discussion in
https://github.com/aspnet/Docs/pull/3525.
* Samples are refactored into an example of placing secrets into a
single key vault for different app *versions*, not app names. Using app
names or the environment isn't a security best practice.
Update
Update
Updates
Updates
Update
Updates
Update
Updates
Updates
* Condition the ItemGroup for netcoreapp2.0
* React to feedback
* Update version references and sample folders
Add one
Minor text change
More minor changes
Even better
One more
* Remove dependency statement
* Update net462 deps
* Even better!
* Reverse order for 2.x tab first
* Update 2.0 samples: Only target netcoreapp
* 2.0 update for cookie middleware doc
* More changes
* More changes
* More changes
* Replace banned words
* More changes
* More changes
* More changes
* Implement suggestions
* Add Hao's suggestions
* #3753 Update social logins index
* #3753 Update facebook logins
* #3753 Update Google logins
* #3753 Update Twitter logins
* #3753 Update Microsoft logins
* #3753 Combine social and local login accounts screenshot update
* #3753 Fix app name in screenshot
* #3753 QA pass
* #3753 Put borders on screenshots to replace shadows
* Update facebook-logins.md
Minor clean up - remove future tense. Split up long sentences to help software translators.
* Update facebook-logins.md
* Update google-logins.md
* Update index.md
* #3753 Fix missing anchor
* Merge with origin
* #3862 Social snippets by SDK vesion
* #3753 Update social logins index
* #3753 Update facebook logins
* #3753 Update Google logins
* #3753 Update Twitter logins
* #3753 Update Microsoft logins
* #3753 Combine social and local login accounts screenshot update
* #3753 Fix app name in screenshot
* #3753 QA pass
* #3753 Put borders on screenshots to replace shadows
* Update facebook-logins.md
Minor clean up - remove future tense. Split up long sentences to help software translators.
* Update facebook-logins.md
* Update google-logins.md
* Update index.md
* #3753 Fix missing anchor
* Updating to latest, cleaning up article and screenshots
* Update of Identity (#3653)
* WIP: Update of Identity
* Update identity.md
* Adding red box; adding link to account confirmation.
* Initial progress
* Adding to TOC
* Ready for review
* redirect (#3631)
* WIP: redirect
* Update preventing-open-redirects.md
* Minor cleanup
* Adding LocalRedirect info and example
* Updating figure
* Fixing typo and adding another example
* Rewording example and adding list.
* Fix issue which rose when rendering index
* Includes check for edit permission before listing.
* Inject authorization service and import libraries.
* Commented out cosmetic
* stub for custom providers doc
* progress
* more progress
* Updating TKey references.
* More progress
* adding sample project with default identity controllers and views
* Final updates before PR
* Update identity-custom-storage-providers.md (#3509)
* Update identity-custom-storage-providers.md
* Update identity-custom-storage-providers.md
* Minor tweaks to Identity storage providers doc
* Change "a" to "an"
* Update identity-custom-storage-providers.md
* Responding to Tom's feedback in Rick's PR.
* Responding to feedback
* Updated home page to provide instructions. Updated ApplicationUser to implement IIdentity.
* Commented out the reset password link
* Updated the instructions to update the ForgotPassword.cshtml page.
* Update accconfirm.md
* Update accconfirm.md
* Minor updates to text and to fix the code block.
* Update accconfirm.md
Updating MinimumAge property to public and setter private, since the 'protected' accessibility won't work in the MinimumAgeHandler (given it accesses this property as public).
* Secure user data
* removed dead code
* Revert "removed dead code"
This reverts commit 3311e8e4d4.
* move snippets to final15
* work
* fix
* work
* work
* work
* work
* work
* work
* work
* work
* work
* CRUD check
* work
* rename
* work
* formatting
* tdykstra feedback
* work
* tom feedback
* work
* work
* joe feedback
* work
* download
* fix
* download link
* download link
* Add page for OSS auth options
In the One ASP.NET dialog we are adding a link for users to learn more about OSS auth options.
I'm working with @danroth27 on the content here.
Changed the "LogOff" action name into "LogOut".Changed the "LogOff" action name into "LogOut".By default ASP Net core provides Logoff action in "LogOut" ActionResult Only.Also raised PR for changed the action name in account controller .
* WIP start of XSRF
* MD conversion
* WIP
* Made a lot of progress on filters and javascript impl
* adding sample
* minor updates
* Ajax demo
* Responding to feedback
* Responding to feedback
* Updating JavaScript sample to highlight service injection primarily.
* Updated "session" to "identity" per @blowdart.
Also added a note about use of session elsewhere in the document.
* Add troubleshooting tip for `System.TypeLoadException`
When running AspNet Core 1.1 on top of .NET 4.6.2 and trying to use the Azure Key Vault configuration extensions, I was encountering an exception that was being thrown for `System.TypeLoadException`. I discovered this originated from the use of the Azure Key Vault API and how it interacted with an older (built-in) version of `System.Net.HTTP`. I ended up installing the updated NuGet package for `System.Net.Http` and that fixed the issue. Hopefully this proposed tip will help someone in the future. Or at least until the packages get more aligned.
* Update key-vault-configuration.md
* meta data fix
* Revert "meta data fix"
This reverts commit ba36883476.
* meta data fix2
* test
* Update owin-oauth-20-authorization-server.md
* Update api-ref.md
* Update api-ref.md
* test
* test2
* Update cookie-sharing.md
Added a tip to suggest to add a dependency for the code to start working. It was not obvious and made me search through source code
* removed tip