Oauth2 support

This commit is contained in:
Jamie Curnow
2024-11-06 20:33:51 +10:00
parent f23299f793
commit 208037946f
25 changed files with 529 additions and 30 deletions

View File

@ -7,7 +7,7 @@
"enum": [
"local",
"ldap",
"oidc"
"oauth"
]
}
}

View File

@ -24,7 +24,7 @@
},
"type": {
"type": "string",
"pattern": "^(local|ldap|oidc)$"
"pattern": "^(local|ldap|oauth)$"
}
}
}

View File

@ -53,7 +53,7 @@
},
"type": {
"type": "string",
"pattern": "^(local|ldap|oidc)$"
"pattern": "^(local|ldap|oauth)$"
}
}
},

View File

@ -48,8 +48,8 @@ INSERT INTO `setting` (
(
ROUND(UNIX_TIMESTAMP(CURTIME(4)) * 1000),
ROUND(UNIX_TIMESTAMP(CURTIME(4)) * 1000),
"oidc-auth",
"Configuration for OIDC authentication",
"oauth-auth",
"Configuration for OAuth authentication",
'{}' -- remember this is json
),
(

View File

@ -48,8 +48,8 @@ INSERT INTO "setting" (
(
EXTRACT(EPOCH FROM TIMESTAMP '2011-05-17 10:40:28.876944') * 1000,
EXTRACT(EPOCH FROM TIMESTAMP '2011-05-17 10:40:28.876944') * 1000,
'oidc-auth',
'Configuration for OIDC authentication',
'oauth-auth',
'Configuration for OAuth authentication',
'{}' -- remember this is json
),
(

View File

@ -47,8 +47,8 @@ INSERT INTO `setting` (
(
unixepoch() * 1000,
unixepoch() * 1000,
"oidc-auth",
"Configuration for OIDC authentication",
"oauth-auth",
"Configuration for OAuth authentication",
'{}' -- remember this is json
),
(