ngx-oauth
v8.0.2
Published
A fully OAuth2.1 compliant angular library
Downloads
1,080
Maintainers
Readme
ngx-oauth
OAuth 2.1 library for Angular 21. Zoneless, signal-based.
Projects
projects/ngx-oauth/— the libraryprojects/ngx-oauth-sample/— demo app
Commands
| Command | Description |
|---|---|
| npm run build:lib | Build the library |
| npm run build:app | Build the demo app |
| npm start | Serve demo (https://localhost:3000, SSL enabled) |
| npm test | Run library tests (Vitest) |
| npm run lint | Lint both projects |
| npm run format | Format code |
Configure the demo
Edit projects/ngx-oauth-sample/src/app/app.config.ts:
const oauthConfig = {
config: {
// autodiscovery
issuerPath: 'https://your-idp.com/realms/realm',
clientId: 'your-client-id',
// or manual endpoints
// authorizePath: '/authorize',
// tokenPath: '/token',
// clientId: 'your-client-id',
scope: 'openid profile email',
pkce: true
}
}Library Usage
See ngx-oauth/README.md for the full library documentation.
