Skip to main content

Managing OIDC Providers

Once you have created an OIDC Provider use the Equinix API to update or manage it. Necessary permissions to manage OIDC providers are either:

  • Role-based Access Control - The Equinix Company Admin role or a custom role with: sts.oidcprovider.list, sts.oidcprovider.suspend, sts.oidcprovider.resume, sts.oidcprovider.delete.
  • Attribute-based Access Control - An Access Policy containing: use/pageOidcProviders, use/suspendOidcProvider, use/resumeOidcProvider, use/deleteOidcProvider.

View Your Providers​

To list all your OIDC providers, send a GET request to the /v1/projects/{projectId}/oidcProviders endpoint. Specify your project ID in the path of the request.

Sample cURL Request:

curl -X GET 'https://sts.eqix.equinix.com/v1/projects/{projectId}/oidcProviders' \
-H 'Authorization: Bearer <token>'

Provider Status​

A provider can be either ENABLED or SUSPENDED.

  • ENABLED - The provider is trusted, and token exchange is enabled. ID tokens from this OIDC provider can be validated and exchanged.

  • SUSPENDED - The previously established trust relationship has been suspended. Token exchange for ID tokens from this provider is currently disabled.

Suspend an OIDC Provider​

To suspend an OIDC provider, send a POST request to the /v1/projects/{projectId}/oidcProviders/{idpId}/suspend endpoint. Specify the project and the IdP ID in the path of the request. There are no body parameters for this request.

Sample cURL Request:

curl -X POST 'https://sts.eqix.equinix.com/v1/projects/{projectId}/oidcProviders/{idpId}/suspend' \
-H 'Authorization: Bearer <token>'

Resume an OIDC Provider​

To resume a suspended OIDC provider, send a POST request to the /v1/projects/{projectId}/oidcProviders/{idpId}/resume endpoint. Specify the project and the IDP ID in the path of the request. There are no body parameters for this request.

Sample cURL Request:

curl -X POST 'https://sts.eqix.equinix.com/v1/projects/{projectId}/oidcProviders/{idpId}/resume' \
-H 'Authorization: Bearer <token>'

Delete an OIDC Provider​

warning

Deleting an OIDC Provider is permanent. To re-enable the trust relationship and token exchange, you have to re-create. For temporarily disabling an OIDC provider, see Suspend an OIDC Provider.

To delete an OIDC provider, send a DELETE request to the /v1/projects/{projectId}/oidcProviders/{idpId} endpoint. You must specify the project ID and the idpID in the path of the request.

Sample cURL Request:

curl -X DELETE 'https://sts.eqix.equinix.com/v1/projects/{projectId}/oidcProviders/{idpId}' \
-H 'Authorization: Bearer <token>'
Was this page helpful?