这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@ZIMkaRU
Copy link
Member

@ZIMkaRU ZIMkaRU commented Apr 24, 2023

This PR adds a dedicated flag to recognize an account registering type: via API keys or without for the UI porpuses to cover user login flow like the screenshot:

registering_type


The isApiKeysAuth flag adds to the getUsers response:

  • getUsers request example:
{
  "method": "getUsers"
}
  • getUsers response example:
{
  "jsonrpc": "2.0",
  "result": [
    {
      "email": "user.one@email.com",
      "isSubAccount": false,
      "isNotProtected": true,
      "subUsers": [],
      "isRestrictedToBeAddedToSubAccount": true,
      "isApiKeysAuth": false // signed up with authToken
    },
    {
      "email": "user.two@email.com",
      "isSubAccount": false,
      "isNotProtected": true,
      "subUsers": [],
      "isRestrictedToBeAddedToSubAccount": false,
      "isApiKeysAuth": true // signed up with API keys
    }
  ],
  "id": null
}

Copy link
Contributor

@ezewer ezewer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me!

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

Successfully merging this pull request may close these issues.

3 participants