File tree 4 files changed +9
-5
lines changed 4 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ All versions prior to 0.9.0 are untracked.
10
10
11
11
### Changed
12
12
13
+ * CLI now supports a ` --oauth-force-oob ` option.
14
+ ([ #667 ] ( https://github.com/sigstore/sigstore-python/pull/667 ) )
15
+
13
16
* ` sigstore verify ` now performs additional verification of Rekor's inclusion
14
17
proofs by cross-checking them against signed checkpoints
15
18
([ #634 ] ( https://github.com/sigstore/sigstore-python/pull/634 ) )
Original file line number Diff line number Diff line change @@ -160,6 +160,7 @@ OpenID Connect options:
160
160
(e.g. on GitHub Actions) (default: False)
161
161
--oidc-issuer URL The OpenID Connect issuer to use (conflicts with
162
162
--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)
163
164
164
165
Output options:
165
166
--no-default-files Don't emit the default output files ({input}.sigstore)
Original file line number Diff line number Diff line change @@ -222,10 +222,10 @@ def _add_shared_oidc_options(
222
222
help = "The OpenID Connect issuer to use (conflicts with --staging)" ,
223
223
)
224
224
group .add_argument (
225
- "--oidc-disable-default-browser " ,
225
+ "--oauth-force-oob " ,
226
226
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 " ,
229
229
)
230
230
231
231
@@ -972,7 +972,7 @@ def _get_identity(args: argparse.Namespace) -> Optional[IdentityToken]:
972
972
token = issuer .identity_token (
973
973
client_id = args .oidc_client_id ,
974
974
client_secret = args .oidc_client_secret ,
975
- force_oob = args .oidc_disable_default_browser ,
975
+ force_oob = args .oath_force_oob ,
976
976
)
977
977
978
978
return token
Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ def identity_token( # nosec: B107
255
255
Retrieves and returns an `IdentityToken` from the current `Issuer`, via OAuth.
256
256
257
257
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.
259
259
"""
260
260
261
261
# This function and the components that it relies on are based off of:
You can’t perform that action at this time.
0 commit comments