Commit Graph

185 Commits (ae1b6171b987e666c2682f22feeb659d27886dd6)

Author SHA1 Message Date
Sturla Thorvaldsson 2f05d2a16b Update SeedData.cs (#12196)
Give the user of the example explicit information (in the form of an exception) if the password used to create the user was not strong enough.  #9025
2019-05-06 16:17:49 -10:00
Luke Latham 217c6f3604 React to repo name change in repo links (#12152) 2019-04-24 14:04:39 -10:00
Luke Latham 2756e95ddf Add back 'mvc' to ms.custom (#12100) 2019-04-22 15:00:59 -05:00
Mike Rousos c5cca0642c Update `IAuthorizationPolicyProvider` docs (#11901)
* Update `IAuthorizationPolicyProvider` docs

This adds more details on using fallback providers and adds documentation for the `GetRequiredPolicyAsync` API.

Fixes #10824

* Proof-reading fixes

* minor tweaks

* remove unnecessary word

* fix spelling mistake
2019-04-15 23:19:18 -05:00
drahuja6 ba03e55160 Missing class name (#11972) 2019-04-15 07:15:56 -10:00
Kirk Larkin b49f43f37a Describe how authorization handlers all run re success, failure and when unauthenticated. (#11870) 2019-04-07 11:14:02 -10:00
Rick Anderson 486e4dfd31
Update secure-data.md (#11668) 2019-03-24 12:33:30 -10:00
Nick Schonning 188fdb2abe fix: MD012/no-multiple-blanks (#11596)
Multiple consecutive blank lines
2019-03-19 13:56:32 -05:00
Nick Schonning f2348c69ea fix: MD010/no-hard-tabs (#11592) 2019-03-19 13:27:16 -05:00
Nick Schonning 068d6f58bb typo: Optinally -> Optionally (#11552) 2019-03-19 09:45:10 -05:00
Nick Schonning 86ae5a9c29 typo: Authenicator -> Authenticator (#11574) 2019-03-19 09:32:10 -05:00
Rick Anderson 73bddf35ce
Update policies.md 2019-03-18 12:47:17 -10:00
Kirk Larkin a69180fd6e Policies section for RP users. 2019-03-17 16:31:45 +00:00
Kirk Larkin 0b50e66be8 Added PoliciesAuthApp2, which uses RP instead of MVC. 2019-03-17 16:31:45 +00:00
Kirk Larkin a8e6beab34 Upgraded PoliciesAuthApp1 to 2.2. 2019-03-17 16:31:45 +00:00
Kirk Larkin 1d0b3d82d1 Reference Service Lifetimes from Policies for Handler registration. (#11286) 2019-03-06 11:50:13 -10:00
Luke Latham ffc52783ca Razor Pages authz conventions updates (#11246)
Fixes #6301 

[Internal Review Topic](https://review.docs.microsoft.com/en-us/aspnet/core/security/authorization/razor-pages-authorization?view=aspnetcore-2.1&branch=pr-en-us-11246)

* Sample to 2.2
* Lean out sample (remove *wwwroot* and references to static assets)
* Drop the cookie policy bits (but leave the HTTPS given that this is an authz samp)
* Add examples of method policy overloads + a link to the policies topic
* Topic UE pass
* XREF links
2019-03-03 13:01:46 -10:00
Pranav K f693a6aa6c Update roles.md (#11136)
Fixes https://github.com/aspnet/Docs/issues/10996
2019-02-26 10:33:20 -10:00
Greeng0 ce52bb5ebd Corrected typos (#11000) 2019-02-18 21:44:53 -06:00
Rick Anderson 82b5271780
add roles (#10928)
Fixes #8819 

[Internal review URL](https://review.docs.microsoft.com/en-us/aspnet/core/security/authorization/roles?view=aspnetcore-1.0&branch=pr-en-us-10928)

mention `AddRoles`

Newline in 
```
options.AddPolicy("RequireAdministratorRole",
             policy => policy.RequireRole("Administrator"));
```
to prevent horizontal scroll bar on tablets.
2019-02-13 14:26:30 -10:00
christiansk 56b4b8198f Explain how multiple requirements in a policy work (#10754)
Included paragraph explaining the behavior of multiple requirements in a single policy as per #10736 .

<!--
# Instructions

When creating a new PR, please reference the issue number if there is one:

Fixes #Issue_Number

The "Fixes #nnn" syntax in the PR description allows GitHub to automatically close the issue when this PR is merged.

NOTE: This is a comment; please type your descriptions above or below it.
-->
2019-02-13 09:25:44 -10:00
Rick Anderson b9e9aad760
Update limitingidentitybyscheme.md (#10925) 2019-02-13 08:50:51 -10:00
Luke Latham f99a209428
Update links to sample app (#10521) 2019-01-21 08:36:50 -06:00
Rick Anderson 38781342eb
Update iauthorizationpolicyprovider.md (#10332)
* Update iauthorizationpolicyprovider.md

* Update iauthorizationpolicyprovider.md
2019-01-11 09:23:55 -10:00
Jon Stelly 8ab09af7a4 Wording improvement for policy-based authorization (#10290)
Not sure if this complies with formatting/wording standards for the docs, but figured I'd create a pull request for my issue: https://github.com/aspnet/Docs/issues/10288
2019-01-09 11:26:06 -06:00
Rick Anderson dd490ba50d
Update secure-data.md (#10254) 2019-01-07 09:42:11 -10:00
Luke Latham 1fe1d47a04
Review/update use of "SSL" (#10139) 2019-01-04 17:16:27 -06:00
Luke Latham 77861347f0
Fundamentals > Servers (#10002) 2018-12-19 12:52:37 -06:00
Luke Latham 11b975f395
Secure data topic updates (#9899) 2018-12-07 18:51:48 -06:00
Rick Anderson 5d633e4d85
Update Edit.cshtml.cs (#9850)
* Update Edit.cshtml.cs

* Update Edit.cshtml.cs
2018-12-06 17:22:52 -10:00
Cam Soper f3ae7f0176
SEO Hackathon December 2018 changes (#9876)
* Whoops - didn't mean to merge that to this branch!

* minor updates

* minor updates

* Fixed issue #8552

* added a note on URL

* made Auth URL consistent with the portal (rather than Visual Studio)

* added a cool dagger for Luke

* phrasing

* formatting

* formatting - re-adding code fenced URLs

* Update azure-ad-b2c-webapi.md

* SEO 2018 for /core/azure and /core/security directories

* SEO 2018 for /core/razor-pages directory

* added custom tag
2018-12-06 17:21:48 -06:00
Luke Latham d18fa2b084
2.2 Sample Updates (#9795) 2018-12-04 10:56:13 -06:00
Scott Addie efa3c4e0c2
Link to Requirements creation section (#9600)
Fixes https://github.com/aspnet/Docs/issues/9584

Also replaced the tabs with moniker ranges while I was in there.
2018-11-15 13:44:05 -06:00
Rick Anderson 0ee6b101d9
delete map and min files (#9310) 2018-10-31 14:26:48 -10:00
Scott Addie fcf473f19a
Fix DocFX build warnings from retired index pages (#9339) 2018-10-30 15:48:01 -05:00
Scott Addie fc1d9f663e Remove 2.2 preview version text (#9334) 2018-10-30 10:27:24 -10:00
Rick Anderson 8523625611
remove PDFs (#9312)
Part of #9182
2018-10-29 14:54:58 -10:00
Tom Dykstra b6ba3d220c Table of Contents reorg (#9133)
* overview

* whats new to end

* fix migration node

* split fundamentals, move to end

* glob & loc, get started

* security node name

* security section

* azure, client-side, host

* several more sections

* redistribute tutorials

* proofread fixes

* move how to download section

* index files delete and redirect

* fix errors

* reorder some nodes

* scott feedback, flatten main tutorials node

* fix missed feedback items + other issues

* unflatten tutorials node

* move 'how to download'

* more tutorials node tweaks

* standardize view sample links

* db --> DB

* fix build error

* remove link from a parent node

* streamline node names

* xref links

* typos

* typo

* typos and revert some xref links

* scott feedback

* scott feedback

* feedback

* change node name

* safe storage-->protect
2018-10-26 18:34:40 -10:00
Luke Latham 5704de168e Implicit versioning of the All package (#9223)
Fixes #9219 

@JunTaoLuo Dan calls out the implicit versioning "for 2.1 SDK or later;" however, we don't usually version the doc content by SDK release. We might need to say something for this update in the passage that I'm adding to the All topic (*aspnetcore/fundamentals/metapackage.md*) about which SDK version this applies to. I don't know if that's something that you would like to do or what version to call out.

I also remove the version from the samples. We also assume that devs are using the latest SDK with our samples.
2018-10-25 15:16:50 -10:00
Rasto 8acab21019 Document allowing access with one scheme or another (#9010)
Fixes #5542
2018-10-22 22:27:17 -05:00
Codefridge abc1555e2d Update aspnetcore/security/authorization/razor-pages-authorization/sa… (#9092)
`AuthenticateUser()` now uses the passed in email parameter, instead of the Input class property.

When checking the user entered email address, the `AuthenticateUser()` method was using the bound property `Input`, which is incorrect, the method must use the `email` parameter that is passed into the method.

PS: This is my first pull request, so is the above enough information?
2018-10-18 10:28:01 -05:00
Luke Latham 8e6dd4a7f4 Drop version from App package (#8881)
Addresses #8579 

I might be getting the hang of **_find and replace_** now. 😝

This doesn't touch a couple that ref 2.2.0. I'll tidy those up on https://github.com/aspnet/Docs/issues/8518 after 2.2 RTM.
2018-10-06 17:10:28 -10:00
Rick Anderson 61f6c2735b
Update secure-data.md (#8856) 2018-10-04 15:21:58 -10:00
Luke Latham a6b3666aff
Change code example in auth policy provider topic (#8799) 2018-10-02 08:49:50 -05:00
Luke Latham 190c62af0c Add blank lines around versioning lines (#8548)
Fixes #8540 

Now, I'm off to buy some J&J stock ... the parent company of a popular eye care product! 😣
2018-09-16 09:14:07 -10:00
Rick Anderson c993428091
Update secure-data.md (#8525)
Fixes #8502
2018-09-13 19:27:11 -07:00
Luke Latham 46f41d4774
Update All and App package versions (#8513) 2018-09-13 11:39:23 -05:00
Rick Anderson a09f423d5e
Update secure-data.md (#8487)
Fixes #8474
@gaazkam @smariussorin @C-BERBER please review
2018-09-11 15:21:34 -07:00
Luke Latham 1a0f79a8fe
Update All/App package version (#8489) 2018-09-11 08:53:03 -05:00
Rick Anderson 07705e5a7b
Update secure-data.md (#8325)
* Update secure-data.md

* Update secure-data.md

* Update secure-data.md
2018-08-30 12:42:27 -07:00