I am working on a plugin that I would like to add Google and Okta single sign-on (SSO) to. Has anyone worked on something like this before? To clarify, it is not that I want to add SSO that would let a user log into an Adobe service - rather, what I am trying to do is to add SSO that would let a user go sign in to one of my company’s services by accessing SSO through the plugin that we have built. The idea is that there would be Google and Okta SSO buttons right in the plugin UI and then when the user clicks one of those, the click would initiate the appropriate SSO flow that would then end up with the user authenticated as far as our back end is concerned. The point of the user getting authenticated is so that the plugin could then fetch various kinds of information from our back end for that specific user.
I think that this is possible in Sketch because you can get a Sketch plugin to go to an arbitrary webpage and it will even run client-side code on that webpage if necessary, it will follow redirects, etc. - just like a web browser. But XD does not expose full browser-like functionality, so it seems like in an XD plugin it would not be possible to just use the same kind of redirects-based SSO flow that the user would follow to sign into my company’s service through SSO in a web browser. But maybe there is some other approach that I could take. I guess that in a more general sense, since XD does not have a webview, I am also asking “how can you implement Google / Okta SSO outside of the context a web browser or webview?”.
Thank you very much!