apply SSOS
I want to apply Oauth for my app, can I use it to wasp? if it can be, you think how long does it take me to work?
7 Replies
Hi @Phuong. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Yes, you can use OAuth for authentication in your Wasp app. Wasp supports several OAuth providers out of the box, including Google, GitHub, and Keycloak.
To implement OAuth in your Wasp app, you'll need to follow these general steps:
1. Enable the desired OAuth method in your Wasp file configuration.
2. Set up the OAuth app with the provider (e.g., Google, GitHub, or Keycloak).
3. Configure the necessary routes and pages in your Wasp app.
4. Use the provided Auth UI components in your pages.
The time it takes to implement OAuth depends on your familiarity with Wasp and the specific OAuth provider you choose. However, Wasp simplifies the process significantly. For a basic implementation, you could potentially set it up in a few hours to a day, assuming you have the necessary OAuth credentials from the provider.
Here's a quick example of how you would enable Google OAuth in your Wasp file:
Remember to set up the OAuth app with the provider and configure the necessary routes and pages in your Wasp app.
For detailed instructions on setting up OAuth with different providers, you can refer to these resources:
- Google Auth Setup (https://wasp-lang.dev/docs/auth/social-auth/google)
- GitHub Auth Setup (https://wasp-lang.dev/docs/auth/social-auth/github)
- Keycloak Auth Setup (https://wasp-lang.dev/docs/auth/social-auth/keycloak)
These guides will walk you through the process step-by-step, making it easier to implement OAuth in your Wasp app.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @Phuong, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist:
Perhaps try again in 15mins?
Sorry I dindn't get that, what are you trying to do?
I am working on a project using wasp-lang and my boss asked if it is possible to apply SSO to the current project.
I don't know much about wasp so I asked you
Hard to say without more info!
this is my reqest but I think it cant be apply cause it relate some reference in .wasp foler right?
I have another question, can Wasp-lang support SSO?
Check out our auth docs here https://wasp-lang.dev/docs/auth/overview !
There is support for Keycloak if that helps. If you have some other SSO< it could be doable, but you have to do custom work to get it working and will not be as smooth at the moment
Overview | Wasp
Auth is an essential piece of any serious application. That's why Wasp provides authentication and authorization support out of the box.