question

VijayarajanVivek-3239 avatar image
0 Votes"
VijayarajanVivek-3239 asked VijayarajanVivek-3239 edited

Application (client) ID not changing and points to old client id -AADSTS700016

I have a blazor server application which uses identity authentication to Azure AD and works great.

Now I have created a new app registration and changed application config (appsettings.json) to point to new client id but sign in url still points to old client id and finally getting AADSTS700016

old client id: 1ac83815-948a-4cca-b91d-032541fa48f8
new client id : 37aaaf79-034c-4aa2-8422-38f79df5e0c5

here is my appsettings.json



and see client id on my singin url
145468-image.png
![145201-image.png][2] [2]: /answers/storage/attachments/145201-image.png

Can you help me resolving this mystery.

Thanks in advance.


azure-ad-authenticationazure-ad-app-registration
image.png (91.6 KiB)
image.png (20.1 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

VijayarajanVivek-3239 avatar image
0 Votes"
VijayarajanVivek-3239 answered

It worked after a fresh publish and deployment with new client id - but why? For an appsettings.json change why do we need to do a release?

I have almost spend a day trying out different settings change , reset IIS , reset web app but nothing worked.

If thats the case then please document it stating that if you are pointing your app to a new registration then instead of changing appsettings.json do a fresh release.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

sikumars avatar image
0 Votes"
sikumars answered

Hello @VijayarajanVivek-3239,

Thanks for reaching out.

This seems to be some cache or project might have not rebuild after updating with new clientID due to which changes have not taking place, wondering did you try rebuilding your project just after updating new ClientId ?

I had referred to this article to build my test Blazor app to test out behavior and found everything working as expected without any issue even after updating new ClientId as shown below and rebuild project using following .NET CLI dotnet run --framework netcoreapp3.1

145413-image.png

Hope this helps.


Please "Accept the answer" if the information helped you. This will help us and others in the community as well.



image.png (33.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.