# Trying to use the node-auth0 package to create an OIDC connection, how do I populate the options?

**URL:** <https://community.auth0.com/t/trying-to-use-the-node-auth0-package-to-create-an-oidc-connection-how-do-i-populate-the-options/125824>\
**Category:** Get Help\
**Tags:** connections-management-api, management-api\
**Created:** [January 26, 2024, 8:22pm UTC](https://community.auth0.com/t/trying-to-use-the-node-auth0-package-to-create-an-oidc-connection-how-do-i-populate-the-options/125824 "2024-01-26T20:22:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![travis.gillitzer](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@travis.gillitzer](https://community.auth0.com/u/travis.gillitzer)\
**Post date:** [January 26, 2024, 8:22pm UTC](https://community.auth0.com/t/trying-to-use-the-node-auth0-package-to-create-an-oidc-connection-how-do-i-populate-the-options/125824/1 "2024-01-26T20:22:36Z")

</div>

I’m trying to use the node-auth0 package to create an OIDC connection. I don’t see any mechanism to populate the options correctly though.

The call to create a connection takes a ConnectionCreate type. It takes a ConnectionCreateOptions type for “options”. But, ConnectionCreateOptions doesn’t allow passing, for instance, the discovery URL.

If I create the connection via the Web Console, the API call made by the browser to make the connection includes a discovery\_url property in options object.

Even when I look at the documentation for the REST API itself, it isn’t clear to me how to do this. The API the browser is using doesn’t seem to match the REST API documentation.

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [January 26, 2024, 9:36pm UTC](https://community.auth0.com/t/trying-to-use-the-node-auth0-package-to-create-an-oidc-connection-how-do-i-populate-the-options/125824/2 "2024-01-26T21:36:47Z")

</div>

Hey there @travis.gillitzer welcome to the community!

> [@travis.gillitzer](#):
>
> Even when I look at the documentation for the REST API itself, it isn’t clear to me how to do this. The API the browser is using doesn’t seem to match the REST API documentation.

Thanks for raising [this issue](https://github.com/auth0/node-auth0/issues/982) as I agree with your observations here - Interestingly, the [connection resource](https://registry.terraform.io/providers/auth0/auth0/latest/docs/resources/connection#oidc-connection) of the Terraform provider seems to include the correct config options. Hopefully the maintainers of the library will be able to shed some light on this.

Thanks for your patience!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [February 9, 2024, 9:37pm UTC](https://community.auth0.com/t/trying-to-use-the-node-auth0-package-to-create-an-oidc-connection-how-do-i-populate-the-options/125824/4 "2024-02-09T21:37:44Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
