OAuth2 - Can a trusted Client access User resources with Client Credentials flow

326 views Asked by At

Looking at this explanation of the client credentials grant type from the OAuth website:

The Client Credentials grant type is used by clients to obtain an access token outside of the context of a user.

This is typically used by clients to access resources about themselves rather than to access a user's resources.

In case the client is a trusted app (internally developed), is it ok for it to access users' resources?

Technically, the app isn't the "resource owner" of these resources, but because it's a "super" app, developed internally, it should be able to access them, for the sake of implementing the organization's business requirements.

For example - think of your user in Google. The Google maps app creates resources owned by you (e.g places you "saved" on the map). Then, some Google daemon app with "super" permissions, can access those resources you created, in order to process them and show you relevant ads.

Does that make sense?

Thanks!

Simon.

1

There are 1 answers

3
Scott McNeany On BEST ANSWER

Yes, that’s a fairly typically scenario in my opinion.

There are a few additional best practices to consider for your trusted client like storing secrets in a key vault, rotating the secret on a schedule, limiting and logging administrator access, etc.