I am wondering about one aspect of Identity Server that I hope to use in my projects.
The scenario is relatively simple:
- I have an API and a couple of clients
- I want to protect that API using Identity Server and OIDC
- On one client, I was looking at the concept of having optional authentication.
- Some features would require certain claims i.e Admin
- The Rest should allow anonymous users access, but should only allow requests from the registered clients
- This should also be reflected on the API
The caveat here is I would like still restrict the API to only be accessed by the registered clients in Identity Server only
Is this scenario possible in Identity Server?
I understand I would set up the Admin Policy on the API but do I also have to set up a CORS feature as well or does Identity Server do this out fo the box using the Allowed scopes and Resources Configuration?
Apologies if the explanation is poor I will try and add a diagram soon