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

Support authentication in Toolpad #2541

Closed
2 tasks done
prakhargupta1 opened this issue Aug 24, 2023 · 2 comments
Closed
2 tasks done

Support authentication in Toolpad #2541

prakhargupta1 opened this issue Aug 24, 2023 · 2 comments
Labels
new feature New feature or request scope: toolpad-studio Abbreviated to "studio" umbrella For grouping multiple issues to provide a holistic view

Comments

@prakhargupta1
Copy link
Member

prakhargupta1 commented Aug 24, 2023

Summary 💡

I'd like to protect my Toolpad application with authentication. Toolpad should support integrating with any oauth service provider. In short I'd expect to be able to choose and configure my provider of choice (Google, GitHub, Auth0, Okta,...). When an auth provider is configured, Toolpad will display an interstitial page when unauthenticated users visit the application. The page will show a button for each configured auth provider and clicking it will guide you through the relevant oauth flow. After successfully completing the flow, the user can use the Toolpad application as usual.

Toolpad should show a UI in the top right corner when a user is authenticated, (avatar or first name of email address) with a menu that allows to log out.

Once the notion of user is introduced, then come the notion of permissions #352.

Examples 🌈

Motivation 🔦

@prakhargupta1 prakhargupta1 added the new feature New feature or request label Aug 24, 2023
@Janpot Janpot added the waiting for 👍 Waiting for upvotes label Sep 13, 2023
@prakhargupta1 prakhargupta1 moved this from Future to Next in queue in MUI Toolpad public roadmap Sep 15, 2023
@Janpot
Copy link
Member

Janpot commented Oct 30, 2023

Would like to add that the custom server feature that we are currently building, which allows for running a Toolpad application as a express/connect middleware, will allow you to add any additional middleware in front. This therefore also gives you the full freedom to add any authentication method you want (e.g. passport.js). The cookie api in serverside code also allow you to pass any user tokens from a custom middleware to Toolpad.

This ofcourse doesn't mean we shouldn't support SSO out of the box, it's just that after this feature is fully implemented, the possibilities for implementing custom authentication strategies are further extended

@bharatkashyap
Copy link
Member

bharatkashyap commented Oct 30, 2023

@Janpot Agreed. Am I correct in imagning a high-level proposed documentation page for Authentication in Toolpad to be something like this:

Authentication in Toolpad

SSO

Toolpad supports Single Sign-On authentication methods out of the box, with multiple providers ...

Custom Server

If you're running Toolpad as a middleware inside your own backend, Toolpad gives you full freedom to add any authentication method you want (e.g. passport.js). The cookie api in serverside code also
allows you to pass any user tokens from a custom middleware to Toolpad...

Basic Auth

If you're only building a small application and your authentication requirements are basic, you may choose to use ...

@prakhargupta1 prakhargupta1 moved this from Next in queue to In progress now in MUI Toolpad public roadmap Nov 23, 2023
@prakhargupta1 prakhargupta1 added umbrella For grouping multiple issues to provide a holistic view and removed waiting for 👍 Waiting for upvotes labels Feb 20, 2024
@prakhargupta1 prakhargupta1 moved this from In progress now to Recently completed in MUI Toolpad public roadmap Mar 6, 2024
@github-project-automation github-project-automation bot moved this from Recently completed to Future in MUI Toolpad public roadmap Mar 6, 2024
@prakhargupta1 prakhargupta1 moved this from Future to Recently completed in MUI Toolpad public roadmap Mar 6, 2024
@oliviertassinari oliviertassinari added the scope: toolpad-studio Abbreviated to "studio" label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature or request scope: toolpad-studio Abbreviated to "studio" umbrella For grouping multiple issues to provide a holistic view
Projects
None yet
Development

No branches or pull requests

4 participants