-
-
Notifications
You must be signed in to change notification settings - Fork 598
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…ce them with AuthMethod::AUTH_* const (ipalo) This PR was squashed before being merged into the 3.4.x-dev branch. Discussion ---------- Contribution for #955 Commits ------- 11c2d9f refs #955: deprecate Client::AUTH_* constants and replace them with AuthMethod::AUTH_* const f4774d0 refs #955: revert the Client::AUTH_* deletion (BC) e7f1ab9 refs #955: fix CR issues c9cf54e refs #955: add upgrade to v4.0 notes ec6656c refs #955: set public all constants
- Loading branch information
Showing
10 changed files
with
79 additions
and
35 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
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,30 @@ | ||
<?php | ||
|
||
namespace Github; | ||
|
||
final class AuthMethod | ||
{ | ||
/** | ||
* Authenticate using a client_id/client_secret combination. | ||
* | ||
* @var string | ||
*/ | ||
public const CLIENT_ID = 'client_id_header'; | ||
|
||
/** | ||
* Authenticate using a GitHub access token. | ||
* | ||
* @var string | ||
*/ | ||
public const ACCESS_TOKEN = 'access_token_header'; | ||
|
||
/** | ||
* Constant for authentication method. | ||
* | ||
* Indicates JSON Web Token authentication required for GitHub apps access | ||
* to the API. | ||
* | ||
* @var string | ||
*/ | ||
public const JWT = 'jwt'; | ||
} |
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
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