wip(auth): WIP

This commit is contained in:
Maieul BOYER 2025-08-05 13:35:22 +02:00 committed by Maix0
parent c5dbfcad6e
commit baf9dc54c6
5 changed files with 79 additions and 35 deletions

View 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"
]
}

View 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