Gentoo Archives: gentoo-dev

From: "Jason A. Donenfeld" <zx2c4@g.o>
To: gentoo-dev@l.g.o
Cc: pr@g.o, sultan@g.o
Subject: [gentoo-dev] Re: [RFC] News Item: OAuth2 Credentials Removed from Chromium
Date: Sun, 08 Aug 2021 12:39:45
Message-Id: CAHmME9pGkRK8ftbdJUCJb9ksU27KCm1=+jRp2dP+4oc9_s=ukg@mail.gmail.com
In Reply to: [gentoo-dev] [RFC] News Item: OAuth2 Credentials Removed from Chromium by "Jason A. Donenfeld"
1 v2 after brief IRC discussion
2 ---
3
4 Title: OAuth2 Credentials Removed from Chromium
5 Author: Jason A. Donenfeld
6 Posted: 2021-08-08
7 Revision: 1
8 News-Item-Format: 2.0
9 Display-If-Installed: www-client/chromium
10
11 In March of this year, Google announced that OAuth2 credentials would be revoked
12 for distros shipping Chromium. This was covered in multiple places at the time,
13 such as [1,2,3]. Around that time, with 89.0.4389.82, Gentoo removed OAuth2
14 credentials from its packages. However, they slipped back in shortly after. As
15 a result, some users [4] have found that recently Google's SSO does not persist
16 between browser sessions; e.g. you have to log back into GMail every time you
17 open your browser. Today's changes [5] restore the old behavior we had in March,
18 of not shipping Gentoo OAuth2 credentials. If you find that certain Google
19 services are no longer working, you may wish to set these flags, obtaining
20 credentials by following the instructions at [6]. However, even without
21 supplying such credentials, Google's SSO now should be working as expected.
22
23 There are now two options for passing these tokens to Chromium via
24 /etc/chromium/default:
25
26 1. GOOGLE_DEFAULT_CLIENT_ID and GOOGLE_DEFAULT_CLIENT_SECRET environment
27 variables:
28 export GOOGLE_DEFAULT_CLIENT_ID="<client-id>"
29 export GOOGLE_DEFAULT_CLIENT_SECRET="<client-secret>"
30
31 2. --oauth2-client-id and --oauth2-client-secret= command line switches:
32 CHROMIUM_FLAGS+=" --oauth2-client-id=<client-id>"
33 CHROMIUM_FLAGS+=" --oauth2-client-secret=<client-secret>"
34
35 Alternatively these environment variables and command line switches may be given
36 at the command line for ad-hoc testing.
37
38 [1] https://archlinux.org/news/chromium-losing-sync-support-in-early-march/
39 [2] https://bodhi.fedoraproject.org/updates/FEDORA-2021-48866282e5
40 [3] https://hackaday.com/2021/01/26/whats-the-deal-with-chromium-on-linux-google-at-odds-with-package-maintainers/
41 [4] https://bugs.gentoo.org/791871
42 [5] https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fce48ef271bbcaee9afdf0481294da167e665a9b
43 [6] http://www.chromium.org/developers/how-tos/api-keys

Replies