Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra formatting in README #23

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ An implementation of the Strangler Fig pattern for ASP.NET Core

### Amend the web.config to load the handlers

```
```xml
<system.webServer>
<handlers>
<add name="FacadeSession" verb="*" path="facadesession" type="ReCode.Cocoon.Legacy.Session.SessionApiHandler, ReCode.Cocoon.Legacy, Version=1.0.0.0, Culture=neutral" preCondition="integratedMode"/>
Expand Down Expand Up @@ -44,7 +44,7 @@ app.UseCookieAuthentication(new CookieAuthenticationOptions

### Disable MVC routing for the new handlers

```
```c#
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
Expand Down Expand Up @@ -72,7 +72,7 @@ public static void RegisterRoutes(RouteCollection routes)

For authentication and session to work the names Cocoon uses between the applications must be aligned. In the new application look at the appSettings files.

```
```json
"Cocoon": {
"Proxy": {
"DestinationPrefix": "https://localhost:44302/"
Expand All @@ -98,13 +98,13 @@ For authentication and session to work the names Cocoon uses between the applica

The cookie names need to match the names in the application that's being facaded. They can normally be found in the web.config

```
```xml
<authentication mode="Forms">
<forms loginUrl="~/Account/LogOn" timeout="432000" name="COOKIENAME" slidingExpiration="true" />
</authentication>
```

```
```xml
<system.web>
<sessionState regenerateExpiredSessionId="false" cookieless="UseCookies" cookieName="COOKIENAME" />
</system.web>
Expand All @@ -131,7 +131,6 @@ If you want to build the images individually you can run the following from the
docker build -t cocoon/blazorapp:latest -f samples/BlazorCocoon/Dockerfile .
docker build -t cocoon/mvccore:latest -f samples/mvccocoon/src/mvccocoon/Dockerfile .
docker build -t cocoon/blazorserver:latest -f samples/BlazorServerCocoon/src/BlazorServerCocoon/Dockerfile .

```
This is much quicker if you're amending individual applications.

Expand All @@ -151,4 +150,4 @@ dotnet tool install --global Microsoft.Playwright.CLI

playwright install
```
You can now run the tests inside the test/integration folder.
You can now run the tests inside the test/integration folder.