Skip to content

Commit 83ac72e

Browse files
committed
Update readme
1 parent e1888c2 commit 83ac72e

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Pre-releases of this Package are pushed to an internal feed an Azure DevOps. The
2222

2323
## Build
2424

25-
The build environment for this project is on Azure DevOps and can be found here [dev.azure.com/kirkone/KK.AspNetCore.EasyAuthAuthentication](https://dev.azure.com/kirkone/KK.AspNetCore.EasyAuthAuthentication/_releases2?definitionId=1&view=mine&_a=releases)
25+
The build environment for this project is on Azure DevOps and can be found here [dev.azure.com/kirkone/KK.AspNetCore.EasyAuthAuthentication](https://dev.azure.com/kirkone/KK.AspNetCore.EasyAuthAuthentication/_build)
2626

2727
### Nuget package build
2828

@@ -83,6 +83,25 @@ public string UserName()
8383

8484
If you want to add roles to the `User` property you can have a look in `Transformers/ClaimsTransformer.cs` in the Sample project. There you can see an example how to get started with this.
8585

86+
### Local Debugging
87+
88+
For debugging your application you can place a `me.json` in the `wwwroot/auth` folder of your web app and add some configuration to the `AddEasyAuth` call.
89+
For example:
90+
91+
```
92+
).AddEasyAuth(
93+
options =>
94+
{
95+
if (this.Environment.IsDevelopment())
96+
{
97+
options.AuthEndpoint = "auth/me.json";
98+
}
99+
}
100+
);
101+
```
102+
103+
> **Info**: You can obtain the content for this file from an Azure Web App with EasyAuth configured by requesting the `/.auth/me` endpoint.
104+
86105
## Authors
87106

88107
* **Kirsten Kluge** - *Initial work* - [kirkone](https://github.com/kirkone)

0 commit comments

Comments
 (0)