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

Make authenticated user data available in page state #3209

Open
apedroferreira opened this issue Feb 13, 2024 · 0 comments
Open

Make authenticated user data available in page state #3209

apedroferreira opened this issue Feb 13, 2024 · 0 comments
Labels
feature: App Editor good first issue Great for first contributions. Enable to learn the contribution process. scope: toolpad-studio Abbreviated to "studio"

Comments

@apedroferreira
Copy link
Member

apedroferreira commented Feb 13, 2024

Summary

In the same way that we have added authenticated session data to the server context to be used in functions in #3157 (https://mui.com/toolpad/reference/api/get-context/), we could make that same data available in the page state for bindings.

This would be a global property in the page state that would show for every page of a Toolpad app using at least 1 authentication provider.

If no user is logged-in, the session should be null.

Examples

https://docs.retool.com/reference/apps/global/objects/current_user

Motivation

Providing users with more options to easily build their apps around authentication/authorization.

Search keywords: authentication authorization page state session user

@apedroferreira apedroferreira added feature: App Editor good first issue Great for first contributions. Enable to learn the contribution process. labels Feb 13, 2024
@prakhargupta1 prakhargupta1 added the scope: toolpad-studio Abbreviated to "studio" label Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: App Editor good first issue Great for first contributions. Enable to learn the contribution process. scope: toolpad-studio Abbreviated to "studio"
Projects
None yet
Development

No branches or pull requests

2 participants