Skip to content

Commit

Permalink
Doc generate client : allow access to "/context" for securised api
Browse files Browse the repository at this point in the history
  • Loading branch information
Ak1r0 authored Mar 29, 2024
1 parent 9c6d206 commit 2d0df2d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions create-client/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,18 @@ Create Client works especially well with APIs built with the [API Platform](http
- Integration with [Tailwind CSS](https://tailwindcss.com) (NextJS) or [Bootstrap](https://getbootstrap.com/) and [FontAwesome](https://fontawesome.com/) (other generators)
- Integration with [React Native Elements](https://react-native-training.github.io/react-native-elements/)
- Accessible to people with disabilities ([ARIA](https://www.w3.org/WAI/intro/aria) support in webapps)

## Security

If you use a securised api like described in the [JWT section](https://api-platform.com/docs/core/jwt/) you will have to allow a public access to "/contexts" path.

```yaml
# api/config/packages/security.yaml
security:
# Easy way to control access for large sections of your site
# Note: Only the *first* access control that matches will be used
access_control:
- { path: ^/contexts, roles: PUBLIC_ACCESS }
```

0 comments on commit 2d0df2d

Please sign in to comment.