Granting access to cloud computers
Property | Type | Description |
---|---|---|
auth.type | string | The authentication strategy type. Valid values are webhook and token . |
auth.value.url | string | The endpoint of your webhook for webhook-based authentication. |
auth.value.bearer | string | A secret cryptographic key you provide to verify the webhook request is coming from Hyperbeam. |
Authorization
header to Authorization: Bearer <bearer-token>
<bearer-token>
is the token you provided in the authentication objectHB-User-Agent
header to the client’s user agentHB-Connection-IP
header to the client’s IP addressPOST
request with a JSON request body
user_id
is the user’s Hyperbeam identifieruserdata
is the webhookUserdata
object passed into the Hyperbeam JavaScript SDKlocalhost:8080
). We recommend using ngrok to expose your endpoint for testing.
Your webhook must:
user_id
and userdata fields to identify the user200
status with a JSON response body
{"authorized": true}
{"authorized": false}