loopbackio / loopback-next

LoopBack makes it easy to build modern API applications that require complex integrations.
https://loopback.io
Other
4.97k stars 1.07k forks source link

feat: support authentication for rest-crud based APIs #10546

Open aaqilniz opened 5 months ago

aaqilniz commented 5 months ago

There is no way to apply authentication to rest-crud based APIs generated with lb4 rest-crud. This PR provides an idea and a basic implementation for achieving that.

Checklist

👉 Check out how to submit a PR 👈

danysz commented 3 months ago

can you please try to run again or to test again so it will be available for merging ?

danysz commented 2 months ago

Hello @nabdelgadir , @raymondfeng , what is needed to be able to merge this feature ?

It is really important.

aaqilniz commented 2 months ago

Hi, @danysz. I am working on the tests for the changes. I will update the PR soon.

aaqilniz commented 2 months ago

Hi, @samarpanB. Can you help me with the tests? The tests should fail as I have added an authentication decorator but it does not take any effect.