8000 update · sigstore/sigstore-python@329bd06 · GitHub
[go: up one dir, main page]

Skip to content

Commit 329bd06

Browse files
committed
update
Signed-off-by: laurentsimon <laurentsimon@google.com>
1 parent a60c759 commit 329bd06

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ All versions prior to 0.9.0 are untracked.
1010

1111
### Changed
1212

13+
* CLI now supports a `--oauth-force-oob` option.
14+
([#667](https://github.com/sigstore/sigstore-python/pull/667))
15+
1316
* `sigstore verify` now performs additional verification of Rekor's inclusion
1417
proofs by cross-checking them against signed checkpoints
1518
([#634](https://github.com/sigstore/sigstore-python/pull/634))

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ OpenID Connect options:
160160
(e.g. on GitHub Actions) (default: False)
161161
--oidc-issuer URL The OpenID Connect issuer to use (conflicts with
162162
--staging) (default: https://oauth2.sigstore.dev/auth)
163+
--oauth-force-oob Force an out-of-band OAuth flow and do not automatically start the default web browser (default: False)
163164

164165
Output options:
165166
--no-default-files Don't emit the default output files ({input}.sigstore)

sigstore/_cli.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,10 @@ def _add_shared_oidc_options(
222222
help="The OpenID Connect issuer to use (conflicts with --staging)",
223223
)
224224
group.add_argument(
225-
"--oidc-disable-default-browser",
225+
"--oauth-force-oob",
226226
action="store_true",
227-
default=_boolify_env("SIGSTORE_OIDC_DISABLE_DEFAULT_BROWSER"),
228-
help="Do not start the default web browser to complete the OAuth flow. Instead display a web link to the user.",
227+
default=_boolify_env("SIGSTORE_OAUTH_FORCE_OOB"),
228+
help="Force an out-of-band OAuth flow and do not automatically start the default web browser",
229229
)
230230

231231

@@ -972,7 +972,7 @@ def _get_identity(args: argparse.Namespace) -> Optional[IdentityToken]:
972972
token = issuer.identity_token(
973973
client_id=args.oidc_client_id,
974974
client_secret=args.oidc_client_secret,
975-
force_oob=args.oidc_disable_default_browser,
975+
force_oob=args.oath_force_oob,
976976
)
977977

978978
return token

sigstore/oidc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def identity_token( # nosec: B107
255255
Retrieves and returns an `IdentityToken` from the current `Issuer`, via OAuth.
256256
257257
This function blocks on user interaction, either via a web browser or an out-of-band
258-
OAuth flow.
258+
OAuth flow. When force_oob, the out-of-band flow is always used.
259259
"""
260260

261261
# This function and the components that it relies on are based off of:

0 commit comments

Comments
 (0)
0