0.5.16 • Published 3 months ago

@springmicro/auth v0.5.16

Weekly downloads
-
License
-
Repository
-
Last release
3 months ago

@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 build

Install 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/auth
0.5.10

3 months ago

0.5.11

3 months ago

0.5.8

4 months ago

0.5.7

4 months ago

0.5.9

3 months ago

0.5.16

3 months ago

0.5.14

3 months ago

0.5.15

3 months ago

0.5.12

3 months ago

0.5.13

3 months ago

0.3.0

8 months ago

0.5.4

4 months ago

0.5.3

4 months ago

0.3.5

6 months ago

0.5.6

4 months ago

0.5.5

4 months ago

0.5.0

5 months ago

0.4.1

5 months ago

0.4.0

6 months ago

0.5.2

4 months ago

0.3.4

7 months ago

0.5.1

5 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