6d5172d18a
* first pass
* dependency shenanigans
* move blueprints
* few broken links
* change config the throw errors
* internal file edits
* fighting links
* remove sidebarDev
* fix subdomain
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* fix relative URL
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* fix mismatched package versions
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* fix api reference build
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* test tweak
* links hell
* more links hell
* links hell2
* yep last of the links
* last broken link fixed
* re-add cves
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* add devdocs redirects
* add dir
* tweak netlify.toml
* move latest 2 CVES into dir
* fix links to moved cves
* typoed title fix
* fix link
* remove banner
* remove committed api docs
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
* integrations: remove version dropdown
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
* Update Makefile
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
* change doc links in web as well
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
* fix some more docs paths
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
* fix more docs paths
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
* ci: require ci-web.build for merging
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
* Revert "ci: require ci-web.build for merging"
This reverts commit
|
||
---|---|---|
.. | ||
README.mustache |
README.mustache
## @goauthentik/api This package provides a generated API Client for [authentik](https://goauthentik.io?utm_source=npm-api-package). ### Building See https://docs.goauthentik.io/docs/developer-docs/making-schema-changes ### Consuming ``` npm install @goauthentik/api --save ``` Create a configuration: ```typescript 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: ```typescript import { CoreApi } from "@goauthentik/api"; const user = await new CoreApi(DEFAULT_CONFIG).coreUsersMeRetrieve(); ```