This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
nocode:identity-link [2019/08/01 08:38] tjotov created |
nocode:identity-link [2019/08/13 11:20] (current) 740803864 [Positive response] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== Identity Link support ====== |
| + | You can follow these steps to integrate no-code identity link support to your application: | ||
| + | * Send identity link HTTP request to ADUCID Binder | ||
| + | * Process authentication on ADUCID Binder | ||
| + | * Read identity link JSON response | ||
| + | See chapters below for details. | ||
| + | |||
| + | ===== Setup ===== | ||
| + | At first, identity link must be prepared and sent to ADUCID Binder. ADUCID Binder accepts identity link HTTP requests at ''/ | ||
| + | ^ Name ^ Values ^ Mandatory ^ Description ^ | ||
| + | | identityLinkId | String | Yes | identity link unique identifier | | ||
| + | | remoteAims | List< | ||
| + | | peigMessage | MultipartFile | No | identity link message in plain or HTML format | | ||
| + | | peigMessageData | MultipartFile | No | identity link message data | | ||
| + | | initLF | Boolean | No | if true, personal code will be initialized | | ||
| + | | redirectUrl | String | Yes | URL to redirect after ADUCID Binder successful authentication | | ||
| + | | errorPage | String | No | URL to redirect after ADUCID Binder unsuccessful authentication | | ||
| + | | udi | String | No | if defined, security attack check is realized | | ||
| + | | request | String | No | if defined, '' | ||
| + | **It is neccessary to add '' | ||
| + | |||
| + | We must also remember to provide generated identity link identifier to web view, e.g. Ajax JSON response or JSP expression language. | ||
| + | |||
| + | ===== Identity link itself ===== | ||
| + | When identity link data are successfully uploaded, we can start identity link itself. It can be done with use of [[web-integration: | ||
| + | |||
| + | <code javascript> | ||
| + | aducid.setStartOperationUrl("/ | ||
| + | aducid.setResultOperationUrl("/ | ||
| + | aducid.setProxyUrl("/ | ||
| + | </ | ||
| + | |||
| + | Expression '' | ||
| + | |||
| + | ===== Response processing ===== | ||
| + | User is now redirected to '' | ||
| + | |||
| + | There is also saved used remote AIM in HTTP attributes. It can be accessed as an attribute with prefix '' | ||
| + | |||
| + | ==== Positive response ==== | ||
| + | When identity link was successful ('' | ||
| + | |||
| + | <code javascript> | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | When '' | ||
| + | |||
| + | <code javascript> | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ==== Negative response ==== | ||
| + | See [[nocode: | ||