Uploaded image for project: 'controller'
  1. controller
  2. CONTROLLER-853

API Explorer needs to authenticate for API calls

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Cannot Reproduce
    • Helium
    • None
    • restconf
    • None
    • Operating System: All
      Platform: All

    • 1942
    • Normal

    Description

      If AAA is installed/enabled, the API Explorer "Try out" functionality will return a 401 (unauthorized), because Restconf requires authentication.

      To authenticate, there are 2 methods:

      1) Allow a token header to be submitted (similar to the api_key in SwaggerUI) with the request. The token is in the form of: "Authorization: Bearer <token>". The token can be retrieved by doing a POST to AAA as such:

      curl -s -d 'grant_type=password&username=admin&password=admin&scope=sdn' http://<controller>:8181/oauth2/token

      2) Use basic auth with "admin/admin".

      The first method is preferred.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            rgoulding Ryan Goulding
            liem.m.nguyen@gmail.com Liem Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: