Commit Graph

53 Commits (7b4ef4647ada77d9e5dde9f336f40b266cbfeefb)

Author SHA1 Message Date
Luke Latham 8031f63a22 Surface Forward Headers in ext auth provider topics (#9554)
Fixes #9549 

* Not a full UE pass on the group of external provider topics ... don't quite have time for that right now. However, I do hit a number of small UE-type updates.
* Engineering: You only need to look at one thing here: See the *forwarded-headers-middleware.md* file. The content of the file is below. The INCLUDE is linked into the external auth provider topics to surface Forwarded Headers Middleware (proxy/LB topic).

> \#\# Forward request information with a proxy or load balancer
>
> If the app is deployed behind a proxy server or load balancer, some of the original request information might be forwarded to the app in request headers. This information usually includes the secure request scheme (\`https\`), host, and client IP address. Apps don't automatically read these request headers to discover and use the original request information.
>
> The scheme is used in link generation that affects the authentication flow with external providers. Losing the secure scheme (\`https\`) results in the app generating incorrect insecure redirect URLs.
>
> Use Forwarded Headers Middleware to make the original request information available to the app for request processing.
>
> For more information, see \<xref:host-and-deploy/proxy-load-balancer>.

If it's easier to provide feedback in a comment here over hunting down the file on the diff, that works for me.
2018-11-14 15:58:01 -06:00
Luke Latham bb8267cc27 IHostedService StopAsync cancellationToken updates (#9555)
Fixes #9144 

[Internal Review Topic](https://review.docs.microsoft.com/en-us/aspnet/core/fundamentals/host/hosted-services?view=aspnetcore-2.1&branch=pr-en-us-9555#ihostedservice-interface)

cc: @ygoe
2018-11-14 15:43:07 -06:00
Luke Latham 7bb699bf1b Version the 1.1 PDF of the Kestrel and Web Host topics (#9567)
Fixes #9565
2018-11-12 16:44:39 -10:00
Luke Latham 386d64b59d
Generic Host topic updates (#9341) 2018-11-08 20:10:30 -06:00
Kevinio04 3ce1f44830 Exclude Bin and Obj when copying to output directory (#9507) 2018-11-07 19:23:23 -06:00
Kevinio04 fbf918a74e Exclude Bin and Obj from CopyToOutputDirectory (#9508) 2018-11-07 19:12:50 -06:00
Luke Latham 659e3ce17f Update BuildWebHost to CreateWebHostBuilder (MD topics) (#9268)
* Update BuildWebHost to CreateWebHostBuilder (MD topics)

Updates

Updates

Update

Tab update

Repair versioning

* Revert Swashbuckle changes

* Dropping versions <2.1 in two topics

* Versioning update

Versioning update

* Resolve tab warning
2018-11-05 13:10:38 -10:00
Rick Anderson 0ee6b101d9
delete map and min files (#9310) 2018-10-31 14:26:48 -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 c12f7b04b2
Env var patch in host topics (#9104) 2018-10-18 13:26:04 -05:00
Luke Latham e88d6d6e86 Description line in the wrong spot (#9103) 2018-10-18 13:02:39 -05:00
Luke Latham 1f3698ba45 List default services for Generic Host (#9061)
Fixes #8893 

[Internal Review Topic](https://review.docs.microsoft.com/en-us/aspnet/core/fundamentals/host/generic-host?view=aspnetcore-2.1&branch=pr-en-us-9061)

* Remove Logging from service config (given it's a default service).
* List the default services (too literal here? ... trimming needed??? 🔪)
2018-10-17 19:58:19 -05:00
Luke Latham e762fe8c57
Language enhancement to the Web Host topic (#8986) 2018-10-12 11:53:45 -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
Luke Latham d3db6fcd25
Fix highlighting in Background tasks code sample (#8761) 2018-09-29 19:21:21 -05:00
Maxim Kornilov eb767b9464 Use the correct type as a parameter for the generic (#8724) 2018-09-26 20:54:56 -05:00
Luke Latham 5b06b81ede
Surface the package in the Background Tasks topic (#8684) 2018-09-24 14:54:18 -05:00
Luke Latham 46f41d4774
Update All and App package versions (#8513) 2018-09-13 11:39:23 -05:00
Luke Latham 1a0f79a8fe
Update All/App package version (#8489) 2018-09-11 08:53:03 -05:00
Luke Latham 2ddfa7c217
ConfigureKestrel updates (#8384) 2018-09-07 11:24:42 -05:00
Luke Latham 23d59d00dc
Change extensibility example (#8426) 2018-09-06 14:39:47 -05:00
Luke Latham defd5613f9
Hosting startup topic updates (#7678) 2018-08-31 11:54:45 -05:00
Luke Latham 3d2aabf7ea
Clarify when StartAsync is called (#8354) 2018-08-30 14:26:31 -05:00
Luke Latham 87cbd8d51e
Configuration updates (#8050) 2018-08-24 14:10:45 -05:00
Luke Latham 304c3866f3 Middleware topic+sample update (#8209) 2018-08-21 13:34:05 -07:00
Luke Latham 232d345f9e
Specify "Core" for ASP.NET Core refs (#8110) 2018-08-15 22:30:29 -05:00
Luke Latham de5ec7818c
Enforcing SSL topic: HTTPS_PORT env var details (#7767) 2018-07-30 13:39:58 -05:00
Luke Latham cd2622c8d8 Correct code in Generic Host topic (#7861) 2018-07-30 11:29:22 -05:00
Luke Latham ef20ad81f5
Correct code in Generic Host topic (#7860) 2018-07-28 14:07:23 -05:00
Luke Latham 6fdf2f61e9
Only doc the latest minor release (2.1) in the Hosted Service topic (#7681) 2018-07-18 16:32:27 -05:00
granthoff1107 4a24fff6af Update Hosted Service topic: Refactor Queued Hosted Service to use BackgroundService (#7640) 2018-07-18 15:33:12 -05:00
Luke Latham 34b33e245b Add version to App package references (#7551)
Fixes #7532
2018-07-10 22:43:09 -05:00
Luke Latham a417ad96a6
App key/name enhancements to host topics (#7493) 2018-07-06 13:12:11 -05:00
Luke Latham ee6cf413ad
Move settings files update (#7472) 2018-07-05 19:29:57 -05:00
Mike McFarland d698d150e0 Fixed invalid variable name in generic host snippet (#7347)
Snippet `ConfigureAppConfiguration` in the generic host fundamental page was referencing an invalid variable name in the context of the scope. Updated to use the correct variable name.
2018-06-28 09:53:49 -05:00
Miroslav Popovic b3366bba2b Fix a typo in service container registration sample (#7324) 2018-06-27 08:28:18 -05:00
Miroslav Popovic 04f7493738 Fix another typo in text for IApplicationLifetime interface (#7325) 2018-06-27 08:26:23 -05:00
Luke Latham eef1521324
Update Multiple environments topic (#7148) 2018-06-21 12:32:07 -05:00
Scott Addie 675e659111
Metadata updates for ASP.NET Core fundamentals docs (#7181) 2018-06-20 11:11:27 -05:00
Luke Latham df572aa412
Improve web host configuration content (#7098) 2018-06-19 12:43:41 -05:00
Luke Latham 3ef776e724 Improve environment variable coverage (#7092)
Fixes #6760 

The goals are ...

* Surface that env vars aren't added by default with the Generic Host.
* Describe `AddEnvironmentVariables`.
* Deal with env var prefix issue.
* Explain how to set env vars for dev (shoot reader to *Multiple environments* topic for more info). Mention VS, command-line, and VSC config.
* Add VSC example to the *Multiple environments* topic.
* Update the sample app and snippets for the topic.
2018-06-19 09:47:55 -05:00
Daniel Moncada 1afce7712f fix logger type in LifetimeEventsHostedService example (#6987) 2018-06-11 13:25:36 -05:00
Greg Ingram 3fc974194c Update hosted-services.md (#6983) 2018-06-11 07:49:26 -05:00
Luke Latham f24f625478
Update Generic Host language (#6922) 2018-06-07 12:55:07 -05:00
Luke Latham b84e28f124
Use AddHostedService (#6901) 2018-06-06 14:49:41 -05:00
Luke Latham b1c6b25eda
Package language updates (#6824) 2018-06-02 19:04:59 -05:00
Luke Latham ff68090f60
Drop unessential pages (#6773) 2018-05-31 19:50:18 -05:00
Luke Latham 26267a687d
Move env var config down in Generic Host sample (#6766) 2018-05-31 17:33:39 -05:00
Luke Latham 0bb30ec6e5
Generic Host updates (#6751) 2018-05-31 15:59:44 -05:00
Luke Latham 6fc9fd5823 2.1 Sample updates (Round 1) (#6709)
Addresses #5495 

* This one takes care of the topics in the *fundamentals/host* TOC area, including its three samples.
* All samples verified working with 2.1 RTM bits. 🎉

Ignore the three build warnings. They're fixed on https://github.com/aspnet/Docs/pull/6712.
2018-05-31 09:54:44 -05:00