AspNet.Security.OAuth.Providers icon indicating copy to clipboard operation
AspNet.Security.OAuth.Providers copied to clipboard

Add Wix provider

Open levimatheri opened this issue 3 years ago • 7 comments

Is your feature request related to a problem? Please describe. Wix.com offers OAuth2 API. I'd like to implement it as Provider.

Describe the solution you'd like Add a new provider for Wix.com

levimatheri avatar Jan 22 '22 19:01 levimatheri

Hey @levimatheri.

Thanks for your offer! I assigned this ticket to you. Let us know if you need help.

kevinchalet avatar Jan 22 '22 19:01 kevinchalet

Thanks @kevinchalet!

levimatheri avatar Jan 22 '22 20:01 levimatheri

Unfortunately it doesn't seem like there's an endpoint to get the current user details, nor a member-id in the JWT...

levimatheri avatar Feb 02 '22 01:02 levimatheri

I found a reference to a JavaScript API to do that here, which implies there's an API somewhere to obtain the current user. However so far I haven't been able to find this SDK's code to look at the implementation to see if I can find what that endpoint is, if it does indeed exist.

martincostello avatar Feb 02 '22 10:02 martincostello

Good find. I'll dig into this.

levimatheri avatar Feb 02 '22 20:02 levimatheri

Not sure about this anymore lol. It seems there's no way of getting current user as per this response. Parsing the token that's returned from the Wix authorization server reveals info about the app instance only. I presume the Principal in this case is the installed app instance and not a user(?).

levimatheri avatar Feb 03 '22 17:02 levimatheri

I'm afraid I don't know the answer to that one. Maybe ask Wix how to find out what the current user's ID is?

martincostello avatar Feb 03 '22 18:02 martincostello