---
title: OAuth 2.0 / OIDC scripting API
description: You can use scripts to customize OAuth 2.0 authorization server behavior or OIDC dynamic client registration.
component: pingoneaic
page_id: pingoneaic:am-scripting:oauth2-scripting-api
canonical_url: https://docs.pingidentity.com/pingoneaic/am-scripting/oauth2-scripting-api.html
---

# OAuth 2.0 / OIDC scripting API

You can use scripts to customize OAuth 2.0 authorization server behavior or OIDC dynamic client registration.

The OAuth 2.0 and OIDC scripts all have access to [common bindings](script-bindings.html), such as `httpClient`, `logger`, and `scriptName`. The bindings available depend on whether you use a [legacy or a next-generation](scripting-env.html) script.

|   |                                                                                                                                                                                          |
| - | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|   | To access information about OAuth 2.0 and OIDC flows, add a Scripted Decision node to your journey and [query the `oauthApplication` binding](scripting-api-node.html#oauthapp-binding). |

Refer to the individual scripting APIs for specific bindings.
