InvalidOperationException: Unable to convert user ID (lvPczXrV3vG3PplSJfpIjzP7ZhItHbK15rQ6uhDFpgg)to int using InvariantCulture
Hi there,
I am using Umbraco 13 and testing Azure AD integration. I have setup an App Registration and use the Client Id, Secret and Authority settings. Read in from my app settings json file. The callback Url is configured to my localhost address and port number. I created a new Umbraco Database for testing purposes. But I receive the following error:
InvalidOperationException: Unable to convert user ID (lvPczXrV3vG3PplSJfpIjzP7ZhItHbK15rQ6uhDFpgg)to int using InvariantCulture
Thank you for your response and to those that have responded previously.
I finally resolved the situation. First of all I removed a duplicate record in the umbracoExternalLogin table from Umbraco's database. I kept getting an duplicate key error when testing the SSO Login. I reapplied the settings from Azure, the ClientId and Secret and so on. I also removed all cookies from my browser. These steps resolved it for me. Works ok following these steps.
We managed to resolve this as well - we had user accounts that did not have an email address within Entra. Note that this is different from the UPN / login, and is set on the contact details within Entra.
InvalidOperationException: Unable to convert user ID (lvPczXrV3vG3PplSJfpIjzP7ZhItHbK15rQ6uhDFpgg)to int using InvariantCulture
Hi there,
I am using Umbraco 13 and testing Azure AD integration. I have setup an App Registration and use the Client Id, Secret and Authority settings. Read in from my app settings json file. The callback Url is configured to my localhost address and port number. I created a new Umbraco Database for testing purposes. But I receive the following error:
The stack trace is as follows:
Is there further configuration to set or code changes to be made to resolve this issue?
Feedback on this is much appreciated thank you,
DJ
Do you find any solution for this?
No I have not. I will try to upgrade Umbraco.
We have the same issue, but it only occurs in certain tenants. In others its works. The Entra application has been configured the same.
Well... I solved with the following claim definition - adding the optional claim "email":
Thank you for your response and to those that have responded previously.
I finally resolved the situation. First of all I removed a duplicate record in the umbracoExternalLogin table from Umbraco's database. I kept getting an duplicate key error when testing the SSO Login. I reapplied the settings from Azure, the ClientId and Secret and so on. I also removed all cookies from my browser. These steps resolved it for me. Works ok following these steps.
We managed to resolve this as well - we had user accounts that did not have an email address within Entra. Note that this is different from the UPN / login, and is set on the contact details within Entra.
is working on a reply...