gid-oss / dataui-nestjs-crud

NestJs CRUD for RESTful APIs
https://github.com/nestjsx/crud/wiki
MIT License
130 stars 31 forks source link

need customised Auth #23

Closed SulemanAli303 closed 8 months ago

SulemanAli303 commented 10 months ago

some time we need some endpoint public and some with Auth then how we can handle this

zaro commented 10 months ago

@SulemanAli303 Hello. Can you be more specific? What do you mean by sometimes public and sometime with Auth.

Do you mean that some endpoints should be public, and some behind Auth?

Or do you mean that the same point should either require an Auth or not, based on certain condition?

SulemanAli303 commented 10 months ago

@zaro some endpoints should be public, and some behind Auth

zaro commented 10 months ago

@SulemanAli303 check if the @CrudAuth decorator is what you need.

https://gid-oss.github.io/dataui-nestjs-crud/controllers/#request-authentication