Not able to login on github (not authorized) [message #1868877] |
Wed, 24 July 2024 05:41  |
Eclipse User |
|
|
|
I'm not able to configure eclipse 2024-06 with java 21 to connect on github.
I configured a token on github (it works fine on another PC) but when I try to push or pull using my login and my token (I also tried to create a new token) i receive error "not authorized".
this are the stack trace of errors:
eclipse.buildId=4.32.0.20240606-1231
java.version=21
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=it_IT
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product
org.eclipse.egit.core
Error
Tue Jul 23 20:55:11 CEST 2024
An exception occurred during push on URI https://github.com/xxxxx/xxxxx.git: https://github.com/xxxxx/xxxxx.git: not authorized
org.eclipse.jgit.errors.TransportException: https://github.com/xxxxx/xxxxx.git: not authorized
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:694)
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:636)
at org.eclipse.jgit.transport.TransportHttp.openPush(TransportHttp.java:540)
at org.eclipse.jgit.transport.PushProcess.execute(PushProcess.java:140)
at org.eclipse.jgit.transport.Transport.push(Transport.java:1555)
at org.eclipse.egit.core.op.PushOperation.run(PushOperation.java:269)
at org.eclipse.egit.ui.internal.push.PushJob.performJob(PushJob.java:86)
at org.eclipse.egit.ui.internal.jobs.RepositoryJob.run(RepositoryJob.java:59)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
and also this one:
eclipse.buildId=4.32.0.20240606-1231
java.version=21
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=it_IT
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product
org.eclipse.ui
Error
Tue Jul 23 20:55:11 CEST 2024
Unhandled event loop exception
com.sun.jna.platform.win32.Win32Exception: Key not valid for use in specified state.
at com.sun.jna.platform.win32.Crypt32Util.cryptUnprotectData(Crypt32Util.java:172)
at com.sun.jna.platform.win32.Crypt32Util.cryptUnprotectData(Crypt32Util.java:146)
at com.sun.jna.platform.win32.Crypt32Util.cryptUnprotectData(Crypt32Util.java:133)
at org.eclipse.equinox.internal.security.win32.WindowsPasswordProvider.windecrypt(WindowsPasswordProvider.java:41)
at org.eclipse.equinox.internal.security.win32.WindowsPasswordProvider.getPassword(WindowsPasswordProvider.java:68)
at org.eclipse.equinox.internal.security.storage.PasswordProviderModuleExt.getPassword(PasswordProviderModuleExt.java:44)
at org.eclipse.equinox.internal.security.storage.SecurePreferencesRoot.getModulePassword(SecurePreferencesRoot.java:257)
at org.eclipse.equinox.internal.security.storage.SecurePreferencesRoot.getPassword(SecurePreferencesRoot.java:217)
at org.eclipse.equinox.internal.security.storage.SecurePreferences.put(SecurePreferences.java:230)
at org.eclipse.equinox.internal.security.storage.SecurePreferencesWrapper.put(SecurePreferencesWrapper.java:128)
at org.eclipse.egit.core.internal.credentials.EGitSecureStore.putCredentials(EGitSecureStore.java:76)
at org.eclipse.egit.ui.internal.SecureStoreUtils.storeCredentials(SecureStoreUtils.java:39)
at org.eclipse.egit.ui.internal.credentials.LoginService.login(LoginService.java:39)
at org.eclipse.egit.ui.internal.credentials.EGitCredentialsUI.lambda$1(EGitCredentialsUI.java:136)
at org.eclipse.ui.internal.PendingSyncExec.run(PendingSyncExec.java:68)
at org.eclipse.ui.internal.UILockListener.doPendingWork(UILockListener.java:166)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:132)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4058)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3676)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1151)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1042)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:152)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:639)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:546)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:173)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
can someone help me to solve this issue?
thanks
Ivan
|
|
|
|
Re: Not able to login on github (not authorized) [message #1869768 is a reply to message #1868877] |
Fri, 23 August 2024 15:43  |
Eclipse User |
|
|
|
I have the same error trying to fetch/pull from GitLab: com.sun.jna.platform.win32.Win32Exception: Key not valid for use in specified state.
The error appeared on the next day when I entered the credentials for Git (I don't recall about the selected secure store option). Yesterday, when the creds were entered, everything worked fine without errors, so possibly the creds were still kept in the EGIT memory this time, but the next day the creds were tried to read from the Windows Credential Manager.
Also, the question is: how to reset these creds or authorize method and prevent creds storing in Windows Credential Manager (i.e. how to select another store or work without it).
Update: I deleted the DBeaverData\secure\secure_storage file, where GiLab creds were stored, trying to force creds to prompt again. However, the error is still present and the creds prompt didn't appear. It is unclear why EGit always tries retrieving credentials from the WindowsPasswordProvider and how to completely disable this method for EGit.
com.sun.jna.platform.win32.Win32Exception: Key not valid for use in specified state.
at com.sun.jna.platform.win32.Crypt32Util.cryptUnprotectData(Crypt32Util.java:172)
at com.sun.jna.platform.win32.Crypt32Util.cryptUnprotectData(Crypt32Util.java:146)
at com.sun.jna.platform.win32.Crypt32Util.cryptUnprotectData(Crypt32Util.java:133)
at org.eclipse.equinox.internal.security.win32.WindowsPasswordProvider.windecrypt(WindowsPasswordProvider.java:41)
at org.eclipse.equinox.internal.security.win32.WindowsPasswordProvider.getPassword(WindowsPasswordProvider.java:68)
at org.eclipse.equinox.internal.security.storage.PasswordProviderModuleExt.getPassword(PasswordProviderModuleExt.java:44)
at org.eclipse.equinox.internal.security.storage.SecurePreferencesRoot.getModulePassword(SecurePreferencesRoot.java:257)
at org.eclipse.equinox.internal.security.storage.SecurePreferencesRoot.getPassword(SecurePreferencesRoot.java:217)
at org.eclipse.equinox.internal.security.storage.SecurePreferences.get(SecurePreferences.java:269)
at org.eclipse.equinox.internal.security.storage.SecurePreferencesWrapper.get(SecurePreferencesWrapper.java:123)
at org.eclipse.egit.core.internal.credentials.EGitSecureStore.getCredentials(EGitSecureStore.java:89)
at org.eclipse.egit.core.internal.credentials.EGitCredentialsProvider.get(EGitCredentialsProvider.java:118)
at org.eclipse.jgit.transport.HttpAuthMethod.authorize(HttpAuthMethod.java:205)
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:693)
at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:466)
at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:153)
at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:105)
at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1482)
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:238)
at org.eclipse.egit.core.op.FetchOperation.run(FetchOperation.java:134)
at org.eclipse.egit.ui.internal.fetch.FetchOperationUI.execute(FetchOperationUI.java:111)
at org.eclipse.egit.ui.internal.fetch.FetchOperationUI$1.performJob(FetchOperationUI.java:137)
at org.eclipse.egit.ui.internal.jobs.RepositoryJob.run(RepositoryJob.java:59)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
[Updated on: Mon, 26 August 2024 17:38] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.08418 seconds