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
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -161,8 +161,11 @@ This value will be retrieved from the registered service app.
161
161
This value will be retrieved from the registered service app. As the name suggests, it should be kept secret and so is probably best not added directly to `appSettings.json` and checked into source control.
162
162
163
163
###### UseProofKeyForCodeExchange *
164
+
164
165
This flag will extend the OAuth flow with an additional security layer called [PKCE - Proof Key for Code Exchange](https://auth0.com/docs/get-started/authentication-and-authorization-flow/authorization-code-flow-with-proof-key-for-code-exchange-pkce).
166
+
165
167
In the OAuth with PKCE flow, a random code will be generated on the client and stored under the name `code_verifier`, and then using the `SHA-256` algorithm it will be hashed under the name `code_challenge`.
168
+
166
169
When the authorization URL is generated, the `code_challenge` will be sent to the OAuth Server, which will store it. The next request for access token will pass the `code_verifier` as a header key, and the OAuth Server will
167
170
compare it with the previously sent `code_challenge`.
168
171
@@ -301,14 +304,14 @@ Responsible for encrypting and decrypting stored tokens (or other values).
301
304
302
305
It has three implementations:
303
306
304
-
- `AesSecretEncryptor` - default implementation that is using a standard `AES` cryptographic algorithm for encrypting/decrypting values based on the provided `TokenEncryptionKey`.
307
+
- `DataProtectionSecretEncryptor` - default implementation that uses the `IDataProtectionProvider` interface for providing data protection services.
308
+
- `AesSecretEncryptor` - additional implementation that is using a standard `AES` cryptographic algorithm for encrypting/decrypting values based on the provided `TokenEncryptionKey`.
305
309
- `NoopSecretEncryptor` - provides no encryption saving the provided token as is.
306
-
- `DataProtectionSecretEncryptor` - additional implementation that uses the `IDataProtectionProvider` interface for providing data protection services.
307
310
308
-
Switching the encryption engine to for example `DataProtectionSecretEncryptor` can be done in code, adding these two lines:
311
+
Switching the encryption engine to for example `AesSecretEncryptor` can be done in code, via:
0 commit comments