File tree 2 files changed +1
-9
lines changed
2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -1190,7 +1190,7 @@ def _get_identity(
1190
1190
if args .oidc_issuer is not None :
1191
1191
issuer = Issuer (args .oidc_issuer )
1192
1192
else :
1193
- issuer = Issuer . from_trust_config (trust_config )
1193
+ issuer = Issuer (trust_config . signing_config . get_oidc_url () )
1194
1194
1195
1195
if args .oidc_client_secret is None :
1196
1196
args .oidc_client_secret = "" # nosec: B105
Original file line number Diff line number Diff line change 32
32
from pydantic import BaseModel , StrictStr
33
33
34
34
from sigstore ._internal import USER_AGENT
35
- from sigstore ._internal .trust import ClientTrustConfig
36
35
from sigstore .errors import Error , NetworkError
37
36
38
37
# See: https://github.com/sigstore/fulcio/blob/b2186c0/pkg/config/config.go#L182-L201
@@ -269,13 +268,6 @@ def __init__(self, base_url: str) -> None:
269
268
except ValueError as exc :
270
269
raise IssuerError (f"OIDC issuer returned invalid configuration: { exc } " )
271
270
272
- @classmethod
273
- def from_trust_config (cls , trust_config : ClientTrustConfig ) -> Issuer :
274
- """
275
- Return `Issuer` for given `ClientTrustConfig`.
276
- """
277
- return cls (trust_config .signing_config .get_oidc_url ())
278
-
279
271
def identity_token ( # nosec: B107
280
272
self ,
281
273
client_id : str = "sigstore" ,
You can’t perform that action at this time.
0 commit comments