Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PUT /platforms/:platform/auths/:auth_user_id #40

Open
davidraker opened this issue Mar 7, 2022 · 0 comments
Open

PUT /platforms/:platform/auths/:auth_user_id #40

davidraker opened this issue Mar 7, 2022 · 0 comments

Comments

@davidraker
Copy link
Contributor

davidraker commented Mar 7, 2022

Update existing authentication/authorization record for an agent running in the VOLTTRON platform.

If not all fields in the record are provided, only those which have been provided will be updated. Other fields will remain the same.

Note: :auth_user_id can take any value specified in a user_id field in an auth record on the system. For local agents, this should be the actual VIP identity. The string, however is arbitrary and may have other values for remote agents to distinguish them from local versions of the same agent.

Request:

  • Authorization: BEARER <jwt_token>
  • Content Type: application/json
  • Body:
     {
         "domain": "<domain>",
         "address": "<address>",
         "user_id": "<user_id>",
         "capabilities": ["<capability>", ...],
         "roles": ["<role>", ...],
         "groups": ["<group>", ...],
         "mechanism": "<mechanism>",
         "credentials": "<public_key>",
         "comments": "<comments>",
         "enabled": true|false
     }
    

Response:

  • With valid BEARER token on success: 204 No Content

  • With valid BEARER token on failure: 400 Bad Request

    • Content Type: application/json
    • Body:
      {
          "error": "<Error Message>"
      }
      
  • With invalid BEARER token: 401 Unauthorized

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants