-
-
Notifications
You must be signed in to change notification settings - Fork 433
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
[Feature Request] Support for ServiceAccountID in Custom Token Creation #971
Comments
The factory has a I hope I got this correctly - I'm currently on the road and can't look into it in detail, but if this isn't it, I will have a closer look once I can get back to my desk 🤞🏻 |
Thank you for your response. I understand you're busy, and there's no rush - please feel free to look into this whenever you have time.
When trying to verify this ID token in Project A, the verification fails because the token's |
Thank you for the detailed explanation, I really appreciate it! I will look into it! Please keep in mind that I have to implement it in a way that doesn't break backwards compatibility - it might be no problem, but I'll have to check, so, thank you for your patience! 🙏🏻 |
Thank you for your quick response! I completely understand about the backwards compatibility concerns. Please take your time to review and implement it properly. I really appreciate you looking into this request! 🙏 |
Describe the feature you would like to see
Thank you for your continuous development and maintenance of the Firebase PHP Admin SDK.
Feature Request Description
I would like to request support for specifying a service account ID when creating custom tokens, similar to how it's implemented in other Firebase Admin SDKs.
Current Situation
Currently, the Firebase PHP Admin SDK only supports creating custom tokens using the service account credentials loaded during initialization. There's no way to specify a different service account ID for token signing.
Proposed Feature
Add support for specifying a service account ID when creating custom tokens. This would allow using a different service account for token signing than the one used to initialize the SDK.
The feature would be particularly useful when running in Google-managed environments where you want to maintain consistency across different parts of your application by using a specific service account for token signing, without needing to include service account JSON files in your code.
Example Implementation (in Go)
Here's how it works in the Go Admin SDK:
Related Documentation
Using service account ID
Would love to hear your thoughts on this feature request. Thank you for considering it!
The text was updated successfully, but these errors were encountered: