/app/user/redirection
This API is for letting user to participate in Fyre event right from their user interface.
URL
Method
POST
Headers
Request Body
Every request body must contain three properties: message
, fyresign
and messageHash
.
Request Body
message
appId: Id that you will get after creating app in Fyre platform.
externalUserId: Identifier for the user on application's platform which will be mapped with Fyre user Id.
iat: Timestamp at which the message was signed.
exp: Timestamp upto which the signature is valid.
isEmail: This is to identify whether application's user identifier is email or not
metaData: This field is to send extra parameter like
limit
,page
values.
fyresign: Signature generated by signing
message
using app's private key. Send generated signature in this field.messageHash: hash of the message.
Note: If an application's user identifier is an email, then the user need not to login again at Fyre event form otherwise they do have to login again at Fyre end and that user id (or externalUserId) will be mapped with Fyre userId.
Response Body
Sample reponse:
userRedirectionToken
Use this token in a query parameter userRedirectionToken
in the event form URL. This is to ensure the user is coming from right application and also to map application user to the Fyre platform user.
Sample event from URL:
https://app.fyre.hypersign.id/form/test-event?userRedirectionToken=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBJZCI6IjYyNzYzODcwNDBkYzQwMTRiYWM5ODVkNyIsImV4dGVybmFsVXNlcklkIjoiNDU2ZmhyZ2hmbmduanR1aHQzNzQiLCJpc0VtYWlsIjpmYWxzZSwidG9rZW5UeXBlIjoiVXNlclJlZGlyZWN0aW9uQWNjZXNzIiwiaWF0IjoxNjUyMDc0NDE2LCJleHAiOjE2NTIxNjA4MTZ9.vB01It3ZcOVkEAeRUbKPT_x26GofiS5mn3Rj1Q30MGM
Developer can read the next section to know about available error codes.
Last updated