├── .github ├── FUNDING.yml └── workflows │ └── build.yml ├── .gitignore ├── .husky └── pre-commit ├── .nvmrc ├── .prettierrc ├── .release-it.json ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── eslint.config.mjs ├── example ├── .gitignore ├── README.md ├── keycloak.json ├── nest-cli.json ├── nest-example.json ├── nest-example.postman_collection.json ├── package.json ├── pnpm-lock.yaml ├── src │ ├── app.controller.ts │ ├── app.module.ts │ ├── config │ │ ├── config.module.ts │ │ └── keycloak-config.service.ts │ ├── main.ts │ └── product │ │ ├── product.module.ts │ │ └── product │ │ ├── product.controller.ts │ │ ├── product.service.ts │ │ └── product.ts ├── tsconfig.build.json └── tsconfig.json ├── package.json ├── pnpm-lock.yaml ├── src ├── constants.ts ├── decorators │ ├── access-token.decorator.ts │ ├── enforcer-options.decorator.ts │ ├── keycloak-user.decorator.ts │ ├── public.decorator.ts │ ├── resource.decorator.ts │ ├── roles.decorator.ts │ └── scopes.decorator.ts ├── guards │ ├── auth.guard.ts │ ├── resource.guard.ts │ └── role.guard.ts ├── index.ts ├── interface │ ├── keycloak-connect-module-async-options.interface.ts │ ├── keycloak-connect-options-factory.interface.ts │ └── keycloak-connect-options.interface.ts ├── internal.util.ts ├── keycloak-connect.module.ts ├── keycloak-connect.providers.ts ├── services │ └── keycloak-multitenant.service.ts └── util.ts └── tsconfig.json /.github/FUNDING.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/.github/FUNDING.yml -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/.github/workflows/build.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | pnpm exec lint-staged -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | v21.7.1 -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/.prettierrc -------------------------------------------------------------------------------- /.release-it.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/.release-it.json -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/README.md -------------------------------------------------------------------------------- /eslint.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/eslint.config.mjs -------------------------------------------------------------------------------- /example/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/example/.gitignore -------------------------------------------------------------------------------- /example/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/example/README.md -------------------------------------------------------------------------------- /example/keycloak.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/example/keycloak.json -------------------------------------------------------------------------------- /example/nest-cli.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/example/nest-cli.json -------------------------------------------------------------------------------- /example/nest-example.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/example/nest-example.json -------------------------------------------------------------------------------- /example/nest-example.postman_collection.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/example/nest-example.postman_collection.json -------------------------------------------------------------------------------- /example/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/example/package.json -------------------------------------------------------------------------------- /example/pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/example/pnpm-lock.yaml -------------------------------------------------------------------------------- /example/src/app.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/example/src/app.controller.ts -------------------------------------------------------------------------------- /example/src/app.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/example/src/app.module.ts -------------------------------------------------------------------------------- /example/src/config/config.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/example/src/config/config.module.ts -------------------------------------------------------------------------------- /example/src/config/keycloak-config.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/example/src/config/keycloak-config.service.ts -------------------------------------------------------------------------------- /example/src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/example/src/main.ts -------------------------------------------------------------------------------- /example/src/product/product.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/example/src/product/product.module.ts -------------------------------------------------------------------------------- /example/src/product/product/product.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/example/src/product/product/product.controller.ts -------------------------------------------------------------------------------- /example/src/product/product/product.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/example/src/product/product/product.service.ts -------------------------------------------------------------------------------- /example/src/product/product/product.ts: -------------------------------------------------------------------------------- 1 | export class Product { 2 | code: string; 3 | } 4 | -------------------------------------------------------------------------------- /example/tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/example/tsconfig.build.json -------------------------------------------------------------------------------- /example/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/example/tsconfig.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /src/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/src/constants.ts -------------------------------------------------------------------------------- /src/decorators/access-token.decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/src/decorators/access-token.decorator.ts -------------------------------------------------------------------------------- /src/decorators/enforcer-options.decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/src/decorators/enforcer-options.decorator.ts -------------------------------------------------------------------------------- /src/decorators/keycloak-user.decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/src/decorators/keycloak-user.decorator.ts -------------------------------------------------------------------------------- /src/decorators/public.decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/src/decorators/public.decorator.ts -------------------------------------------------------------------------------- /src/decorators/resource.decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/src/decorators/resource.decorator.ts -------------------------------------------------------------------------------- /src/decorators/roles.decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/src/decorators/roles.decorator.ts -------------------------------------------------------------------------------- /src/decorators/scopes.decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/src/decorators/scopes.decorator.ts -------------------------------------------------------------------------------- /src/guards/auth.guard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/src/guards/auth.guard.ts -------------------------------------------------------------------------------- /src/guards/resource.guard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/src/guards/resource.guard.ts -------------------------------------------------------------------------------- /src/guards/role.guard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/src/guards/role.guard.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | // public-api 2 | export * from './keycloak-connect.module'; 3 | -------------------------------------------------------------------------------- /src/interface/keycloak-connect-module-async-options.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/src/interface/keycloak-connect-module-async-options.interface.ts -------------------------------------------------------------------------------- /src/interface/keycloak-connect-options-factory.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/src/interface/keycloak-connect-options-factory.interface.ts -------------------------------------------------------------------------------- /src/interface/keycloak-connect-options.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/src/interface/keycloak-connect-options.interface.ts -------------------------------------------------------------------------------- /src/internal.util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/src/internal.util.ts -------------------------------------------------------------------------------- /src/keycloak-connect.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/src/keycloak-connect.module.ts -------------------------------------------------------------------------------- /src/keycloak-connect.providers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/src/keycloak-connect.providers.ts -------------------------------------------------------------------------------- /src/services/keycloak-multitenant.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/src/services/keycloak-multitenant.service.ts -------------------------------------------------------------------------------- /src/util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/src/util.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ferrerojosh/nest-keycloak-connect/HEAD/tsconfig.json --------------------------------------------------------------------------------