I'm more looking for comfirmation of whether I'm doing this right or wrong. This is the scenario:
I'm hosting an AngularJS
app in an ASP.NET MVC
application. Using the MVC part I communicate with IdentityServer
to log in, and once I do this I take the access_token
from OWIN
's OpenIdConnect
validation notification and create a Cookie
with it's value, which I then get in AngularJS
with the $cookieStore
object to use for my requests.
Admittedly, security is by far my weakest link, so my question is whether the above scenario is safe or am I violating some sort of security rule that would allow someone to find a hole in security?