On 16/01/2017 12:07, Paul Fremantle wrote:
> Stefano
>
> I did an OAuth2 plugin for Mosquitto a while back. It was pretty bad
> but it worked. I used the Python security extension code
> (
https://github.com/mbachry/mosquitto_pyauth).
>
> Here is my code. Yes I am ashamed of it, but I knocked it up as a PoC
> so you'll have to forgive me!
>
>
https://github.com/pzfreo/stuff/blob/master/mosquitto_oauth/mqtt-auth-oauth2.py
>
> It uses the OAuth2 Introspection API.
>
> I have also built a new model that allows you to put a gateway between
> any client and any server. The gateway (IGNITE) calls out to the
> OAuth2 system to validate the credential and also applies scopes to
> publish and subscribe operations (access control).
>
> Let me know if you are interested in that code, which is written in
> node.js.
>
> I believe that OAuth is based on OAuth2 so all of this should be quite
> relevant.
>
> Paul