#Okta Authentication

17 messages · Page 1 of 1 (latest)

verbal coral
#

I am looking to implement Okta Auth login for a store.

Since the customers are on Okta are not on the store, what would be a good way to add the customer info to the store.

What I am thinking is, when they login I would first checking using the store API to see if they are existing there if they are not there then create a account with the credentials that they have entered and continue with the flow.

Is there a better way to do this or the only way for the time being ?

(also sorry if the post is tagged incorrectly)

cyan needle
#

I think your flow seems pretty good

cyan needle
#

You can see that kind of example in the auth plugin as well

ocean lichen
#

okta and auth0 are the same company, there is a plugin in progress with auth0

cyan needle
verbal coral
ocean lichen
cyan needle
#

I ll do review asap and let you know guys. Also, @ocean lichen have you seen my pr that gets rid of the cookies in favour of the medusa session? I wasn’t able to do it previously but since the latest changes and plugin update it worked for me. Could you give it a shot if you have a slot?

ocean lichen
#

yeah. I was doing a test with the two PR this morning. But... blocked in meetings... I will do it this afternoon

cyan needle
#

No problem at all, only if you get a chance too ahah

cyan needle
#

@verbal coral few changes are requested and the. A first version should be available, followed by a small cleanup to simplify a bit more the ease of adding new strategies to the plugin

quasi ginkgo
cyan needle
#

@quasi ginkgo I think that it will be once @indigo crest fixed the tests and cleaned up the pr. It should be merged and released soon after tht

quasi ginkgo
#

Can we merge this behind a feature toggle as a beta feature perhaps so people can start testing it?

cyan needle
#

It needs merging and be adjusted with what have been done on the main branch. Since it is a contributor branch I am not able to do it unfortunately and i have no choice than waiting the contributor works. Sorry for the delay

verbal coral
#

I saw that the plugin is ready for use, thanks for the development.
I am trying to follow the docs to use it for the admin using Okta.
I have a small question, does a user need to be created on the admin side so that he can login? Also does he need to have specific role for the same.