-
Hi, I'm a bit unsure how to go about it when it's a native client app and service + auth-server (rather than just a webapp and auth-server). I think in that case the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
For a native app, you can start a HTTP listener on the localhost, with a random port and a callback path. It the Provider sees a client type
Our client packages and examples do not have native app support yet. I did start working on an example for my own fun and education, but as demand for native apps in Go is low I don't dedicate much time on it. |
Beta Was this translation helpful? Give feedback.
For a native app, you can start a HTTP listener on the localhost, with a random port and a callback path. It the Provider sees a client type
native
, it allows redirects to random port numbers. So the native app will need to:http://localhost:<port>/callback
redirect_url
xdg-open
mechanism can be used for examplebrowser.OpenURL()
might be a good optionredirect_url
created above