firebase-admin-dotnet icon indicating copy to clipboard operation
firebase-admin-dotnet copied to clipboard

VerifySessionCookieAsync() missing in TenantAwareFirebaseAuth

Open utkarsh-bandekar opened this issue 2 years ago • 4 comments

I have seen a pull request which has the changes but those are not publicly available https://github.com/firebase/firebase-admin-dotnet/pull/232

utkarsh-bandekar avatar Apr 26 '22 14:04 utkarsh-bandekar

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

google-oss-bot avatar Apr 26 '22 14:04 google-oss-bot

Hi @utkarsh-bandekar VerifySessionCookieAsync API is available since the 1.12.0 release. Tested the following with the latest Admin .NET SDK version 2.3.0.

using FirebaseAdmin.Auth;

var decodedToken = await FirebaseAuth.DefaultInstance.
						VerifySessionCookieAsync(
							sessionCookie, checkRevoked);

lahirumaramba avatar Apr 28 '22 15:04 lahirumaramba

@lahirumaramba The question is when tenant scoped, I think its not available when using a tenant.

charlesdesouza1 avatar Apr 28 '22 15:04 charlesdesouza1

@charlesdesouza1 you are right! It looks like the tenant aware changes were reverted in #237 as the feature was not supported by the backend services at that time. I will check if anything has changed in the Auth backend infrastructure to support tenant-scoped session cookies.

CC: @prameshj

lahirumaramba avatar Apr 28 '22 16:04 lahirumaramba