Rest Integration Guide

Authentication using REST API’s is a sequence of calls against the AM authentication endpoint that will depend on the configured authentication tree. It works by sending across data called callbacks where AM will indicate which information it requires as part of the Callback and the requester needs to provide that information and send it to the authentication endpoint.

Example

The default Audkenni Authentication flow is to present a user with a selection screen and a possibility to enter his phonenumber. The calls below show which request/responses need to be performed to perform this authentication when choosing to authenticate with mssp.

1: Start authentication

The first call is an empty POST to the authentication endpoint as can be seen below:

1 2 3 4 curl --location --request POST 'https://idp.audkenni.is:443/sso/json/realms/root/realms/audkenni/authenticate' \ --header 'Content-Type: application/json' \ --header 'Accept-API-Version: resource=2.0,protocol=1.0' \ --data-raw ''

This will give the following response:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 { "authId": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJvdGsiOiJ2ODJvbW5tOTE0MjltN2RuaWlzNHBxOHU3MiIsInJlYWxtIjoiL2F1ZGtlbm5pIiwic2Vzc2lvbklkIjoiKkFBSlRTUUFDTURJQUJIUjVjR1VBQ0VwWFZGOUJWVlJJQUFKVE1RQUNNREUuKmV5SjBlWEFpT2lKS1YxUWlMQ0pqZEhraU9pSktWMVFpTENKaGJHY2lPaUpJVXpJMU5pSjkuWlhsS01HVllRV2xQYVVwTFZqRlJhVXhEU2paaFdFRnBUMmxLVDFRd05VWkphWGRwV2xjMWFrbHFiMmxSVkVWNVQwVk9RMUY1TVVsVmVra3hUbWxKYzBsdFJuTmFlVWsyU1cxU2NHTnBTamt1TG5KSWFuZENjbVJGU3pJMGEwaHJiM1l5VmxsVVVuY3VPRWhzVEd0MFMwa3dWMGx4UTNGU1dFNWlWRkpJTkhoSFlYTXphak16U21SaFUwZDZWVWR1WlhWa2EwOVNlV0poYjBOaGJqQkVhR2xaUVRWWlpEZGtWSE0yTURWaFUyVXRWMDlyUVZkMVZ6VkZVRlUx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WEJGUTNkbWRHNWxVbE4xZFRWaVpYRXRSMEl1Y0VJME9GbExOVjlsU1MwNFVFdzFkSGxSVFVWblp3LmRiNERVUU5jMlJBbDlMUG4xbUkzY0ZXQk5HaUFGZlc2VFFKblhyYWNuSzQiLCJleHAiOjE1Nzk2OTI0NjgsImlhdCI6MTU3OTY5MjE2OH0.TMBeWV-kyR0ed8qfGDGIqRnnNBCh-rDcTlqYxy-IkXk", "callbacks": [ { "type": "NameCallback", "output": [ { "name": "prompt", "value": "templates.user.LoginTemplate.loginprompt" } ], "input": [ { "name": "IDToken1", "value": "" } ], "_id": 0 }, { "type": "ChoiceCallback", "output": [ { "name": "prompt", "value": "Choose Authenticator" }, { "name": "choices", "value": [ "sim", "card" ] }, { "name": "defaultChoice", "value": 0 } ], "input": [ { "name": "IDToken2", "value": 0 } ], "_id": 1 } ] }

 

2: Enter Phonenumber and Choice

From the callback above you will see its has 2 callback. A NameCallback which an empty input IDToken1 which needs to contain the phoneNumber and a ChoiceCallback which has as an empty input IDToken2 which should contain the choice of authentication method (index number of element in the array)

So the next call looks like this:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 curl --location --request POST 'https://idp.audkenni.is:443/sso/json/realms/root/realms/audkenni/authenticate' \ --header 'Content-Type: application/json' \ --header 'Accept-API-Version: resource=2.0,protocol=1.0' \ --data-raw '{ "authId": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJvdGsiOiJ2ODJvbW5tOTE0MjltN2RuaWlzNHBxOHU3MiIsInJlYWxtIjoiL2F1ZGtlbm5pIiwic2Vzc2lvbklkIjoiKkFBSlRTUUFDTURJQUJIUjVjR1VBQ0VwWFZGOUJWVlJJQUFKVE1RQUNNREUuKmV5SjBlWEFpT2lKS1YxUWlMQ0pqZEhraU9pSktWMVFpTENKaGJHY2lPaUpJVXpJMU5p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9lRWRxU0UxWk1tVlpjM1JKTFhJNGVUTjVTVUZyV1d4VldHNHdhMUJ0UkhWSU5HUm1jSFZZWkVaVFVXeHdRVVJVWW1Wc2FtRnllalJJTlVaRlJWRnlVamxDWVdab1pWRlNNbEZhVVU5VGFWcEVNbU0zVUc5UE1tNW9kemRrVkRkVU5WWmtXa2RoWm5samVubFNXR0p2VDBoUGFUSmFiRXRuWVRsVWMxWkxXV1ZPV0hOcGNUazNiSFJLZEdVMlgzWnBjalJHVFVWdU5WVjNZMGhuZWkxaE5FdHpSSGs1WWt4dk5sUnRRMHhpZG5KaFVuRlJZV014TVdoTWJsOVROWEJGUTNkbWRHNWxVbE4xZFRWaVpYRXRSMEl1Y0VJME9GbExOVjlsU1MwNFVFdzFkSGxSVFVWblp3LmRiNERVUU5jMlJBbDlMUG4xbUkzY0ZXQk5HaUFGZlc2VFFKblhyYWNuSzQiLCJleHAiOjE1Nzk2OTI0NjgsImlhdCI6MTU3OTY5MjE2OH0.TMBeWV-kyR0ed8qfGDGIqRnnNBCh-rDcTlqYxy-IkXk", "callbacks": [ { "type": "NameCallback", "output": [ { "name": "prompt", "value": "" } ], "input": [ { "name": "IDToken1", "value": "8422263" } ], "_id": 0 }, { "type": "ChoiceCallback", "output": [ { "name": "prompt", "value": "Choose Authenticator" }, { "name": "choices", "value": [ "sim", "card" ] }, { "name": "defaultChoice", "value": 0 } ], "input": [ { "name": "IDToken2", "value": 0 } ], "_id": 1 } ] }'

This will give the following response:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 { "authId": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJvdGsiOiI2amxiYXJxZjgxOWlmM2NhOWg5ZjNqOTlmMiIsInJlYWxtIjoiL2F1ZGtlbm5pIiwic2Vzc2lvbklkIjoiKkFBSlRTUUFDTURJQUJIUjVjR1VBQ0VwWFZGOUJWVlJJQUFKVE1RQUNNREUuKmV5SjBlWEFpT2lKS1YxUWlMQ0pqZEh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BoZlNYcE5YM3B3TUd0c1FrMUxkbkpsV2w5UWRraHhTRzQzT0c1TlYwOXdNa1IwV1V0UFYwMXhaRUo1V1ROQldIbGZOREZPUVV4cE1rUTRkMnRCVUMwNFkwZHNiWE5uUlVaQlpUSnRNemx1WWtNNFRGZHdiV3d4ZVdwWWJWaDJTWEl4TFhKMVREWnlkMnBEVW0xaVREbHBkVzlyYjBOTFdrUmFTbVpaVXpsa2NrbHJaelZLUlhaMFlUTTNRbTUzVFRkNVR6RndZazVNVkdKbmFuazNRek0wTWtGMk5VeGZSa0kwYkZkUmVqRm5NMFphWjJoamNYcDBTbWg1VDJFNFIxcHZSbU5zVkhKNVRVMXpiM2hvY0dwSmVXcGhWblpqU1docFIwSkxPSGxJZWs5UmMybzBWbk0yUlhSbVNVOXdSekF0ZWpaMVFVSlhha3BzWlZoUWVYbFZjeTFHYzFKM1VqSkpjR3RsZG5KZlZIVldYekZRVWxWdVJuUkZiM2RsTkhBdE5GOVBWbmhVZEc5SlJWVTJXaTFzWm5SUGFFbEVibE13T1c1WVZuWlNPR2Q2Y20xR2RtbEVabDh6TjNBMU1GUjNUMUppVnpNMVJGOXpTVlJDVlVFNU1YY3VaWGxtWlZSbGNqUnhUVTB0ZEZrMWRVSTBaMnh3WncuMnNJNW9JRFJ5UmtJSXFDaVhKMjBFaUtaTC1LZnRMN2N1WFlxdnF6VEZ1QSIsImV4cCI6MTU3OTY5MzM2NSwiaWF0IjoxNTc5NjkzMDY1fQ.3PMUjPtGLwE9AwFU_AbRA5wAmVxA3zwuTJ5k32wTXUE", "callbacks": [ { "type": "PollingWaitCallback", "output": [ { "name": "waitTime", "value": "5000" }, { "name": "message", "value": "templates.user.LoginTemplate.pollingwaitmessage" } ] } ] }

 

3: Authenticate

Note that the response from above does not contain an input element, so for the next call you can just send the response body as the request. After you authenticated on your phone you can do the following request:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 curl --location --request POST 'https://idp.audkenni.is:443/sso/json/realms/root/realms/audkenni/authenticate' \ --header 'Content-Type: application/json' \ --header 'Accept-API-Version: resource=2.0,protocol=1.0' \ --data-raw '{ "authId": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJvdGsiOiI2amxiYXJxZjgxOWlmM2NhOWg5ZjNqOTlmMiIsInJlYWxtIjoiL2F1ZGtlbm5pIiwic2Vzc2lvbklkIjoiKkFBSlRTUUFDTURJQUJIUjVjR1VBQ0VwWFZGOUJWVlJJQUFKVE1RQUNNREUuKmV5SjBlWEFpT2lKS1YxUWlMQ0pqZEhraU9pSktWMVFpTENKaGJHY2lPaUpJVXpJMU5pSjkuWlhsS01HVllRV2xQYVVwTFZqRlJhVXhEU2paaFdFRnBUMmxLVDFRd05VWkphWGRwV2xjMWFrbHFiMmxSVkVWNVQwVk9RMUY1TVVsVmVra3hUbWxKYzBsdFJuTmFlVWsyU1cxU2NHTnBTamt1TGxoV2NUSmxkREZEVWpGbVZXWm1NbVZ6UjNRMlduY3VSM1V0ZGtkWmJETTJOVlJHUzFodVVsUldaV1pPWjNKQmFrRnpOMHcyVldKbE55MVVMV0ZKTTE4NFZXOW9RbWxvVTA1Uk1FWnJlVFJzTkdwaVoySTRZakl0VjBsME1GVnhYMDVqTFZWMFIzVkVTVzltVjE5TVVIVjRhV0oyVlhodVYwc3lSM0pUTlV4M09UYzNhWGx2VFhka2IxSk9jREZrU0MxWmFUSkRhbmc1VWpCZldDMXlSV2xCT0MxMFNqaEJlbTloYkRoT1lUWTNkR2hqUnpWRGEzbFJSbGxMZUhSaFVsZFZhRWxOT0ZaeGVraDRSamxTVlVabmJtTXlXbkZKY214bFEzUlpURTExTUVwalJIazVTMmM1WVZoRlVXdGljVk4wUVhWVFpuZDFUbU10VW1wUGVtODVSV28xVUZwWVgzSnFTa0ptYWpKV1YwZFNTVXhVYVdFelVGZzFObEpUTFZWaVVuWnJXR3d0WXpWcE1IZFNVVmcyTjJoMVNWTTRUVlpwTVVKaWJEbDBNR2w1V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OTY5MzM2NSwiaWF0IjoxNTc5NjkzMDY1fQ.3PMUjPtGLwE9AwFU_AbRA5wAmVxA3zwuTJ5k32wTXUE", "callbacks": [ { "type": "PollingWaitCallback", "output": [ { "name": "waitTime", "value": "5000" }, { "name": "message", "value": "templates.user.LoginTemplate.pollingwaitmessage" } ] } ] }'

When you successfully entered your pin on the phone the response will look like this:

1 2 3 4 5 { "tokenId": "Wp66nwA-2sAA30_A0E_fhNOhXto.*AAJTSQACMDIAAlNLABxDWVA3VGFnM0hLMUg2a0pXUi8ycnFUdTNqVDg9AAR0eXBlAANDVFMAAlMxAAIwMQ..*", "successUrl": "/sso/console", "realm": "/audkenni" }

The tokenId is your login session token.

Possible start points

Several trees have been configured and each tree has a separate first call.

default

For the default authentication the start call is:

1 curl --location --request POST 'https://idp.audkenni.is:443/sso/json/realms/root/realms/audkenni/authenticate' --header 'Content-Type: application/json' --header 'Accept-API-Version: resource=2.0,protocol=1.0' --data-raw ''

 

MSSP only

For the tree when only MSSP authentication is enforced the start call is:

1 2 3 4 curl --location --request POST 'https://idp.audkenni.is:443/sso/json/realms/root/realms/audkenni/authenticate?service=default&authIndexType=service&authIndexValue=simonly' \ --header 'Content-Type: application/json' \ --header 'Accept-API-Version: resource=2.0,protocol=1.0' \ --data-raw ''

 

Nexus only

For the tree when only Nexus authentication is enforced the start call is:

1 2 3 4 curl --location --request POST 'https://idp.audkenni.is:443/sso/json/realms/root/realms/audkenni/authenticate?service=default&authIndexType=service&authIndexValue=nexus-auth' \ --header 'Content-Type: application/json' \ --header 'Accept-API-Version: resource=2.0,protocol=1.0' \ --data-raw ''