-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3fb1d15
commit 4fbec46
Showing
4 changed files
with
49 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
**Use OAuth 2.0 PKCE** | ||
|
||
Proof Key for Code Exchange (PKCE, RFC 7636) is an extension to OAuth 2.0. It | ||
helps to protect authentication tokens when the `client_secret` value cannot be | ||
kept secure, such as mobile applications and JavaScript single page | ||
applications. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
=== OAuth Token Compromise | ||
|
||
The OAuth 2.0 authorization code grant flow is a secure method of authorizing | ||
a web application to access a third-party service. After the user authenticates | ||
with the third-party service and grants access, the web application is sent a | ||
single-use code. The application must then pass this code and a `client_secret` | ||
value to the service in order to obtain a usable authentication token. | ||
|
||
If the `client_secret` value is disclosed, anyone who can intercept the | ||
single-use code can then exchange it for a valid authentication token. |