From: Sander A. <sa....@fz...> - 2018-11-06 07:24:56
|
Hi Krzysztof, It works. Thank you very much. I just moved the rule from registration form to translation profile. So existing users got this attribute at next login too. Cheers, Sander Am Montag, den 05.11.2018, 20:27 +0100 schrieb Krzysztof Benedyczak: > Hi Sander, > > W dniu 05.11.2018 o 11:53, Sander Apweiler pisze: > > Hi Krzysztof, > > > > we want to add some attributes, if not provided by the IdP, based > > on > > the IdP itself. Is it possible to compare the IdP in the condition > > of > > automatically assigned settings? > > > > To give an example. I login with the Juelich IdP and the IdP does > > not > > provide some assurance information. I want to set them during the > > account creation. The condition would look like !(eattr contains > > 'eduPersonAssurance') && IdP=='fz-juelich.de' > > > > Do I get the IdP in some variables? > > Out of the box not - registration quite often done locally without > any > remote information. > > But it is possible to set this up: > > 1. the remote IDP id is available in input translation profile (the > 'idp' variable) used by your authenticator, that is authenticating a > user to be registered. So first of all save this information into an > attribute in input profile, e.g. in an attribute IDP. > > 2. in the registration form add a collected attribute - IDP. Set > this > attribute as collected from remote IdP and hidden. Then you can use > it > in your registration form automation (e.g. rattr['idp']) > > See respective chapters in manual for more details. > > HTH, > > Krzysztof > -- Federated Systems and Data Juelich Supercomputing Centre phone: +49 2461 61 8847 fax: +49 2461 61 6656 email: sa....@fz... ----------------------------------------------------------------------- ----------------------------------------------------------------------- Forschungszentrum Juelich GmbH 52425 Juelich Sitz der Gesellschaft: Juelich Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498 Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender), Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt, Prof. Dr. Sebastian M. Schmidt ----------------------------------------------------------------------- ----------------------------------------------------------------------- |