infor-cloud / m3-h5-sdk

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

Authentication Failed with odin login -c --m3 <https://m3> <file.ionapi> #174

Open ismail-spoon opened 1 year ago

ismail-spoon commented 1 year ago

Describe the bug Authorization app has been created exactly like in the example in my Infor IONAPI environnement. After the entering the login in the pop up and approving the application, a an error is shown:

Logon request failed (urn:oasis:names:tc:SAML:2.0:status:Responder - STATUS-MISSING - Unexpected Runtime Authn Adapter Integration Problem.) (error: 612) image

Authorization application: Port 10000 because 8080 is blocked on my PC. image

To Reproduce Steps to reproduce the behavior:

  1. Go to 'odin login -c --m3 https://m3 '
  2. Enter login informations
  3. Click on approve
  4. See error

Expected behavior It should fetch the cookie and save the session.

Version

swuendri commented 1 year ago

Hello @ismail-spoon, are you in a multi tenant cloud environment? If yes, please omit the --m3 option.

ismail-spoon commented 1 year ago

Hello @ismail-spoon, are you in a multi tenant cloud environment? If yes, please omit the --m3 option.

Yes I am on a MT environment. I'm trying to resolve this issue as when I deploy the H5 application on the MT environment the app works, but not on local development. Some APIs are working so I think it is something different. Any ideas?: image

swuendri commented 1 year ago

Can you describe your odin commands @ismail-spoon? In a cloud environment you should call the following commands in the directory of your application:

odin login -c <file.ionapi>
odin serve --multi-tenant --ion-api
ismail-spoon commented 1 year ago

Hello, yes I was able to login using these commands in order: odin login --update-config ./src/assets/ionapi/DEV.ionapi odin serve --multi-tenant --ion-api --port 9000

The serving works, but it gives me the above error at some point, is there something in this configuration (odin.json) that needs to be changed? image

Also I found out that by adding the below extension the error is fixed. It is a workaround atm but what could be the actual solution. image

swuendri commented 1 year ago

Hello @ismail-spoon, how can I reproduce the CORS error on my site?