How to verify ID Token without requiring credentials?

Open
#526 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Quiet
Tech stack
csharp, firebase

Research direction

Start with the Firebase Admin .NET authentication documentation and the VerifyIdTokenAsync and FirebaseAuth.DefaultInstance entry points shown in the issue. Trace which verification paths require service credentials and how the non-revocation case is represented. Done means establishing a supported credential-free approach or documenting the limitation clearly.

Written by the indexing model from the issue text.

Description

As per the docs: https://firebase.google.com/docs/auth/admin/verify-id-tokens#c

FirebaseToken decodedToken = await FirebaseAuth.DefaultInstance
    .VerifyIdTokenAsync(idToken);
string uid = decodedToken.Uid;

However this requires initializing the DefaultInstance with service credentials. Verifying the token should be possible without private credentials (if we don't check revoked).

How can I do this?

Dominant language
C#
Stars
407
Forks
149
Avg merge
2d 10h
Merged PRs (30d)
14

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from firebase/firebase-admin-dotnet

All issues in firebase/firebase-admin-dotnet

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.