Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reenter creedentials in each action #1363

Open
marcesepu opened this issue Sep 26, 2024 · 16 comments
Open

reenter creedentials in each action #1363

marcesepu opened this issue Sep 26, 2024 · 16 comments

Comments

@marcesepu
Copy link

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
@MscrmTools
Copy link
Owner

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

@chironh
Copy link

chironh commented Sep 27, 2024

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
Copy link

chironh commented Sep 27, 2024

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?

@marcesepu
Copy link
Author

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

@chironh
Copy link

chironh commented Sep 27, 2024

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

@TheBrandt
Copy link

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.

@RainCityAndrew
Copy link

+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.

@marcesepu
Copy link
Author

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

@Djitea1
Copy link

Djitea1 commented Oct 25, 2024

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.

@guillaumeDMSFT
Copy link

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.

@MscrmTools
Copy link
Owner

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

@guillaumeDMSFT
Copy link

That's correct. Microsoft Login Method.

@MscrmTools
Copy link
Owner

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

@chironh
Copy link

chironh commented Oct 29, 2024

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
v1.2023.12.68...v1.2024.9.69

@MscrmTools
Copy link
Owner

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

@Slowylowy
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants