on 2019 Nov 20 12:41 PM
Hello,
I use a custom identity provider to authenticate users on sap portal and I need to pass custom attributes with saml2 authentication to my sapui5 application.
When I try to retrieve connected user information in a sapui5 application I use this :
sap.ushell.Container.getService("UserInfo").getUser()
Unfortunatly the fields available are very limited (name, email and id), I would need more information.
Following the documentation about the use of a custom identity provider (with SAML2) I saw this specification :
Is there a list of all Principal Attribute availables somewhere?
Can we add custom attributes?
and of course is it possible to access those attributes in a sapui5 application? how?
Thanks for your help
Hi Maxime,
Regarding your questions:
Is there a list of all Principal Attribute available somewhere? Can we add custom attributes?
Yes, but this is configured on the Identity Provider side.
Is it possible to access those attributes in a sapui5 application? how?
Yes, see Accessing the User API. Example: https://blogs.sap.com/2016/05/23/getting-user-details-in-ui5-hcp/
Best Regards,
Lucas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Maxime,
you can simply install my project HTML5UserAPI as a HTML5 app in you Neo subaccount and get all the details that are sent over from the identity provider.
Best regards
Gregor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The API is documented: SAP Cloud Platform User API.
User | Count |
---|---|
83 | |
12 | |
10 | |
10 | |
10 | |
9 | |
8 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.