ForgeRock · Capability

ForgeRock Access Management API — OAuth2

ForgeRock Access Management API — OAuth2. 3 operations. Lead operation: ForgeRock OAuth 2.0 token endpoint. Self-contained Naftiko capability covering one Forgerock business surface.

Run with Naftiko ForgerockOAuth2

What You Can Do

POST
Oauth2token — ForgeRock OAuth 2.0 token endpoint
/v1/oauth2/realms/root/realms/{realm}/access-token
GET
Oauth2authorize — ForgeRock OAuth 2.0 authorization endpoint
/v1/oauth2/realms/root/realms/{realm}/authorize
GET
Oauth2tokeninfo — ForgeRock OAuth 2.0 token introspection
/v1/oauth2/realms/root/realms/{realm}/tokeninfo

MCP Tools

forgerock-oauth-2-0-token-endpoint

ForgeRock OAuth 2.0 token endpoint

forgerock-oauth-2-0-authorization-endpoint

ForgeRock OAuth 2.0 authorization endpoint

read-only idempotent
forgerock-oauth-2-0-token-introspection

ForgeRock OAuth 2.0 token introspection

read-only idempotent

Capability Spec

access-management-oauth2.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: ForgeRock Access Management API — OAuth2
  description: 'ForgeRock Access Management API — OAuth2. 3 operations. Lead operation: ForgeRock OAuth 2.0 token endpoint.
    Self-contained Naftiko capability covering one Forgerock business surface.'
  tags:
  - Forgerock
  - OAuth2
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    FORGEROCK_API_KEY: FORGEROCK_API_KEY
capability:
  consumes:
  - type: http
    namespace: access-management-oauth2
    baseUri: https://{deployment}/am
    description: ForgeRock Access Management API — OAuth2 business capability. Self-contained, no shared references.
    resources:
    - name: oauth2-realms-root-realms-realm-access_token
      path: /oauth2/realms/root/realms/{realm}/access_token
      operations:
      - name: oauth2token
        method: POST
        description: ForgeRock OAuth 2.0 token endpoint
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: oauth2-realms-root-realms-realm-authorize
      path: /oauth2/realms/root/realms/{realm}/authorize
      operations:
      - name: oauth2authorize
        method: GET
        description: ForgeRock OAuth 2.0 authorization endpoint
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: client_id
          in: query
          type: string
          required: true
        - name: response_type
          in: query
          type: string
          required: true
        - name: redirect_uri
          in: query
          type: string
          required: true
        - name: scope
          in: query
          type: string
        - name: state
          in: query
          type: string
    - name: oauth2-realms-root-realms-realm-tokeninfo
      path: /oauth2/realms/root/realms/{realm}/tokeninfo
      operations:
      - name: oauth2tokeninfo
        method: GET
        description: ForgeRock OAuth 2.0 token introspection
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: access_token
          in: query
          type: string
          description: The access token to introspect
          required: true
    authentication:
      type: bearer
      token: '{{env.FORGEROCK_API_KEY}}'
  exposes:
  - type: rest
    namespace: access-management-oauth2-rest
    port: 8080
    description: REST adapter for ForgeRock Access Management API — OAuth2. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/oauth2/realms/root/realms/{realm}/access-token
      name: oauth2-realms-root-realms-realm-access-token
      description: REST surface for oauth2-realms-root-realms-realm-access_token.
      operations:
      - method: POST
        name: oauth2token
        description: ForgeRock OAuth 2.0 token endpoint
        call: access-management-oauth2.oauth2token
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/oauth2/realms/root/realms/{realm}/authorize
      name: oauth2-realms-root-realms-realm-authorize
      description: REST surface for oauth2-realms-root-realms-realm-authorize.
      operations:
      - method: GET
        name: oauth2authorize
        description: ForgeRock OAuth 2.0 authorization endpoint
        call: access-management-oauth2.oauth2authorize
        with:
          client_id: rest.client_id
          response_type: rest.response_type
          redirect_uri: rest.redirect_uri
          scope: rest.scope
          state: rest.state
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/oauth2/realms/root/realms/{realm}/tokeninfo
      name: oauth2-realms-root-realms-realm-tokeninfo
      description: REST surface for oauth2-realms-root-realms-realm-tokeninfo.
      operations:
      - method: GET
        name: oauth2tokeninfo
        description: ForgeRock OAuth 2.0 token introspection
        call: access-management-oauth2.oauth2tokeninfo
        with:
          access_token: rest.access_token
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: access-management-oauth2-mcp
    port: 9090
    transport: http
    description: MCP adapter for ForgeRock Access Management API — OAuth2. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: forgerock-oauth-2-0-token-endpoint
      description: ForgeRock OAuth 2.0 token endpoint
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: access-management-oauth2.oauth2token
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: forgerock-oauth-2-0-authorization-endpoint
      description: ForgeRock OAuth 2.0 authorization endpoint
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: access-management-oauth2.oauth2authorize
      with:
        client_id: tools.client_id
        response_type: tools.response_type
        redirect_uri: tools.redirect_uri
        scope: tools.scope
        state: tools.state
      outputParameters:
      - type: object
        mapping: $.
    - name: forgerock-oauth-2-0-token-introspection
      description: ForgeRock OAuth 2.0 token introspection
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: access-management-oauth2.oauth2tokeninfo
      with:
        access_token: tools.access_token
      outputParameters:
      - type: object
        mapping: $.