Hello @SafaaMamdouh ,
Thank you so much for your code. It is clear and easy to understand.
The thing is, that it asks the user for credentials (which I prefer not to) or if it is written hard coded in the code, it is very easy to find (you just open F12 and see it).
I'm looking for 2 options, depend on the identity store:
a. If it is a BUILT-IN identity store, I'm looking for a way to dedicate a user that will have the permissions to view the service and kind of a web service (in server side) that will get this user name and password and create a token based on this user & password, something like the proxy.ashx that was supported in the past. Now I understand that it is not recommended/supported anymore.
b. If it is WINDOWS identity store, I'm looking for a way to fetch the user name & password of the user and generate the token accordingly.
I hope I explained myself well....
Thanks again,
Miri