0.5.16 • Published 6 months ago
@springmicro/auth v0.5.16
@springmicro/auth
Auth config supplied for connecting with a Casdoor instance. Uses auth-astro.
Usage
npm i -g @springmicro/cli
springmicro add auth// auth.config.ts
import { getAuthConfig } from "@springmicro/auth";
export default getAuthConfig({
casdoorEndpoint: import.meta.env.PUBLIC_CASDOOR_ENDPOINT,
clientId: import.meta.env.PUBLIC_CASDOOR_CLIENT_ID,
clientSecret: import.meta.env.CASDOOR_CLIENT_SECRET,
});auth-astro requires building your site in server mode with a platform adapter like @astrojs/node.
pnpm run astro add node// astro.config.mjs
export default defineConfig({
output: "server",
adapter: node({
mode: "standalone",
}),
});Casdoor
In the application settings, add the callback URL of http://yourhost/callback. Enable auto signin (optional).
Development
Build
pnpm run buildInstall in repo (locally)
# testing it out in a demo project
cd astro-demo-project
pnpm run astro add react
pnpm run astro add auth-astro
pnpm add --workspace @springmicro/auth0.5.10
6 months ago
0.5.11
6 months ago
0.5.8
7 months ago
0.5.7
7 months ago
0.5.9
6 months ago
0.5.16
6 months ago
0.5.14
6 months ago
0.5.15
6 months ago
0.5.12
6 months ago
0.5.13
6 months ago
0.3.0
11 months ago
0.5.4
7 months ago
0.5.3
7 months ago
0.3.5
9 months ago
0.5.6
7 months ago
0.5.5
7 months ago
0.5.0
8 months ago
0.4.1
8 months ago
0.4.0
9 months ago
0.5.2
7 months ago
0.3.4
10 months ago
0.5.1
8 months ago
0.2.0
1 year ago
0.2.0-alpha.4
1 year ago
0.2.0-alpha.3
1 year ago
0.2.0-alpha.2
1 year ago
0.2.0-alpha.1
1 year ago
0.2.0-alpha.0
1 year ago
0.1.9
1 year ago
0.1.8
1 year ago
0.1.3
1 year ago