Skip to content

Token access policy standardization #13

@ajoino

Description

@ajoino

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 maybe Authorization: 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 be invalid token or no longer valid to 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions