I have delved into OAuth 2.0 to secure my RESTful services. I am in control of both the consumer and provider sides, which eliminates the need for end-user authorization for data access on the provider side. Although I have tried the client credentials flow, it seems to only provide me with a token for my entire client, rather than individual users. If I were to use this token in Javascript, it would be accessible to all users, compromising security as they could potentially access data from other users.
Is there a way to utilize 2-legged (client credentials) authentication to acquire user-specific tokens that can be used in Ajax/Javascript, similar to the implicit flow but without requiring user approval?
Thank you.