Thanks a lot for that very detailed reply!
Does this post has any connection to yours?
In general it has, I’m going to give WIX headless a try to use WIX as identity provider. But the solution provided is not what I’m looking for. There is a description of the WIX member registration and login API. This is not what I want to implement.
In general my approach is to use existing building blocks for things which are “standard” and/or not of my expertise. Authentication, authorization and SSO are a perfect example of that. It’s complicated, it’s dangerous if you do it wrongly, but it’s already there in millions of applications. So I don’t want to reinvent the wheel…
Therefore I don’t want to use WIX only as the backend for that part and develop the frontend myself. I want to either use the “full package” for that from WIX and just integrate it into my app, or I’d like to use another existing component and integrate that into WIX. The first option sees to miss some features, the second one is maybe not possible…
Seems like this person have had the same issue like you …
Exactly. But no replies on that post…
But as i see it, it should be possible to achieve your aim. So in general about Oauth…
To achieve single sign-on (SSO) between your external website and a Wix site using OAuth, you need to follow a few steps. OAuth is a standard protocol for authorization and is commonly used for authentication in scenarios like these. Here’s a general outline of the process:
1. Set up OAuth on your External Website:
a. Register Your Application:
…
Haha, I read 2 lines of that and I already knew this was AI generated.
Don’t get me wrong, I heavily use ChatGPT in my daily (coding) life. But I’m afraid this is not the right occasion to use it (even though it’s worth a try of course). This use case is too specific, there is not enough info around in the web to solve it (that’s why I asked here) and it involves special know-how of the WIX product which can’t be “made up” by the “intelligence” of the AI.
The problem is the following part:
a. Add OAuth Provider on Wix:
- In the Wix site settings or editor, find the authentication or user management section. Wix supports custom OAuth providers.
- Add a new custom OAuth provider and provide the client ID and client secret obtained when you registered your external website as an OAuth application.
That specific part is just not possible with WIX. If it would have been, I would have just done it and didn’t need to ask the question here…
But what exactly is your aim ?
There are two different usecases, right?
- You login on your external APP or website → automatic login on wix-site.
- You login on wix-site → automatic login on external app or website.
Exactly! The classical SSO scenario. I need an identity provider which can be used by WIX and by my app. I can either use WIX as the IP (I’m going to try out WIX headless, thanks for giving me that hint!) or try to integrate an external one (like Keycloak, Auth0, …) into WIX, but it seems like that’s not too easy to achieve.
If I can go with WIX headless, I need to solve the issue with the Apple social login. Here again, the AI lacks WIX-specifix know-how, which is crucial to get it going. In general I know what needs to be done, I’ve implemented Apple, Google, Facebook and Twitter social login in other apps. But your identity provider needs to support that out of the box, which is not the case for Apple and WIX. Maybe I’m going to ask about that in the WIX headless discord channel.
Anyway, I really appreciate your detailed support posts! You already got me a lot of very helpful links. 