You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-7Lines changed: 12 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# KK.AspNetCore.EasyAuthAuthentication
2
2
3
-
This helps getting azure appservice authentication working with asp.net core.
3
+
This helps getting azure appservice authentication working with asp.net core.
4
4
5
5
## NuGet
6
6
@@ -22,7 +22,7 @@ There are also access to packages from pull requests in another <a href="https:/
22
22
23
23
## Build
24
24
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).
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).
26
26
27
27
### Nuget package build
28
28
@@ -136,7 +136,7 @@ The `NameClaimType` is the ClaimType of the value which one will be used to fill
136
136
137
137
#### Local Debugging
138
138
139
-
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.
139
+
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.
140
140
For example:
141
141
142
142
```csharp
@@ -161,13 +161,18 @@ For example:
161
161
162
162
There are some predefined providers in this package. If you need your own or want contribute to our existing providers you must implement the `IEasyAuthAuthentificationService`.
163
163
164
-
### `EasyAuthWithAuthMeService` (always on)
164
+
### `EasyAuthWithAuthMeService`
165
165
166
-
This is a slightly special provider. This provider cannot be configured and does not implement the 'IEasyAuthAuthentificationService'. This provider is for development. A developer can create a JSON with the content of the `/.auth/me` endpoint of an EasyAuth Azure Web App. So you don't need a connection to the internet or azure for development and just use your local things.
166
+
This is a slightly special provider. This provider cannot be configured. You can only turn it on or off. It also does **not** implement the 'IEasyAuthAuthentificationService'. This provider is for development. A developer can create a JSON with the content of the `/.auth/me` endpoint of an EasyAuth Azure Web App. So you don't need a connection to the internet or azure for development and just use your local things.
167
+
You must only configure an Azure Web App with Authentification and browse the path:
168
+
169
+
`https://hostnameOfYourWebSite/.auth/me`
170
+
171
+
This endpoint return a json after the authentication. Put the content in a new file in your `wwwroot`folder. (create the same path like: `.auth/me.json`)
167
172
168
173
### `EasyAuthForAuthorizationTokenService`
169
174
170
-
Use this provider if you have a Azure Web App, that is not only be used by humans. For instance if you want to access your app with a Service Principal (SPN).
175
+
Use this provider if you have a Azure Web App, that is not only be used by humans. For instance if you want to access your app with a Service Principal (SPN).
171
176
172
177
To create a Service Principal (SPN), which get access to your EasyAuth protected Application. You have to change the app manifest for you application in your Azure AD. Thanks to [Suzuko123](https://github.com/Suzuko123) for the following sample:
173
178
@@ -206,7 +211,7 @@ See also the list of [contributors](https://github.com/kirkone/KK.AspNetCore.Eas
206
211
207
212
## License
208
213
209
-
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.
214
+
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.
0 commit comments