Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
6f0bfa78
Unverified
Commit
6f0bfa78
authored
Jan 19, 2021
by
Marcus Olsson
Committed by
GitHub
Jan 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add jwtTokenAuth to plugin metadata schema (#30346)
parent
ffd86f2a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
1 deletions
+61
-1
docs/sources/developers/plugins/metadata.md
+26
-1
docs/sources/developers/plugins/plugin.schema.json
+35
-0
No files found.
docs/sources/developers/plugins/metadata.md
View file @
6f0bfa78
...
@@ -172,8 +172,9 @@ For data source plugins. Proxy routes used for plugin authentication and adding
...
@@ -172,8 +172,9 @@ For data source plugins. Proxy routes used for plugin authentication and adding
### Properties
### Properties
| Property | Type | Required | Description |
| Property | Type | Required | Description |
|---------------
|
----------------------|----------|---------------------------------------------------------------------------------------------------------|
|---------------
-|---
----------------------|----------|---------------------------------------------------------------------------------------------------------|
|
`headers`
| array | No | For data source plugins. Route headers adds HTTP headers to the proxied request. |
|
`headers`
| array | No | For data source plugins. Route headers adds HTTP headers to the proxied request. |
|
`jwtTokenAuth`
|
[
object
](
#jwttokenauth
)
| No | For data source plugins. Token authentication section used with an JWT OAuth API. |
|
`method`
| string | No | For data source plugins. Route method matches the HTTP verb like GET or POST. |
|
`method`
| string | No | For data source plugins. Route method matches the HTTP verb like GET or POST. |
|
`path`
| string | No | For data source plugins. The route path that is replaced by the route URL field when proxying the call. |
|
`path`
| string | No | For data source plugins. The route path that is replaced by the route URL field when proxying the call. |
|
`reqRole`
| string | No | |
|
`reqRole`
| string | No | |
...
@@ -181,6 +182,30 @@ For data source plugins. Proxy routes used for plugin authentication and adding
...
@@ -181,6 +182,30 @@ For data source plugins. Proxy routes used for plugin authentication and adding
|
`tokenAuth`
|
[
object
](
#tokenauth
)
| No | For data source plugins. Token authentication section used with an OAuth API. |
|
`tokenAuth`
|
[
object
](
#tokenauth
)
| No | For data source plugins. Token authentication section used with an OAuth API. |
|
`url`
| string | No | For data source plugins. Route URL is where the request is proxied to. |
|
`url`
| string | No | For data source plugins. Route URL is where the request is proxied to. |
### jwtTokenAuth
For data source plugins. Token authentication section used with an JWT OAuth API.
#### Properties
| Property | Type | Required | Description |
|----------|-------------------|----------|---------------------------------------------------------------------------|
|
`params`
|
[
object
](
#params
)
| No | For data source plugins. Parameters for the token authentication request. |
|
`url`
| string | No | For data source plugins. URL to fetch the JWT token. |
#### params
For data source plugins. Parameters for the token authentication request.
##### Properties
| Property | Type | Required | Description |
|-----------------|--------|----------|--------------------------------------------------------------------------------------------------------------------|
|
`client_id`
| string | No | For data source plugins. OAuth client id. |
|
`client_secret`
| string | No | For data source plugins. OAuth client secret. Usually populated by decrypting the secret from the SecureJson blob. |
|
`grant_type`
| string | No | For data source plugins. OAuth grant type. |
|
`resource`
| string | No | For data source plugins. OAuth resource. |
### tokenAuth
### tokenAuth
For data source plugins. Token authentication section used with an OAuth API.
For data source plugins. Token authentication section used with an OAuth API.
...
...
docs/sources/developers/plugins/plugin.schema.json
View file @
6f0bfa78
...
@@ -380,6 +380,41 @@
...
@@ -380,6 +380,41 @@
}
}
}
}
}
}
},
"jwtTokenAuth"
:
{
"type"
:
"object"
,
"description"
:
"For data source plugins. Token authentication section used with an JWT OAuth API."
,
"additionalProperties"
:
false
,
"properties"
:
{
"url"
:
{
"type"
:
"string"
,
"description"
:
"For data source plugins. URL to fetch the JWT token."
,
"format"
:
"uri"
},
"params"
:
{
"type"
:
"object"
,
"description"
:
"For data source plugins. Parameters for the token authentication request."
,
"additionalProperties"
:
false
,
"properties"
:
{
"grant_type"
:
{
"type"
:
"string"
,
"description"
:
"For data source plugins. OAuth grant type."
},
"client_id"
:
{
"type"
:
"string"
,
"description"
:
"For data source plugins. OAuth client id."
},
"client_secret"
:
{
"type"
:
"string"
,
"description"
:
"For data source plugins. OAuth client secret. Usually populated by decrypting the secret from the SecureJson blob."
},
"resource"
:
{
"type"
:
"string"
,
"description"
:
"For data source plugins. OAuth resource."
}
}
}
}
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment