PuRestJson icon indicating copy to clipboard operation
PuRestJson copied to clipboard

Implement OAuth 2.0 client

Open residuum opened this issue 12 years ago • 6 comments

[oauth] only does OAuth 1.1. As version 2.0 of the standard is available, and is used by several large service providers (Facebook, Google+), [oauth] should either support version 2.0 or a different object is needed.

residuum avatar Feb 05 '13 09:02 residuum

liboauth does not support OAuth 2.0, and the website http://oauth.net/2/ does not list a C library for the new standard.

residuum avatar Feb 05 '13 09:02 residuum

Hi, just want to know if this is possible now? I have found this https://github.com/slugonamission/OAuth2 thanks!

60-hz avatar Dec 23 '17 20:12 60-hz

This library does not have a license file, so it is not usable in Free Software right now. I have opened an issue about that: https://github.com/slugonamission/OAuth2/issues/2

residuum avatar Feb 11 '18 21:02 residuum

@residuum Here is other list of potential open sources libraries for OAuth 2.0 Would be so great to be able to add a OAuth 2.0 client to PuRestJson so many new api could be used :)

a12n-server Casdoor Glewlwyd Omejdn Keycloak OAuth.io ORY Hydra SimpleLogin SSQ signon ZITADEL

60-hz avatar Jan 05 '23 13:01 60-hz

@60-hz PuREST JSON is written in C, most of the libraries you have posted are not, I have no idea about most of the languages or how to compile a Pd external from e.g. TypeScript, as TypeScript is mostly compiled to JavaScript, and the only non-browser I know of is node.js, which in turn is mostly used for server side programming.

The only C library is a library for setting up a server, but PuREST JSON needs a client implementation, and the only client library that I have found is https://github.com/babelouest/iddawc.

Unfortunately for now, I am unable to get it to compile with MXE, which is a requirement for generating Windows objects. This also means a rewrite of the JSON functions, as iddawc uses jansson for JSON data, but currently PuREST JSON uses json-c. Multiple libraries for the same thing is not good, but yes, I am looking into it, but have no time right now.

residuum avatar Jan 06 '23 21:01 residuum

most of the libraries you have posted are not

Oh yes, sorry, I didn't check all of them, only the second one which was mainly in c... I understand it's a lot of rewrite, maybe another external is a better choice then. I am sorry I cannot help with MXE...

60-hz avatar Jan 08 '23 16:01 60-hz