Well, it does not execute "LoginDone".

I get this: "Returned state does not match passed state: possible attempted Cross Site Request Forgery attack", so I am thinking that there might be something wrong in the AddParam's in OnBeforeLogin.

Here is what it should look like:
Code:
https://identity-sandbox.test.vismao...nect/authorize
?client_id={ClientID}
&redirect_uri=https://domain.com/app/OAuth2/Callback.html
&scope=ea:api%20offline_access%20ea:sales%20ea:purchase_readonly%20ea:accounting
&state=018TEST7643
&response_type=code
&prompt=login
&acr_values=service:01234AB1-1A23-1A2B-A123-123AB4567890+forceselectcompany:true
This is how I set it up in DF code:
Code:
Procedure OnBeforeLogin
   Send ClearParams
   Send AddParam "scope" "ea:api%20offline_access%20ea:sales%20ea:purchase_readonly"
   Send AddParam "state" "018TEST7643"
   Send AddParam "prompt" "login"
   Send AddParam "acr_values" "service:01234AB1-1A23-1A2B-A123-123AB4567890+forceselectcompany:true"
End_Procedure