OneLogin · Capability

OneLogin API — OAuth

OneLogin API — OAuth. 2 operations. Lead operation: Revoke access token. Self-contained Naftiko capability covering one Onelogin business surface.

Run with Naftiko OneloginOAuth

What You Can Do

POST
Revoketoken — Revoke access token
/v1/auth/oauth2/revoke
POST
Generatetoken — Generate access token
/v1/auth/oauth2/v2/token

MCP Tools

revoke-access-token

Revoke access token

generate-access-token

Generate access token

Capability Spec

onelogin-oauth.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: OneLogin API — OAuth
  description: 'OneLogin API — OAuth. 2 operations. Lead operation: Revoke access token. Self-contained Naftiko capability
    covering one Onelogin business surface.'
  tags:
  - Onelogin
  - OAuth
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ONELOGIN_API_KEY: ONELOGIN_API_KEY
capability:
  consumes:
  - type: http
    namespace: onelogin-oauth
    baseUri: https://{subdomain}.onelogin.com
    description: OneLogin API — OAuth business capability. Self-contained, no shared references.
    resources:
    - name: auth-oauth2-revoke
      path: /auth/oauth2/revoke
      operations:
      - name: revoketoken
        method: POST
        description: Revoke access token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: auth-oauth2-v2-token
      path: /auth/oauth2/v2/token
      operations:
      - name: generatetoken
        method: POST
        description: Generate access token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.ONELOGIN_API_KEY}}'
  exposes:
  - type: rest
    namespace: onelogin-oauth-rest
    port: 8080
    description: REST adapter for OneLogin API — OAuth. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/auth/oauth2/revoke
      name: auth-oauth2-revoke
      description: REST surface for auth-oauth2-revoke.
      operations:
      - method: POST
        name: revoketoken
        description: Revoke access token
        call: onelogin-oauth.revoketoken
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/auth/oauth2/v2/token
      name: auth-oauth2-v2-token
      description: REST surface for auth-oauth2-v2-token.
      operations:
      - method: POST
        name: generatetoken
        description: Generate access token
        call: onelogin-oauth.generatetoken
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: onelogin-oauth-mcp
    port: 9090
    transport: http
    description: MCP adapter for OneLogin API — OAuth. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: revoke-access-token
      description: Revoke access token
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: onelogin-oauth.revoketoken
      outputParameters:
      - type: object
        mapping: $.
    - name: generate-access-token
      description: Generate access token
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: onelogin-oauth.generatetoken
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.