WebThingsIO / gateway

WebThings Gateway - a self-hosted web application for monitoring and controlling a building over the web
http://webthings.io/gateway
Mozilla Public License 2.0
2.62k stars 339 forks source link

Improve implementation of the `OAuth2SecurityScheme` #3090

Open benfrancis opened 1 year ago

benfrancis commented 1 year ago

Currently Thing Descriptions claim that WebThings Gateway implements the OAuth2SecurityScheme. However, I've noticed that this is not fully implemented in the way that third party services might expect.

For example it should be possible to:

There are also some strange implementation details in the way JWTs are used, like kid headers being used to identify individual JWTs, instead of a jti in the JWT payload.

The current implementation provided by the gateway is more like the simpler BearerSecurityScheme.