2024.10.0-1730331602 • Published 9 months ago

@goauthentik/api v2024.10.0-1730331602

Weekly downloads
-
License
-
Repository
github
Last release
9 months ago

@goauthentik/api

This package provides a generated API Client for authentik.

Building

See https://docs.goauthentik.io/docs/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();
2024.8.3-1729167001

10 months ago

2024.8.3-1728939481

10 months ago

2024.8.3-1729166675

10 months ago

2024.8.3-1728912934

10 months ago

2024.8.3-1728918276

10 months ago

2024.8.3-1727449099

10 months ago

2024.8.3-1727731656

10 months ago

2024.8.3-1728649674

10 months ago

2024.8.2-1726491792

11 months ago

2024.8.1-1725752132

11 months ago

2024.8.0-1725367323

11 months ago

2024.6.3-1724337552

11 months ago

2024.6.2-1722609286

12 months ago

2024.6.3-1723497462

12 months ago

2024.6.3-1723645891

12 months ago

2024.6.3-1723234818

12 months ago

2024.6.3-1722881330

12 months ago

2024.6.3-1723109801

12 months ago

2024.6.3-1723050887

12 months ago

2024.6.3-1723921843

12 months ago

2024.6.3-1723206419

12 months ago

2024.6.3-1723053526

12 months ago

2024.6.3-1723032607

12 months ago

2024.6.3-1722940666

12 months ago

2024.6.3-1724414734

11 months ago

2024.6.3-1723468407

12 months ago

2024.6.2-1722867797

12 months ago

2024.6.4-1724423607

11 months ago

1629704307.0.0

4 years ago

1629704636.0.0

4 years ago

1629704972.0.0

4 years ago

2021.8.1-rc1

4 years ago

1629128436.0.0

4 years ago

1629056677.0.0

4 years ago

1629055619.0.0

4 years ago

2021.8.1

4 years ago