0.5.16 • Published 10 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
11 months ago
0.5.11
11 months ago
0.5.8
11 months ago
0.5.7
11 months ago
0.5.9
11 months ago
0.5.16
10 months ago
0.5.14
10 months ago
0.5.15
10 months ago
0.5.12
11 months ago
0.5.13
10 months ago
0.3.0
1 year ago
0.5.4
12 months ago
0.5.3
12 months ago
0.3.5
1 year ago
0.5.6
11 months ago
0.5.5
12 months ago
0.5.0
1 year ago
0.4.1
1 year ago
0.4.0
1 year ago
0.5.2
12 months ago
0.3.4
1 year ago
0.5.1
1 year ago
0.2.0
2 years ago
0.2.0-alpha.4
2 years ago
0.2.0-alpha.3
2 years ago
0.2.0-alpha.2
2 years ago
0.2.0-alpha.1
2 years ago
0.2.0-alpha.0
2 years ago
0.1.9
2 years ago
0.1.8
2 years ago
0.1.3
2 years ago