Skip to main content

Login

To access the endpoints, the user needs to log in to the REST API. Upon successful authentication, a bearer token will be issued which will grant the user access to the REST API for 3600 seconds (1 hour).

  1. From a web browser, go to:

    https://<ip-of-fabric-instance>/<instancename>/api/rest/swagger/index.html

    If the instance is not using SSL, go to:

    http://<ip-of-fabric-instance>/<instancename>/api/rest/swagger/index.html

  2. Click Authorize.

    REST_login_authorize
  3. Enter the following:

    1. username: User1

    2. password: <password-of-User1>

    3. client_id: passwordclient

    4. Scopes: select all

    REST_login_authorizations
  4. Click Authorize.

    It may take a few moments to return the authorization result.

  5. Check that the session is authorized (a bearer token is issued at this stage).

    REST_login_token

    The bearer token value will not be explicitly shown upon log in using Swagger UI.

    Note that authenticating to the REST API uses a Token URL, which is different than a Request URL, which is used for calling endpoints.

  6. Exit out of the dialog box, by either clicking Close or x on the top right of the dialog box.