in internal/provider/auth_oidc.go [40:59]
func NewOidcCredential(options *OidcCredentialOptions) (*OidcCredential, error) {
w := &OidcCredential{
requestToken: options.RequestToken,
requestUrl: options.RequestUrl,
token: options.Token,
tokenFilePath: options.TokenFilePath,
}
cred, err := azidentity.NewClientAssertionCredential(options.TenantID, options.ClientID, w.getAssertion,
&azidentity.ClientAssertionCredentialOptions{
AdditionallyAllowedTenants: options.AdditionallyAllowedTenants,
ClientOptions: options.ClientOptions,
})
if err != nil {
return nil, err
}
w.cred = cred
return w, nil
}