Currently, we are using Payload CMS authentication with collection
Users. We want to allow users to signup their account via organisation Google SSO. Would appreciate having information in this regard.
Payload has an SSO plugin for enterprise users which is probably what your looking for, they also use passport.js for panel auth so you could look into extending that
Thanks for responding on my query. I am looking forward from the
@967091941873426493team to give me more details about SSO for enterprise. Besides, I was looking at the examples of strategies being in used. Can you share any example by code ?
unfortunately I only know the theory no code yet
alright.
@967118574445547650Can you kindly share something around it?
aswell 🙂
If you're looking for more information about Payload Enterprise, which includes SSO, go ahead put your info into this form 👍
https://payloadcms.com/for-enterpriseI have done that already and waiting for the more information. Besides, trying out Google auth strategy but failing miserably. Was curious, if we have any example using passport strategy in Collection with Auth.
There are a few related community plugins listed here.
https://github.com/topics/payload-pluginDone this around 3 hours but waiting for follow up emails.
It's usually 1-2 business days. We're also on Eastern Standard Time, so just starting the day 👍
Gotcha, Thank you for sharing the details 🙌🏻. Looking into these
Facing the following issues with google-one-tap
cc:
@274881403454226434Looks like some webpack aliasing needs to be done
Have done which was mentioned in the repio readme though
try and
rm -Rf node_modules/.cacheDid but there is no change.
ok - we can talk about this more on our call this afternoon - saw you scheduled 👍
Added in the
webpack: {
...
resolve: { ..., fallback: {..., zlib: false, async_hooks: false,} }
}This fixed but now facing new issue xD
Sure, Looking forward to it.
Did you manage to solve this? Or did you have to pay up? Hahaha, I’m asking because I’m facing a similar issue…
this is like an old post that uses an old version of payload probably v2...
follow that article for v3
Thanks a lot, my friend. I’m going to try replicating it with Azure SSO. On the backend everything works great — I’m using JOSE for OAuth2.0 (an open source library supported by Auth0 by Okta). But my issue is on the frontend: the admin fails, and I’m using the same envs from a legacy frontend repo, yet here it fails because it redirects me back to the login. Did something similar happen to you? My intention is to remove the entire CMS login and use a fully customized component — the BeforeLogin property wouldn’t work for me, I’d need to replace Login, but it’s not working
the same strategy works for both front and back
also i've already done google, azure, etc with jose and kv
just didn't bother posting that implementation up
thanks brother, I’ll give it a try I’m sure it must be something silly. I hadn’t thought about using a custom endpoint; I assumed Payload could interpret it, but it seems that’s not the case, even though the OAuth2.0 protection works fine on the backend side
Star
Discord
online
Get dedicated engineering support directly from the Payload team.