11.2.4.5 Create Permissions


Interface Address /hub/createPerm
Description The permissions of accessing to Hub are created by the user for third parties. Permissions WRITE means store credentials, UPDATE means update credentials, READ means read credentials. An authorization can only be accessed once, and an authorization with the same uid and the same permission cannot be created again without access.
Interface request parameter
No. Parameter Type Required Description
1 CreatePermissionReq Y Wrapper class
CreatePermissionReq
1 uid String Y Authorizer's uid
2 grant String Y Permissions
3 grantUid String Y Authorized uid
4 grantPublicKey String Y Public key of the licensee
5 grantEncryptKey String N Encryption key. READ/UPDATE permission required
6 url String N Storage address. READ/UPDATE permission required
7 sign String Y Signature
Interface response parameter
No. Parameter Type Description
1 AddPermissionResult Response data
AddPermissionResult
1 url String WRITE must return to indicate that the credentials are to be stored to this address; READ/UPDATE is empty.
2 key String Encryption of the key cipher of the credentials (encrypted using the Public key of the authorized person)
© 2019-2021 Red Date (Hong Kong) Technology Limited. all right reserved,powered by GitbookFile Modify: 2021-11-01 00:16:11

results matching ""

    No results matching ""

    results matching ""

      No results matching ""