Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does Google provide a client secret for a Native application?

I'm writing a native application that works against a Google API. Upon registering my application, and despite its explicit designation as Native, the Google Developers Console provides me with a client secret.

As far as I understand the OAuth 2.0 protocol, native apps should never have a client secret, since they cannot guarantee its secrecy. Is Google mistaken in its implementation of OAuth 2.0? How should I proceed?

like image 792
Dun Peal Avatar asked Oct 03 '22 04:10

Dun Peal


1 Answers

You are correct, the client secret isn't terribly useful in a native application from a being kept secret perspective. I suspect it's there mainly for consistency with the web application flow.

It does however have at least 1 useful feature... the original developer can reset it at any time, effectively revoking all refresh tokens bound to that client ID.

like image 137
aeijdenberg Avatar answered Oct 13 '22 00:10

aeijdenberg