wip(auth): WIP
This commit is contained in:
parent
c5dbfcad6e
commit
baf9dc54c6
5 changed files with 79 additions and 35 deletions
35
src/auth/extra/providers-schema.json
Normal file
35
src/auth/extra/providers-schema.json
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"providers": {
|
||||
"required": [],
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"redirect_url": {
|
||||
"type": "string"
|
||||
},
|
||||
"token_url": {
|
||||
"type": "string"
|
||||
},
|
||||
"client_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"secret_env": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"redirect_url",
|
||||
"token_url",
|
||||
"client_id",
|
||||
"secret_env"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"providers"
|
||||
]
|
||||
}
|
||||
7
src/auth/extra/providers.toml
Normal file
7
src/auth/extra/providers.toml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#:schema ./providers-schema.json
|
||||
|
||||
[providers.42]
|
||||
token_url = "" # which url to use
|
||||
redirect_url = "" # redirect_url
|
||||
client_id = "" # the client_id for the provider
|
||||
secret_env = "" # env containing the secret for the provider
|
||||
Loading…
Add table
Add a link
Reference in a new issue