Authorisation only flow is a fortumo hosted authorisation flow where users are authorised via Header enrichment or PIN flow. After users have authorised themselves a charging token is generated which can be used later to charge the user. Authorisation only flow can be used with Bundling or together with Payments API.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | { "iss": "d3ad608d0a1729727a3eb6bc0892b427", "exp": "1988326400", "sub": "hdcb", "aud": "Fortumo", "nbf": "1485256642", "iat": "1485256645", "jti": "00001", "country_code": "EE", "channel_code": "sandbox-ee", "activity": "auth-only", "item_description": "Login by mobile", "item_info": "Completing the authorisation flow allows you to get access to the service", "urls": { "authorisation_callback": "https://example.com/auth", "redirect": "https://example.com/auth-complete/" }, "operation_reference": "session001" } |
After every completed authorisation Fortumo sends your server an authorisation callback. Authorisation callbacks follow the format below:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | { "charging_token":"b08aa048-45d3-4fd0-b967-5b9db5c35e2d:3e620386", "authorisation_state":"verified", "merchant":"93d9523134eee0f22716e49093af881a", "operation_reference":"session001", "consumer_identity":"cf5da068-6839-3ea1-bcd0-573b84ce2eb2", "channel":{ "code":"sandbox-ee", "country":"EE" }, "error":{}, "timestamp":"2018-06-18T06:11:13.149Z", "metadata":{ "fortumo_activity_type":"auth-only", "uuid":"5e9017b5-c5f3-4172-99b5-e13a02d0d812" } } |