Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrerojosh committed Jan 14, 2022
1 parent 4c94ef2 commit 8113200
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,19 @@ export class ProductController {
}
```

## Decorators

Here is the decorators you can use in your controllers.

| Decorator | Description |
|--------------------|-----------------------------------------------------------------------------------------------------------|
| @AuthenticatedUser | Retrieves the current Keycloak logged-in user. (must be per method, unless controller is request scoped.) |
| @EnforcerOptions | Keycloak enforcer options. |
| @Public | Allow any user to use the route. |
| @Resource | Keycloak application resource name. |
| @Scope | Keycloak application scope name. |
| @Roles | Keycloak realm/application roles. |

## Multi tenant configuration
Setting up for multi-tenant is configured as an option in your configuration:
```typescript
Expand Down

0 comments on commit 8113200

Please sign in to comment.