agent-auth

Device Authorization

Changed on

Get a browser approval link. Form: client_id=rmfg-agent and optional scope.

Poll the token endpoint at the returned interval using the device_code grant.

post/v1/oauth/device/code

Request

  • Base URL
    https://api.rmfg.com
  • URL
    https://api.rmfg.com/v1/oauth/device/code
  • Auth
    none required

Request body application/x-www-form-urlencoded

client_idstring required
scopestring
resourcestring

Optional; must equal the API origin.

Example request

{
  "client_id": "rmfg-agent"
}

Response

Show the approval link and code; poll the token endpoint at interval seconds.

device_codestring
user_codestring
verification_uristring
verification_uri_completestring
expires_ininteger
intervalinteger

Example response

{
  "expires_in": 600,
  "interval": 5
}

Changes