Commit 99a192e
committed
Link OAuth token to Gerrit external id
Enrich the HTTP login request to Gerrit in order
to store the GitHub OAuth token as additional
external id into the Gerrit user’s account.
OAuth token can be used by Gerrit to propagate
the user’s identity to the GitHub API calls.
NOTE: In order to get the extra HTTP header
managed and stored into Gerrit external ids table
you need to make sure to have I8df2540a56 merged.
Change-Id: Ifcd62218a171e3420bca10c95af43c7afe9cb2bb1 parent 96ea8a0 commit 99a192e
File tree
2 files changed
+6
-1
lines changed- github-oauth/src/main/java/com/googlesource/gerrit/plugins/github/oauth
2 files changed
+6
-1
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| 66 | + | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
92 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
93 | 96 | | |
94 | 97 | | |
95 | 98 | | |
| |||
0 commit comments