Commit Graph

39 Commits (a0073f02a9933f1cecc787807a923b9960b8ef37)

Author SHA1 Message Date
Scott Addie 0925108946
Correct the API key name in the user secrets doc (#7215) 2018-06-21 14:04:15 -05:00
Scott Addie a18a6bdc8c
Metadata updates to ASP.NET Core security docs (#7188)
Addresses #6541
2018-06-20 12:43:43 -05:00
Scott Addie 59d40b8bfb
Improve the secrets connection string example (#6908)
* Improve the secrets connection string example

* Update highlighted line numbers in 1.1 sample

* React to feedback
2018-06-06 16:54:41 -05:00
Scott Addie 5ffd62e9c6
Clarify SDK version containing Secret Manager tool (#6564)
Fixes https://github.com/aspnet/Docs/issues/6523

**Changes**
- Display the **Install the Secret Manager tool** section for all versions of ASP.NET Core, since it's not safe to assume the .NET Core SDK version being used.
- Include the specific SDK version number which includes the Secret Manager tool
- Add note about tool warning

[Internal Review Page](https://review.docs.microsoft.com/en-us/aspnet/core/security/app-secrets?branch=pr-en-us-6564&view=aspnetcore-2.0&tabs=windows#install-the-secret-manager-tool)
2018-05-24 08:48:19 -05:00
Luke Latham b9c408f82a App secrets update (#6528)
Fixes #6523

[Internal Review Topic](https://review.docs.microsoft.com/en-us/aspnet/core/security/app-secrets?view=aspnetcore-1.0&branch=pr-en-us-6528)

Tiny nits in the app secrets update: "or later" and a couple of comma splices.

What I wrote for another version of this was more explicit. I'm concerned that the current version doesn't tell devs exactly why/how `AddUserSecrets` is added, and it doesn't say that if `CreateDefaultBuilder` isn't used that they'll still need to do it manually.

Starting with ...

> \- Add the user secrets configuration source to the `Startup` constructor:

> Add the user secrets configuration source with a call to \[AddUserSecrets](/dotnet/api/microsoft.extensions.configuration.usersecretsconfigurationextensions.addusersecrets) in the `Startup` constructor:
>
> \[!code-csharp\[](app-secrets/samples/1.1/UserSecrets/Startup.cs?name=snippet_StartupConstructor&highlight=5-8)]
> ::: moniker-end
> ::: moniker range=">= aspnetcore-2.0"
> When a project calls \[CreateDefaultBuilder](/dotnet/api/microsoft.aspnetcore.webhost.createdefaultbuilder) to initialize a new instance of the host with preconfigured defaults, \[AddUserSecrets](/dotnet/api/microsoft.extensions.configuration.usersecretsconfigurationextensions.addusersecrets) is called when the \[EnvironmentName](/dotnet/api/microsoft.aspnetcore.hosting.ihostingenvironment.environmentname) is \[Development](/dotnet/api/microsoft.aspnetcore.hosting.environmentname.development):
>
> \[!code-csharp\[](app-secrets/samples/2.1/UserSecrets/Program.cs?name=snippet_CreateWebHostBuilder&highlight=2)]
>
> When `CreateDefaultBuilder` isn't called during host construction, add the user secrets configuration source with a call to \[AddUserSecrets](/dotnet/api/microsoft.extensions.configuration.usersecretsconfigurationextensions.addusersecrets) in the `Startup` constructor:
>
> \[!code-csharp\[](app-secrets/samples/1.1/UserSecrets/Startup.cs?name=snippet_StartupConstructor&highlight=5-8)]
> ::: moniker-end

Snippet the call to `CreateDefaultBuilder` to show it (line 2 is highlighted) ...

```csharp
#region snippet_CreateWebHostBuilder
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
    WebHost.CreateDefaultBuilder(args)
        .UseStartup<Startup>();
#endregion
```

... and the sample naming issue remains ("1.1" and "2.1" instead of "1.x" and "2.x").

If anything here looks good, I can mod this branch to make additional updates. Otherwise, nevermind. Just spit-ball'in here.
2018-05-22 13:43:02 -05:00
Scott Addie 8594f2be8e Add note about AddUserSecrets in 2.x 2018-05-18 15:01:17 -05:00
Scott Addie 979a70c830
Add OS tabs to user secrets doc (#6460)
* Add OS tabs to user secrets doc

* Add commas

* Indent tabbed content

* Add line breaks
2018-05-17 11:21:33 -05:00
Scott Addie 8d6d49eb3b Update user secrets doc to 2.x (#6373)
* Update user secrets doc to 2.x

* Introduce another section for adding secrets

* More changes

* More changes

* Add CLI output

* Document more CLI command options

* Add installation note about .NET Core SDK 2.1

* More changes

* Indent code snippets within tabs

* Dedent code snippets

* Add code sample for AddEnvironmentVariables

* Fix code import

* Move text

* Improve examples

* Consolidate csproj files

* Add string replacement section

* Fix code snippet types

* Minor tweaks

* More changes

* Swap ordering of sections

* Move help command out of tabs

* Simplify installation instructions

* Indent command

* Simplification

* More simplification

* React to feedback
2018-05-16 13:33:38 -10:00
Luke Latham 49e38929e5
Revert tab controls (#6350) 2018-05-10 19:58:40 -05:00
Luke Latham 7048bb8fbf API link updates (#6149)
* API link updates

Updates

One more!

Fix bookmark

Mo updates

More updates

Updates

Updates

* Update action-return-types.md

* Update index.md

* Update concurrency.md

* Update intro.md

* Update localization.md

* Update search.md
2018-05-02 14:45:06 -05:00
Rick Anderson 1832723bd1
CI Update (#5878) 2018-04-04 13:51:35 -10:00
Luke Latham bdb6d7cafc Title, description, and H1 updates (4) (#5745)
* Title, description, and H1 updates (4)

* Updates

* Updates

* Drop gerunds and update link text

* Update

* Update next.md

* Update routing.md
2018-03-21 14:18:35 -10:00
Luke Latham e90ee95e78 Prereqs tuneup (#5721)
Updates
2018-03-19 18:04:00 -10:00
Scott Addie d0fb08ac83 Convert Mac to macOS (#5709) 2018-03-15 09:48:55 -10:00
Luke Latham eee39c63b4 Link .NET Core tools docs where mentioned (#5548) 2018-02-24 10:10:22 -06:00
Luke Latham f047169540 Drop [Main] from snippet references (#5547) 2018-02-24 10:08:11 -06:00
Luke Latham abbe642741 Organize metadata (#5296)
Updates
2018-01-29 09:21:31 -06:00
Luke Latham e22c40247e Section header casing and addl resrouce links to xref (#5291)
Fix one link
2018-01-27 10:21:42 -10:00
Luke Latham 313486d76f Taming the savage contraction issue (#5216)
* Form contractions

* Revert two contractions

* Additional reversions

* Additional reversions

* Additional revisions

* Additional revisions

* React to feedback
2018-01-24 09:27:24 -06:00
Luke Latham 31df8fcabf Remove keywords and ms.assetid metadata from ASP.NET Core topics (#5208) 2018-01-19 14:11:45 -06:00
Luke Latham 374ecc35a7 Documenting Options change for 2.0 (#4797)
* Documenting Options change for 2.0

Update

Updates

Updates

* Updates

Fix link

Update TOC entry

Fix redo

Updates

* Update index.md

Simple is banned.

* Factor remaining Options out of Config topic

* React to feedback and updates

Update

Updates

Update metadata

* React to feedback

Update
2017-11-28 14:09:16 -10:00
Marek Karbarz cb9fa97a7b Remove unnecessary markup from top of the document 2017-10-12 12:12:24 -07:00
Rachel Appel f1271b218d update for .net core 2.0 (#4290)
* update for .net core 2.0

* edits

* edits

* code highlights

* cleanup

* tab changes; remove project.json
2017-09-15 14:13:19 +01:00
Isaac Levin 854c07c430 Remove Deadlinks in aspnetcore section of repo (#4241)
* 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
2017-09-11 20:58:51 -05:00
Rick Anderson e1a22c76e6 Update app-secrets.md 2017-07-14 18:05:52 -06:00
Rick Anderson 2225182397 remove | MS Docs (#3612) 2017-06-30 23:47:15 +00:00
Scott Addie b4c4f5a180 Provide Visual Studio instructions for installing Secret Manager (#3139) 2017-04-03 14:47:44 -10:00
Scott Addie 8d50926b1d Fix user secrets doc display issues (#3079) 2017-03-28 11:14:46 -10:00
Rick Anderson a7fbb53fd2 Azure key vault to Secrets manager (#3055) 2017-03-23 12:00:08 -10:00
Rick Anderson 5caf86f9b2 add msbuild support to Secrets MGR (#2671)
* add msbuild support

* update 1

* csproj

* fix

* react to TD feedback

* fix TD

* final fix
2017-03-06 09:16:44 -08:00
Andy Pasic 010b730d27 Bulk metadata fix (#2871)
* 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
2017-03-02 14:50:36 -10:00
Luke Latham a24df9ef54 Update app-secrets.md 2016-12-04 23:14:37 -06:00
Andy Pasic a82e144ea1 fixed code snippets 2016-11-17 21:03:07 -08:00
Rick Anderson 17f93fe6c5 keywords and decription meta-data 2016-11-17 10:13:02 -10:00
Rick Anderson b23d49f1f6 title + meta on technology 2016-11-16 14:24:57 -10:00
Andy Pasic 81425c2f2a Api link fix (#2115)
* quick test

* quick test

* quick test

* Revert "quick test"

This reverts commit 91b07a3df5.

* Revert "quick test"

This reverts commit e44af19bb4.

* Revert "quick test"

This reverts commit 6872a1921d.

* Removed links to old api site

* Fixed link to H1

* quick fix

* Fixed link to H1

* reverted to match master

* removed random character.

* removed random unix character

* removed random unix character

* removed random UTF character

* removed random UTF character

* removed random UTF character

* removed random UTF character

* removed random UTF character

* removed random UTF character

* Quick fixes

* Update CONTRIBUTING.md

* removed random UTF character

* removed random UTF character

* Update routing.md

* Update validation.md

* Update overview.md

* Update linuxproduction.md

* Update web-publishing-vs.md

* Update sociallogins.md

* Update cors.md

* Update cross-site-scripting.md

* Update overview.md

* Update key-encryption-at-rest.md

* Update adding-model.md

* Update new-field.md

* Update validation.md

* Update first-web-api.md

* Update nano-server.md

* Update your-first-mac-aspnet.md

* Update linuxproduction.md
2016-11-07 07:58:40 -10:00
Roman 545b89a50f fix path (#2098)
failing with No executable found matching command "dotnet-user-secrets" if you run dotnet-user-secrets in root project dir
2016-11-03 17:17:19 -10:00
Rick Anderson 362720dca2 Fix OPS build (#2023)
* fb

* del folders

* fb

* fix ref

* tos

* toc

* toc
2016-10-31 09:20:51 -10:00
Daniel Roth e9c1419175 Add docfx content 2016-10-28 10:35:15 -07:00