What authorization flows are recommended for extensions?

472 views
Skip to first unread message

Likely Logic

unread,
Nov 28, 2020, 9:45:18 AM11/28/20
to Chromium Extensions
Hi all,

Just about to grapple with auth flows for our extension.

Looking at Authorization Code flow, it looks like the client id and secret would need to be embedded in the extension code bundle, which by all accounts is a security risk.

Authorization Code Flow with PKCE looks to work round this, but has additional steps.

Yet another suggestion was to use Authorization Code Flow but place the client id and secret on the server, and have the extension go via this proxy endpoint. 

I don't have enough experience with this kind of thing to know which is which, so just putting this out there to ask what everyone else is doing, and why.

Thanks in advance.

Cheers,
Dave

Likely Logic

unread,
Dec 14, 2020, 3:36:23 PM12/14/20
to Chromium Extensions, Likely Logic
For anyone following in my footsteps, we went with PKCE and used chrome.identity.launchWebAuthFlow() for a seamless user experience where a window pops up and the login is done there. 

Kos

unread,
Dec 14, 2020, 4:29:10 PM12/14/20
to Chromium Extensions, likel...@gmail.com
Same, but Google haven't approved it because they think Google account can be used only with native `identity` flow :( What a bad bad Google

Likely Logic

unread,
Dec 14, 2020, 9:36:00 PM12/14/20
to Chromium Extensions, Kos, Likely Logic
Ah. We are using Laravel Passport and the user logs in on our own domain, in the popup.
Reply all
Reply to author
Forward
0 new messages