阅读和查看 Automation Anywhere 文档

Automation Anywhere Automation 360

关闭内容

内容

打开内容

刷新有效的身份验证令牌 API

  • 已更新:1/06/2021
    • Automation 360 v.x
    • 管理
    • RPA 工作区

刷新有效的身份验证令牌 API

使用有效的令牌生成 JSON Web 令牌。此端点为您提供新令牌,无需在每次令牌到期时收集和验证凭证。默认情况下,令牌的有效期为 20 分钟。

先决条件

注: 您可以在 Control Room APIs 中查看 Community Edition,但 API 功能有限。您需要获得许可证的 Automation 360 Edition 才能访问 API 的全部功能。

验证 JSON Web 令牌是否有效:验证身份验证令牌 API

过程

  1. 使用 POST 方法和端点 URL:<your_control_room_url>/v1/authentication/token
    请求正文
    {
        "token": "eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiIxIiwiY2xpZW50VHlwZSI6IldFQiIsImxpY2Vuc2VzIjpbXSwiYW5hbHl0aWNzTGljZW5zZXNQdXJjaGFzZWQiOnsiQW5hbHl0aWNzQ2xpZW50Ijp0cnVlLCJBbmFseXRpY3NBUEkiOnRydWV9LCJpYXQiOjE1NzMxMDgwNjEsImV4cCI6MTU3MzEwOTI2MSwiaXNzIjoiQXV0b21hdGlvbkFueXdoZXJlIiwibmFub1RpbWUiOjM2NTc3NTA4OTY5NzUxMDAsImNzcmZUb2tlbiI6ImJiNjgzMGJhMDY5MWYwYjZiM2M3MDE4NGY0OGM0MWY1In0.f3kPRspfm0sei9DGHd9NoyLK-iCO-vs--8b_pLG9XSUR0186uvXFopB75eVAaG-1l_AZhR78UE6Voi7_UggzHkLRrEpQ-szR7cmFDpLxZ28xLnFJYhaIuMNdw9dWDVquBWTQSpYGNJd56D-tFFHBodwVdNamqWHxaQebq1zMyUyQV6Q-gKdgubpT5gwuXnp-BwScjHOYM3Fpj_nt0nEbJC5uWpJNtLQBpVzhsRwwlRKNOHQVbo6X7zkvKBoij8ewa5FWQwX7T-760BeqfssR6mmMUo0zRaneUKAYAskz0B-X5PcyCkrVJju2XqItQ9XMGNP7h_MaUDotU_CJyguPZA"
    }
    
  2. 发送请求。
    响应正文:响应包括具有更新的到期时间的新令牌。
    {
      "token": "eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiIxIiwiY2xpZW50VHlwZSI6IldFQiIsImxpY2Vuc2VzIjpbXSwiYW5hbHl0aWNzTGljZW5zZXNQdXJjaGFzZWQiOnsiQW5hbHl0aWNzQ2xpZW50Ijp0cnVlLCJBbmFseXRpY3NBUEkiOnRydWV9LCJpYXQiOjE1NzMxMTMxMTgsImV4cCI6MTU3MzExNDMxOCwiaXNzIjoiQXV0b21hdGlvbkFueXdoZXJlIiwibmFub1RpbWUiOjM2NjI4MDc1NDY4NjYzMDAsImNzcmZUb2tlbiI6ImUxODBiZjYxMzQyMjkwZTRlM2Q4M2ZlNTU3YWRmMmE5In0.mtR1RNDe3EPzlaLQ7mwF0yIk8G00wLKGmKTFhM2689rItXHjLLgv0iYaM1LPUtRv9GafjhXfshcIm9lucyf8k8t3A7SVJFoiFY2TUNgeouPgHl7XlpzpmenDRoT4Otu9R1_FTpMi40HH81ARG7WoLDPdOyhxgL9ZvoVtRgkMiNTn1vUJWGhzd6wMYzf70rJO_TcMKgLh3X6fpPkY_xD2ykrKsdsMO2lZnzDjzuf3BCdzGjMj1q99WKBgVwyMafv4WApUX5peRZlsiVJdZrM2x890yovW2Yy_fY3wdP_57XRp1oA5vnm9FxJN9lKyxVic3Qvx8BGtXmR-GQ3T8fndjw",
      "user": {
        "id": 1,
        "email": "a@a.com",
        "username": "admin",
        "domain": null,
        "firstName": "",
        "lastName": "",
        "version": 1,
        "principalId": 1,
        "deleted": false,
        "roles": [
          {
            "name": "AAE_Admin",
            "id": 1,
            "version": 0
          }
        ],
        . . .
        ],
        "licenseFeatures": [],
        "emailVerified": true,
        "passwordSet": true,
        "questionsSet": true,
        "enableAutoLogin": false,
        "disabled": false,
        "clientRegistered": false,
        "description": "",
        "createdBy": 0,
        "createdOn": "2019-09-25T16:03:05-05:00",
        "updatedBy": 0,
        "updatedOn": "2019-09-25T16:03:05-05:00",
        "publicKey": null,
        "appType": null,
        "routingName": null,
        "appUrl": null
      }
    }
发送反馈