adrien2p / medusa-plugins

A collection of awesome plugins for medusa :rocket:
https://medusa-plugins.vercel.app
MIT License
143 stars 42 forks source link

Insufficent description of how to install and setup medusa-plugin-auth #169

Open codeustad opened 3 weeks ago

codeustad commented 3 weeks ago

Hello.

I tried to install and use medusa-plugin-auth with Auth0 and Firebase, but in both cases I did not achieve any effect what so ever running Medusa. It just continued using the jwt authentication built in to medusa, although I did exactly what was described in the documentation.

Can anybody describe in detail, what should be done to use Auth0 and/or Firebase with Medusa 1.20.x?

Thanks in advace!

adrien2p commented 3 weeks ago

The plugin only act as a man in the middle and delegate de validation/authorisation to the third part. Once validated we generate a token that medusa can consume. Does that answer your question ?

codeustad commented 1 week ago

The plugin only act as a man in the middle and delegate de validation/authorisation to the third part. Once validated we generate a token that medusa can consume. Does that answer your question ?

Thanks for the answer. I get the idea of how external IDP works, but I still don't know how to set up e.g. Auth0 or Firebase correctly with Medusa and this plugin.

How is it supposed to work if the integration was correct: Will the login page redirect to Auth0/Firebase, or will I get the Medusa standard login page but in the background it will call Auth0/Firebase? Are there any working examples or videos/posts I could consider?

Thanks in advance!