XrmToolBox icon indicating copy to clipboard operation
XrmToolBox copied to clipboard

reenter creedentials in each action

Open marcesepu opened this issue 1 year ago • 17 comments
trafficstars

I've updated today, now I need to reenter my credentials when I do any action or open any plugin


  • Connection Controls Version: 1.2024.9.59
  • XrmToolBox Version: 1.2024.9.69

marcesepu avatar Sep 26 '24 14:09 marcesepu

Hi Marcelo, Can you confirm the update did succeed and you are using version 1.2024.9.69?

MscrmTools avatar Sep 27 '24 07:09 MscrmTools

I'm experiencing the same issue. I have downloaded XrmToolbox from the website and I'm currently using 1.2024.9.69. The authentication window keeps flashing, or is asking credentials multiple times, which is causing certain plugins just to crash.

I have it on multiple connections, even after recreating them.

chironh avatar Sep 27 '24 09:09 chironh

To be more clear: creating the connection works just fine.

It's after using a plugin the authentication window starts flashing or is asking credentials, I guess after authentication fails multiple times, or happens too often?

chironh avatar Sep 27 '24 10:09 chironh

Hi Marcelo, Can you confirm the update did succeed and you are using version 1.2024.9.69?

yes, I'm using this version, now, I've donwload the XRMTOOLBOX from web, and reinstall manually, the error was fixed, the issue happen when you update xrmtoolbox from the app

marcesepu avatar Sep 27 '24 11:09 marcesepu

Downloaded the XrmToolbox from the website, and connected to an environment. It again asks for credentials, and starts flashing. Sometimes it asks credentials again after a while, or says it can't login (I guess the authentication is being blocked because of all the attempts).

https://streamable.com/5lhvtv

chironh avatar Sep 27 '24 12:09 chironh

I'm experiencing a lot of problems as well. I'm getting more login popups, and something like the Plugin Trace Viewer just kinda dies after a load of login popups appearing and disappearing.

I fished this stacktrace from the connection logging that might be relevant:

Microsoft.Xrm.Tooling.Connector.CrmServiceClient	Verbose	16	1-10-2024 15:07:18  Execute Command - RetrieveMultiple : RetrieveMultiple to CRM via IOrganizationService : RequestID=813d36fa-7c6c-469b-839a-a07743e747e2 
Microsoft.Xrm.Tooling.Connector.CrmServiceClient	Error	2	1-10-2024 15:07:18  Error occurred in CrmServiceClientTokenCache.AfterAccessNotification(). 
Exception Details : System.UnauthorizedAccessException: Access to the path 'C:\Users\redacted\AppData\Local\Temp\{c20debe7-6ef8-45ab-afa9-adce791845ef}' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.File.InternalWriteAllBytes(String path, Byte[] bytes, Boolean checkHost)
   at Microsoft.Xrm.Tooling.Connector.CrmServiceClientTokenCache.AfterAccessNotification(TokenCacheNotificationArgs args)
Microsoft.Xrm.Tooling.Connector.CrmServiceClient	Error	2	1-10-2024 15:07:18  Error occurred in CrmServiceClientTokenCache.AfterAccessNotification(). 
Exception Details : System.UnauthorizedAccessException: Access to the path 'C:\Users\redacted\AppData\Local\Temp\{c20debe7-6ef8-45ab-afa9-adce791845ef}' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.File.InternalWriteAllBytes(String path, Byte[] bytes, Boolean checkHost)
   at Microsoft.Xrm.Tooling.Connector.CrmServiceClientTokenCache.AfterAccessNotification(TokenCacheNotificationArgs args)
Source	: Not Provided
Method	: Not Provided
Date	: 1-10-2024
Time	: 15:07:18
Error	: Error occurred in CrmServiceClientTokenCache.AfterAccessNotification(). 
Exception Details : System.UnauthorizedAccessException: Access to the path 'C:\Users\redacted\AppData\Local\Temp\{c20debe7-6ef8-45ab-afa9-adce791845ef}' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.File.InternalWriteAllBytes(String path, Byte[] bytes, Boolean checkHost)
   at Microsoft.Xrm.Tooling.Connector.CrmServiceClientTokenCache.AfterAccessNotification(TokenCacheNotificationArgs args)
Stack Trace	: Not Provided

That folder does seem to exist in the specified location, it contains an "oauth-cache.txt" file.

TheBrandt avatar Oct 01 '24 13:10 TheBrandt

+1 lots of issues where it re-authenticates on every action of a plugin until it locks me out of my account from too many requests.

On the latest update, downloading the older 2023 update solves the issues.

RainCityAndrew avatar Oct 01 '24 18:10 RainCityAndrew

Downloaded the XrmToolbox from the website, and connected to an environment. It again asks for credentials, and starts flashing. Sometimes it asks credentials again after a while, or says it can't login (I guess the authentication is being blocked because of all the attempts).

https://streamable.com/5lhvtv

yes, the same error

marcesepu avatar Oct 03 '24 04:10 marcesepu

I am experiencing the same issue. Currently I am experiencing it when using Data migration tool. Sign-in keeps popping up until it finally requires my intervention clicking Next and entering the password.

Djitea1 avatar Oct 25 '24 22:10 Djitea1

I am experiencing the same issue when using Data migration plugin. Sign-in popups keep popping up until it finally requires my intervention clicking Next and entering the password. But it fails, too many authentication requestss. Using version 1.2024.9.69.

When rolling back to v1.2023.10.67, issue is not met.

guillaumeDMSFT avatar Oct 26 '24 14:10 guillaumeDMSFT

Can you precise which kind of authentication method you are using? It seems to me that it occurs only with Microsoft Login Control method

MscrmTools avatar Oct 29 '24 12:10 MscrmTools

That's correct. Microsoft Login Method.

guillaumeDMSFT avatar Oct 29 '24 13:10 guillaumeDMSFT

This is the most complicated for me since I don't handle how it works, how it caches credentials, etc. As soon as you open Microsoft Login Control, my code is almost not involved anymore

MscrmTools avatar Oct 29 '24 14:10 MscrmTools

Thing is with the previous build there are no issues. I'm using 1.2023.12.68 atm and it works like a charm, so I would assume something changed between this version and the next one?

Edit: I have reviewed all changes but nothing pops up, except for some nuget updates https://github.com/MscrmTools/XrmToolBox/compare/v1.2023.12.68...v1.2024.9.69

chironh avatar Oct 29 '24 15:10 chironh

Yes, the version of Microsoft control changed. But as far as I can tell, nothing in my code has changed that could lead to this behavior

MscrmTools avatar Oct 29 '24 16:10 MscrmTools

Is there any new information or a work around for this issue? I'm still encountering the same problem, unfortunately.

Slowylowy avatar Nov 25 '24 10:11 Slowylowy

I am experiencing the exact same problem.

Using v1.2024.9.69

XMRToolBox connects fine to the environment. I am trying run Model-Apps Copier, which I use a LO, and it is popping up a login for every step and it is not accepting my correct username/pw.

Image

mhammons avatar Apr 24 '25 21:04 mhammons