The holidaymaker™ app surfaces have the ability to request user information from various sources. This works out of the box as part of the holidaymaker CMS where you can setup ‘people schemes’ with a single shared password, or manage individual users yourself. This also has the option for the holidaymaker CMS to make requests to an external system. This can be bespoke client by client and is often used for owner login, or gym membership login.
This login process can normally send two pieces of data, but can be expanded to more in the future. The security of this is usually decided upon how much personal information could be gained from the login. For example:
The app only requires a few pieces of data to then confirm who the user is, however once logged in the app will need to do background refresh logins to ensure validity of the user. This means the received information should then also include a userHash to then be able to authenticate the user without us needing to store a raw password the user entered.
The endpoint you provide can also return various different user levels. For example you may have a gold, silver, and bronze membership. The user logins with the same button and enters the same credentials, however you can then return the specific key so the app can then filter the correct content for their user level.
The user login and hash are required in the packet, but there are also several optional pieces of information you can provide:
{
"userName": "Frank",
"userLogin": "email@emaildomain.co.uk",
"userHash": "11223344aabbccdd",
"userReference": "AABB1122",
"userExpiry": "2029-09-01",
"site": "park-two",
"key": "scheme_123",
"qrData": "~9LAA11BB22ZZXX"
}Type : String - Optional
This is used as a greeting to the end user in the app surfaces. If missing then a default can be used eg 'User', 'Owner' etc
Type : String - Required
The identifier used to attempt background login refreshes. This is commonly the users email address, but could be something different depending on what data is used to login a user in the first place.
Type : String - Required
The hash used to attempt background logins refreshes. For privacy reasons we would not store a raw version of a users password, so if a username/email and password login is used, then you should return us some kind of hash or token so we can make background refreshes with the userLogin.
Type : String - Optional
Optional user reference which will then render in the app. This can also be used as part of the users QR code, and printed details of the user scheme in the app.
Type : Date String - Optional
Optional expiry date for user schemes which require renewal, or may have a set contract length. Our system will send an error back to the app if this date is in the past when a background refresh is done which will force logout the user. As a fallback the app also stores this date, so if it cannot make a background refresh, but this date is in the past it will also force logout itself.
Type : String - Optional
Optional QR Code data to render in the app. This is also setup in the holidaymaker CMS and can instead be automatically constructed using the sent user reference. This is only really needed if the QR code data is different than the user reference.
Type : String - Optional
For multi-park installs, you should also include the groupsite key within the user packet. This is so the app can automatically select the park for the user when logging in.
Type : String - Optional
This is an optional key if the login could return a variety of different user levels. The key returned would be defined by holidaymaker first for example if a single login request is made but could return a gold member (eg scheme_123) or a silver member (eg scheme_456)
If a date is sent as a readable string we use the format YYYY-MM-DD
{
"arrival": "2023-09-09",
"validUntil": "2024-02-28"
}Standard JSON String - Often will have certain characters escaped depending what system is writing the JSON packet, however our parser only requires to have double quotes (") escaped. UTF-8 encoding is our standard, but others may be accepted if required. If line breaks are required in the text then the Rich Text / Multiline String type is used instead.
{
"key1": "A string value",
"key2": "Another string with an some \"quotes\" that need escaping",
"arrayOfStrings": [
"Item one as a string",
"Item two as a string",
"Item three as a string",
]
}{
"userName": "Frank",
"userLogin": "email@emaildomain.co.uk",
"userHash": "11223344aabbccdd",
"userReference": "AABB1122",
"userExpiry": "2029-09-01",
"site": "park-two",
"key": "scheme_123",
"qrData": "~9LAA11BB22ZZXX"
}