Hi again,
and sorry for bothering you. I found the solution at another instance,
and I guess I had asked this in past.
The solution was
expression: attrObj['email'][0].getConfirmationInfo().isConfirmed()
Best regards,
Sander
Am Mittwoch, den 16.05.2018, 14:34 +0200 schrieb Sander Apweiler:
> Hi Krzysztof,
>
> I want to release the information whether email was confirmed to
> oauth
> clients. With unity 1.9.6 the rule below worked:
>
> condition: true
> action: createAttribute
> attributeName: email_verified
> expression: attr['mail'].confirmed
> mandatory: false
> attributeDisplayName: email validated
> attributeDescription: Was the email address confirmed?
>
> After the update to unity 2.4.2 it doesn't work anymore. I got the
> following error in log:
>
> 2018-05-16T14:27:49,883 [qtp1425617516-44] DEBUG
> unity.server.externaltranslation.OutputTranslationRule: [[TrProfile
> OauthOutputProfile], [r: 7]]Condition OK
> 2018-05-16T14:27:49,883 [qtp1425617516-44] ERROR
> unity.server.oauth.OAuthIdPEngine: Engine problem when handling
> client
> request
> org.mvel2.PropertyAccessException: [Error: could not access:
> confirmed;
> in class: java.util.HashMap]
> [Near : {... attr['mail'].confirmed ....}]
> ^
> [Line: 1, Column: 1]
>
> mail is an attribute from type verifiableEmail. Do you have any idea?
>
> Best regards,
> Sander
--
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
-----------------------------------------------------------------------
----------------------------------------------------------------------- |