Skip to content

Commit 9e26f9e

Browse files
committed
Add OIDC config types
1 parent 01b5262 commit 9e26f9e

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

src/start-proxy/types.ts

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)