Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add BearerSecurityScheme to Thing Descriptions for Server-Sent Events #3078

Open
benfrancis opened this issue Mar 20, 2023 · 0 comments
Open

Comments

@benfrancis
Copy link
Member

benfrancis commented Mar 20, 2023

The only security scheme currently mentioned in Thing Descriptions is the OAuth2SecurityScheme, which assumes that tokens will be provided in an Authorization header.

Because the EventSource and WebSocket browser APIs to do not allow explicitly setting an Authorization header, the the gateway also supports providing a JWT in a query string.

This could be communicated to WoT Consumers by including the BearerSecurityScheme in the security metadata of Thing Descriptions, with in set to query and name set to jwt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant