infor-cloud / m3-h5-sdk

https://infor-cloud.github.io/m3-h5-sdk/
36 stars 20 forks source link

Can't run H5 app with a specific user #150

Closed Messaoudi-Nagib closed 1 year ago

Messaoudi-Nagib commented 1 year ago

Description

Hi, I've made a H5 app and import it into M3 via H5 administration menu. I installed it and it works fine on my profile. Some users use it too and don't have any trouble using it. There is one profile where the application cannot work and I don't know why. I've checked the user's rights and authorizations, wich are the same as others. I've also noticed that when I run the application with the user profile (the one who doesn't work), I get in the developpers tools console a message saying that the call to ion api returned a http status 401.

I don't have other clues on what is going on. Did you ever face a similar issue ? Is it a CORS probem, or something linked to user rights and permissions ?

Thank you,

Regards,

Nagib.

Versions

M3 cloud Edition

swuendri commented 1 year ago

Dear @Messaoudi-Nagib, can you provide the SecurityRoles from two users? One user that can use the H5 application and the one who has a problem?

Please go into User Management and export the profile as XML. Afterwards extract only the section starting from <SecurityRoles> and ends with </SecurityRoles>. Currently I do not expect a problem in M3-H5-SDK.

Messaoudi-Nagib commented 1 year ago

Hi @swuendri, thanks for your help ! I finally found out what was going on. It was not about security roles (I've already checked out) it was because of the panel configuration, wich was different for this user. For my profile, when I go to settings it was on screen B, and for the other user it was V. I'm using panel API on my mashup so that's why the other user was not able to use it, but now it's fixed ! :)