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

Manually refresh linked roles metadata #181

Open
thewilloftheshadow opened this issue Oct 12, 2024 · 1 comment
Open

Manually refresh linked roles metadata #181

thewilloftheshadow opened this issue Oct 12, 2024 · 1 comment
Labels
p:linked-roles The linked-roles package

Comments

@thewilloftheshadow
Copy link
Member

Right now, Carbon doesn't store any oauth tokens, which you need to be able to manually refresh any metadata on a user without them going through oauth themselves

My first idea for how to do this is to have the user pass in a function that is called when we get a token and then they can store the token themselves somehow (provide examples for Cloudflare kv?), and then provide a refreshMetadata function where they can pass in that token and it will refresh all the metadata that is setup in the plugin.

@thewilloftheshadow thewilloftheshadow added the p:linked-roles The linked-roles package label Oct 12, 2024
@apteryxxyz
Copy link
Member

Linked roles plugin can maybe have options to pass getter and setters for tokens (get from database, set to database), then have methods and endpoints to use them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p:linked-roles The linked-roles package
Projects
None yet
Development

No branches or pull requests

2 participants