Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Google firebase #7

Open
aang7 opened this issue Sep 30, 2021 · 0 comments
Open

Using Google firebase #7

aang7 opened this issue Sep 30, 2021 · 0 comments

Comments

@aang7
Copy link

aang7 commented Sep 30, 2021

Trying to authenticate a token generated by google firebase gets me the following error:

Problem getting signing keys from Open ID Connect provider (issuer). ConfigurationManager threw System.InvalidOperationException Message: IDX20803: Unable to obtain configuration from: 'System.String'.

I used the base project that is being used: https://github.com/bryanknox/AzureFunctionsOpenIDConnectAuthSample

and I commented these lines in the AzureFunctionsOpenIDConnectAuthSample\OidcApiAuthorization\OidcApiAuthorizationService.cs file:

var tokenValidationParameters = new TokenValidationParameters
{
//RequireSignedTokens = true,
ValidAudience = _audience,
//ValidateAudience = true,
ValidIssuer = _issuerUrl,
ValidateIssuer = false,
//ValidateIssuerSigningKey = true,
//ValidateLifetime = true,
IssuerSigningKeys = isserSigningKeys
};

I don't know why commenting these lines seems to work with that project... any idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant