Good day,
Is there a way in the boilerplate to implement a custom filter for service functions similar to an "action filter in MVC" ?
I want to achieve the following:
When the service API function is called ( /api/services/app/someService/Get) I want to check a cached value and depending on the value I want to continue with the API call or throw an exception to the user.
Thanks in advance.
We are using the AspNetZero template to create a portal. The only difficult part I cant figure out, is to allow the user to authenticate through an external API, instead of the SQL database. Can you please perhaps give guidance on what is the best way to allow the user to enter their credentials, uses aspnetzero identity server, but then authenticates the username and password through an external API? (The external API call accept a username and password, and return a bool if credentials is correct)
If you do have an example somewhere on how to tackle this, it would be amazing.
We would still want to save information about the user in our AspNetZero database, like permissions etc after the user has logged in as per normal. (but the users password shouldn’t be stored here)
We are using angular, .netcore2, and identity server to allow single sign on ability. Thanks