2024.4.2-1715271029 • Published 22 hours ago

@goauthentik/api v2024.4.2-1715271029

Weekly downloads
-
License
-
Repository
github
Last release
22 hours ago

@goauthentik/api

This package provides a generated API Client for authentik.

Building

See https://goauthentik.io/developer-docs/making-schema-changes

Consuming

npm install @goauthentik/api --save

Create a configuration:

import { Configuration } from "@goauthentik/api";

export const DEFAULT_CONFIG = new Configuration({
    // Configure where the API is located
    // Can be a full host, ensure CORS is configured
    basePath: "",
    // Required for POST/PUT/DELETE requests
    // getCookie function must return the cookie's contents
    headers: {
        "X-authentik-CSRF": getCookie("authentik_csrf"),
    },
});

Then use the API:

import { CoreApi } from "@goauthentik/api";

const user = await new CoreApi(DEFAULT_CONFIG).coreUsersMeRetrieve();
2023.6.1-1688991273

10 months ago

2023.6.0-1688736781

10 months ago

2023.6.1-1690455444

10 months ago

2023.6.1-1689715510

10 months ago

2023.6.1-1689956654

10 months ago

2023.6.1-1690193532

10 months ago

2023.6.1-1689609456

10 months ago

2023.5.4-1687900474

11 months ago

2023.5.3-1687462221

11 months ago

2023.5.3-1686577333

11 months ago

2023.5.3-1687255782

11 months ago

2023.4.1-1687461872

11 months ago

2023.5.3-1686600706

11 months ago

2023.5.3-1687355411

11 months ago

2023.5.4-1687815211

11 months ago

2023.5.3-1687465529

11 months ago

2023.5.1-1684442760

12 months ago

2023.5.0-1684333183

12 months ago

2023.5.0-1684241627

12 months ago

2023.5.0-1684333401

12 months ago

2023.5.0-1684333194

12 months ago

2023.5.2-1685273038

12 months ago

2023.5.1-1684675172

12 months ago

2023.5.3-1685646044

11 months ago

1629704307.0.0

3 years ago

1629704636.0.0

3 years ago

1629704972.0.0

3 years ago

2021.8.1-rc1

3 years ago

1629128436.0.0

3 years ago

1629056677.0.0

3 years ago

1629055619.0.0

3 years ago

2021.8.1

3 years ago