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
{{ message }}
This repository has been archived by the owner on Mar 20, 2019. It is now read-only.
It seems that the following listing is incomplete?
Listing 5
public class TokenValidator
public class TokenValidator
{
public void ValidateToken(dynamic tokenInfo, string expectedAudience)
{
var audience = tokenInfo.audience.ToString();
if (string.IsNullOrEmpty(audience) || audience != expectedAudience)
{
var e = new HttpException("tokes with unexpected audience: ");
throw e;
}
if (tokenInfo.expires_in == null) return;
var expiresIn = tokenInfo.expires_in.ToString();
int intExpiresIn;
var isInt = int.TryParse(expiresIn, out intExpiresIn);
if (!isInt || intExpiresIn
I tried it with Chrome and Firefox.
The text was updated successfully, but these errors were encountered:
https://github.com/DotNetOpenAuth/DotNetOpenAuth/wiki/Security-scenarios
It seems that the following listing is incomplete?
Listing 5
I tried it with Chrome and Firefox.
The text was updated successfully, but these errors were encountered: