Skip to content
Snippets Groups Projects
Commit 4b1bae3a authored by Matej Kokol's avatar Matej Kokol
Browse files

Updates security definitions for Thing Description

Replaces 'NosecScTD' with 'BearerTD' in 'SecurityDefinitionsTD' interface
Updates 'BearerTD' interface with additional properties for bearer token

Fixes #456
parent 20c0a388
No related branches found
No related tags found
No related merge requests found
...@@ -75,7 +75,7 @@ export interface ContextClassTD { ...@@ -75,7 +75,7 @@ export interface ContextClassTD {
*/ */
export interface SecurityDefinitionsTD { export interface SecurityDefinitionsTD {
nosec_sc?: NosecScTD nosec_sc?: NosecScTD
Bearer?: NosecScTD Bearer?: BearerTD
} }
/** /**
...@@ -92,11 +92,15 @@ export interface NosecScTD { ...@@ -92,11 +92,15 @@ export interface NosecScTD {
/** /**
* Represents a "Bearer" scheme for a Thing Description. * Represents a "Bearer" scheme for a Thing Description.
* *
* @interface NosecScTD * @interface BearerTD
* *
* @property {string} scheme - The scheme identifier, typically "Bearer" to indicate Bearer token. * @property {string} in - The location of the bearer token.
* @property {string} alg - The algorithm used for the bearer token.
* @property {string} name - The name of the bearer token.
* @property {string} format - The format of the bearer token.
* @property {string} scheme - The scheme identifier, typically "Bearer".
*/ */
export interface Bearer { export interface BearerTD {
in: string; in: string;
alg: string; alg: string;
name: string; name: string;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment