Register API scopes on prb CLI OAuth client

Device logins only requested OIDC scopes while the authorizer now
gates API calls on v1:* scopes. Register the full scope set on the
well-known prb client, request it at login via CLIClientScopes, and
cover the device flow in e2e.

Collapse API scopes under an accordion on the consent screen and
document scope sync for future namespace additions.

Signed-off-by: Ludovic Vielle <ludovic@probo.com>
This commit is contained in:
Ludovic Vielle
2026-06-18 14:25:06 +02:00
parent 26c5002932
commit fd2e0903ee
7 changed files with 259 additions and 1 deletions

View File

@@ -312,7 +312,7 @@ func requestDeviceCode(
) (*deviceAuthResponse, error) {
values := url.Values{
"client_id": {clientID},
"scope": {"openid profile email offline_access"},
"scope": {config.CLIClientScopes},
}
req, err := http.NewRequest(