mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-19 11:09:50 +00:00
Add authentik
This commit is contained in:
parent
d876ba30d4
commit
1840e9a57a
6 changed files with 84 additions and 0 deletions
20
src/widgets/authentik/widget.js
Normal file
20
src/widgets/authentik/widget.js
Normal file
|
@ -0,0 +1,20 @@
|
|||
import credentialedProxyHandler from "utils/proxies/credentialed";
|
||||
|
||||
const widget = {
|
||||
api: "{url}/api/v3/{endpoint}",
|
||||
proxyHandler: credentialedProxyHandler,
|
||||
|
||||
mappings: {
|
||||
"users": {
|
||||
endpoint: "core/users?page_size=1"
|
||||
},
|
||||
"login": {
|
||||
endpoint: "events/events/per_month/?action=login&query={}"
|
||||
},
|
||||
"login_failed": {
|
||||
endpoint: "events/events/per_month/?action=login_failed&query={}"
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default widget;
|
Loading…
Add table
Add a link
Reference in a new issue