Last active
April 1, 2020 04:40
-
-
Save predakanga/468a7019f0bf33d6fff4d033764795d3 to your computer and use it in GitHub Desktop.
COPA Comparisons
This file contains hidden or 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
$params = new TokenValidationParameters(); | |
$params->RequireExpirationTime = false; | |
$params->ValidateIssuerSigningKey = true; | |
$params->IssuerSigningKey = "..."; | |
$params->ValidIssuer = $issuer; | |
$params->ValidAudience = $issuer; |
This file contains hidden or 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
$params = new TokenValidationParameters(); | |
$params->setRequireExpirationTime(false) | |
->setValidateIssuerSigningKey(true) | |
->setIssuerSigningKey("...") | |
->setValidIssuer($issuer) | |
->setValidAudience($issuer); |
This file contains hidden or 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
$params = (new TokenValidationParameters)->[ | |
RequireExpirationTime = false, | |
ValidateIssuerSigningKey = true, | |
IssuerSigningKey = "...", | |
ValidIssuer = $issuer, | |
ValidAudience = $issuer | |
]; |
This file contains hidden or 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
$params = new TokenValidationParameters { | |
RequireExpirationTime = false, | |
ValidateIssuerSigningKey = true, | |
IssuerSigningKey = "...", | |
ValidIssuer = $issuer, | |
ValidAudience = $issuer | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment