Can we create and manage passports programmatically via SDK/APIs?
Hello Team,
We’re building an admin layer inside our blocklet (DeBOS) and want to handle team access fully in-app. Can a blocklet app programmatically create a passport invitation and receive both the invite link and passport number/ID in the API response, so we can display and persist them in our own admin UI?
Thank you.
5 条回复
Of course you can, you can do this with @blocklet/sdk, checkout documentation here: Blocklet Service
Very cool. Was able to build a UI in our app that allows users to create and maintain passports. I hadn't realized how important this would be, but now i see that without this feature a user does not really feel like they own identity.
DeBOS now supports native, in-app passport onboarding (no dashboard dependency for day-to-day flow):
Add Person.copy,resend,refresh/reconcile,revoke,reissue.In short: DeBOS can now generate and manage custom employee passports end-to-end from its own UI with enterprise-safe controls.
z1VV21NqNWkiadznN32ALkos5dQqQwnCMty
We’re seeing inconsistent access-key behavior for createMemberInvitation in a hosted/live Blocklet instance.
What works with the same stored access key:
What fails:
Error: No valid passport found: you don't have the required role "admin".
Important details:
So our question is:
Is createMemberInvitation officially supported with access-key auth in hosted/live Blocklet environments?
If yes:
If no:
We’re building a multi-instance app where owner should configure a service key once, and the backend should use that key for daily role + invite onboarding. Right now role creation works, but invite creation does not.
*One other issue to consider is that we were not able to generate invites in our UI when creating a access key with the owner passport attached to our app in the dev environment. We had to use the server level access key in order to be able to generate the correct key. Both keys were made with owner passports and given admin permission, however only the one made at server level was successful. Not having access to our our live insanct blocket server may be part of the problem causing our live invite system to work.
I would also suggest considering to let admin passport naturally have the same invitation rights as owner. It seems that the without this same power, owner passport may be needed for day to day opeartions. This may not be the best format, as we are considering to suggest to our users that after initial setup the owner passport be stored somewhere that is not subject to daily exposure. This would be done to insure it is not lost or compromised as recovery is very difficult.