-
Notifications
You must be signed in to change notification settings - Fork 8
Token access policy standardization #13
Copy link
Copy link
Open
Labels
Core System: Authentication SystemThe issue concerns the Core Authentication systemThe issue concerns the Core Authentication systemdocumentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or request
Metadata
Metadata
Assignees
Labels
Core System: Authentication SystemThe issue concerns the Core Authentication systemThe issue concerns the Core Authentication systemdocumentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or request
The token access policy currently leaves the implementation up to the individual client library developers, which leads to interoperability issues when applications developed with different client libraries are used. We need to standardize how the token access policy works to enable interoperability.
Here are my ideas:
HTML
Request
The token should be sent in the Authorization header field, something like
Authorization: Basic <TOKEN>, or maybeAuthorization: ARTKN <TOKEN>.Response
If token authorization fails on the provider side, the response should have error code 403 (see issue#215), with some standardized text, like
Unauthorized: Token authorization failed: <case>, where the case might beinvalid tokenorno longer validto clarify to the consumer what it must do to consume the service.CoAP
The tokens become very long, and CoAP is designed for short messages so I think we should discourage people from using the token access policy when using CoAP.
MQTT, OPC-UA, etc.
I do not know enough about these protocols to suggest any solutions.