Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Client Id without publishing?

68 views
Skip to first unread message

Martie Henry

unread,
Feb 3, 2025, 10:00:15 AMFeb 3
to Chromium Extensions
Hi. This is my first extension.

I don't understand why I have to publish my extension in order to obtain a client id, which I need for google login. Not ready for prime time.

I've been using Load Unpacked, but the google login needs a client id, so I can even test it.

Can some explain? Workaround?

Best regards,
Martie

Patrick Kettner

unread,
Feb 3, 2025, 10:05:32 AMFeb 3
to Martie Henry, Chromium Extensions
Hi Martie,
In order for the google oauth login to function, it would need to know where to redirect to, which is why your client ID is required. This is the 32 random looking characters that make up your chrome extension's URL. You can submit an item to the chrome web store. You can use ID that is generated when you load unpacked (this is shown in the chrome://extensions page, as well as being available programmatically at chrome.runtime.id from within your extension), but that will change once you upload it to the webstore. Once you upload it to the store, you will have an ID automatically generated for you. You also have the choice of generating a key locally, and then uploading that key to the chrome web store.

patrick

--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/31bc4ba1-2d34-48e5-bf0b-6702a6cb50d1n%40chromium.org.
Reply all
Reply to author
Forward
0 new messages