Create User Action Signature Challenge
POST /auth/action/init
Starts a user action signing session, returning a challenge that will be used to verify the user's intent to perform an action.
Required Permissions
None
Request body
userActionPayload *
String
The JSON encoded body of the request that is being signed
userActionHttpMethod *
String
The HTTP method that will be used to make the request that is being signed. Can be one of the following:
POST
PUT
DELETE
GET
userActionHttpPath *
String
The path of the request that is being signed
userActionServerKind
String
Optional indicator of which Dfns service being called. Currently, this can only be Api
Example:
{
"userActionPayload": "{\"name\": \"My PAT\",\"publicKey\": \"-----BEGIN PUBLIC KEY-----\\nMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEZQt0YI2hdsFNmKJesSkAHldyPLIV\\nFLI/AhQ5eGasA7jU8tEXOb6nGvxRaTIXrgZ2NPdk78O8zMqz5u9AekH8jA==\\n-----END PUBLIC KEY-----\",\"daysValid\": 365,\"permissionId\": \"pm-delaw-avoca-v16r37fpp8koqebc\"}",
"userActionHttpMethod": "POST",
"userActionHttpPath": "/auth/pats"
}Responses
Success - an object containing the user's authentication options
Format:
Examples
Last updated