@one-view/pd-oneview-auth-types
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

FORMAT: 1A VERSION: 1.0.0 HOST: https://api.pd-oneview.net/auth

pd-oneview-auth

Handle the Auth and ACL for One View

exchange [/v1/exchange]

Exchange for a valid JWT token using Cloudflare or Google OpenID token

  • Attributes (ExchangeReply)

Exchange access token [POST]

  • Request (application/json)

    • Attributes (ExchangeRequest)
  • Response 200 (application/json)

    • Attributes (ExchangeReply)
  • Response 400 (application/json)

    • Attributes (Error)
  • Response 401 (application/json)

    • Attributes (Error)

refresh [/v1/refresh]

Get refreshed JWT token using refresh_token

  • Attributes (RefreshReply)

Refresh access token [POST]

  • Request (application/json)

    • Attributes (RefreshRequest)
  • Response 200 (application/json)

    • Attributes (RefreshReply)
  • Response 400 (application/json)

    • Attributes (Error)
  • Response 401 (application/json)

    • Attributes (Error)

Data Structures

int64 (number)

integer (number)

float (number)

date (string)

errorObject (object)

  • status (string)
  • title (string)

Error (object)

  • errors (array[errorObject])

ExchangeRequest

  • token : openid.ajskjea (string)
  • idp: cloudflare (string)

ExchangeReply

  • jwt : jwt.token.here (string)
  • refresh_token : jwt.refresh.token (string)

RefreshRequest

  • token : jwt.refresh.token (string)
  • idp: cloudflare (string)

RefreshReply

  • jwt : jwt.token.here (string)
  • refresh_token : jwt.refresh.token (string)

/@one-view/pd-oneview-auth-types/

    Package Sidebar

    Install

    npm i @one-view/pd-oneview-auth-types

    Weekly Downloads

    2

    Version

    0.0.3

    License

    none

    Unpacked Size

    10.7 kB

    Total Files

    4

    Last publish

    Collaborators

    • ramadimasatria
    • forex
    • ichsanrp
    • alicanakyuz
    • gabrielang-fp
    • hendra.wijaya
    • fp_apac_jonathan.sudibya
    • jianann-fp
    • shing-fp
    • alipsidik