rpc_auth
« Previous section Next section »
UCloud Developer Guide / Developing UCloud / Micro Library Reference / RPC / RPC Auth
RPC Auth
Configures the authentication feature. The authentication feature is only relevant for the server and defines how each call should be checked.
Fields | Mandatory | Description |
---|---|---|
| ✅ Yes | Requires the scope of the incoming JWT to match the value of this. If a call only reads data (no modification of state) then thevalue of this field should be |
| ❌ No
Default: | Sets a requirement for the role to be in this set |
Options for Roles
:
Field | Description |
---|---|
| Any authenticated principal ( |
| Any authenticated end-user ( |
| Any privileged user ( |
| Only UCloud admins ( |
| Any principal (including unauthenticated) |
Examples
Example: Minimal example
Example: Public endpoint
Example: Privileged endpoint
Last updated