Hey @kyle, do you know any helper GNOME/GTK-based lib or framework to retrieve OAuth2 Access Tokens using the Authorization Code + PKCE flow?

It requires opening a browser to the authentication page of the Authorization Server, letting the user authenticate & authorise, then retrieve the Authorization Code from the query parameters of a redirection.

I'm encountering this issue while considering developping an app for the Librem 5, I'm sure others will face it too :)

@kyle here, this OAuth2 client crate conveniently puts it under the rug by saying "Browse to: [URL]", and then uses a placeholder for the Authorization Code (which can only be extracted from a redirect sent from the Authorization Server).

Asking the user to manually browse a website and then asking him to copy an Authorization Code does not seem realistic nor user friendly

Show thread

@thibaultamartin I'm sorry, I don't know of any helper libs but maybe other in the community do.

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml