I walkthrough http://www.asp.net/web-api/overview/security/individual-accounts-in-web-api tutorial to implement ASP.NET WebApi Bearer Token authentication.
As I access to [Authorize]
methods with published bearer token after I stop/restart/deploy on Azure WebSite, it still can access to them. Moreover, I can access with two different devices (different tokens for same identity), still can access.
I don't know deep inside of token identication mechanism, but seems like the published bearer tokens do not be maintained in server memory nor in database.
My question can be summarized as below...
- Does bearer token include my identity persistently and acknowledge me until I reauthorize (based on the above tutorial)?
- what are the information to be mixed-and-hashed to make a bearer token? only my relm, identity, and timestamp? or server key (I know former ASP.NET membership use server key in registry)?
- what if I deploy to multiple servers as WebRoles? do they still acknowledge published tokens among others?
- is there maxinum number of identifiable tokens per identity?