Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tutorial:dev:scim_form_value [2018/05/11 11:56] tomiskar [02 Save form values] |
tutorial:dev:scim_form_value [2020/04/14 11:13] tomiskar [02 Save form values] |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== SCIM module - save extended form value ====== | ||
+ | |||
+ | {{tag> scim}} | ||
+ | |||
+ | [[devel: | ||
+ | |||
+ | We want to create user (~IdM identity) with an extended attribute (~IdM form value). | ||
+ | |||
+ | Extended attributes are defined as extended schema, which can be added to resources implementing '' | ||
+ | |||
+ | ===== What do you need before you start ===== | ||
+ | |||
+ | * We need to install CzechIdM 8.1.0 (and higher). We have CzechIdM installed for this tutorial on server '' | ||
+ | * We need to install [[devel: | ||
+ | * Create identity, which will have permission to create and read reports. We are using demo '' | ||
+ | |||
+ | Note: [[devel: | ||
+ | |||
+ | ===== 01 Read form definition ===== | ||
+ | |||
+ | The first thing ee need to now, which extended attributes are available for given resources. We'll use '' | ||
+ | |||
+ | <code bash> | ||
+ | curl -X GET --header ' | ||
+ | </ | ||
+ | |||
+ | ===== 02 Save form values ===== | ||
+ | |||
+ | Form definition response contains available attributes and their persistent type (~data type). We need to set value attribute by defined persistent type. In this example attribute '' | ||
+ | |||
+ | <code bash> | ||
+ | curl -X POST --header ' | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | | ||
+ | " | ||
+ | | ||
+ | } | ||
+ | ] | ||
+ | } | ||
+ | ]} | ||
+ | | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | <note tip> | ||