Commit 8e6aeb5
authored
test(auth): Assert multiple scopes are space-separated in JWT claim (#13474)
This commit adds a test to verify that when a Service Account is
configured with multiple scopes during Self-Signed JWT authentication,
the scopes are correctly serialized into a single space-separated string
within the JWT's 'scope' claim.
This brings the Java library's test suite into alignment with the
expected auth specification. Other Google Cloud client libraries like
Go, Node.js, and Python natively assert that multiple scopes are
appropriately space-separated during their JWT generation tests.1 parent 2204d75 commit 8e6aeb5
1 file changed
Lines changed: 11 additions & 0 deletions
File tree
- google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1762 | 1762 | | |
1763 | 1763 | | |
1764 | 1764 | | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
1765 | 1776 | | |
1766 | 1777 | | |
1767 | 1778 | | |
| |||
0 commit comments