File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed
Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,31 @@ export type Token = {
2929 token ?: string ;
3030} & Username ;
3131
32+ /** Configuration for Azure OIDC. */
33+ export type AzureConfig = { tenant_id : string ; client_id : string } ;
34+
35+ /** Configuration for AWS OIDC. */
36+ export type AWSConfig = {
37+ aws_region : string ;
38+ account_id : string ;
39+ role_name : string ;
40+ domain : string ;
41+ domain_owner : string ;
42+ audience ?: string ;
43+ } ;
44+
45+ /** Configuration for JFrog OIDC. */
46+ export type JFrogConfig = {
47+ jfrog_oidc_provider_name : string ;
48+ audience ?: string ;
49+ identity_mapping_name ?: string ;
50+ } ;
51+
52+ /** Represents all supported OIDC configurations. */
53+ export type OIDC = AzureConfig | AWSConfig | JFrogConfig ;
54+
3255/** All authentication-related fields. */
33- export type AuthConfig = UsernamePassword & Token ;
56+ export type AuthConfig = UsernamePassword & Token & OIDC ;
3457
3558/**
3659 * A package registry configuration includes identifying information as well as
You can’t perform that action at this time.
0 commit comments