Can't login: The authorization request was rejected, see logs for more information.

I can't login to JetBrains Toolbox. Whenever I try to login I get an error that says “The authorization request failed. Please see logs.”

When I look at the logs, I see the following:

3.0.1.59888 13985 2025-10-28 06:26:12.642 INFO  AWT-EventQueue-0     JetBrainsAccountProviderImpl   Creating session ID 'aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeeee'
3.0.1.59888 13985 2025-10-28 06:26:12.642 INFO  Dispatcher-worker-14 ProcessesRunnerFork            Executing '/usr/bin/xdg-open' with [https://account.jetbrains.com/oauth/login?client_id=toolbox&response_type=code&scope=offline_access%20openid%20r_assets%20r_ide_auth&redirect_uri=jetbrains://toolbox/jba/auth&state=some_numbers_here&code_challenge=another_hex_here&code_challenge_method=S256]
3.0.1.59888 13985 2025-10-28 06:26:12.644 INFO  Dispatcher-worker-14 ProcessesRunnerFork            Process '/usr/bin/xdg-open' with [https://account.jetbrains.com/oauth/login?client_id=toolbox&response_type=code&scope=offline_access%20openid%20r_assets%20r_ide_auth&redirect_uri=jetbrains://toolbox/jba/auth&state=another_hex_here&code_challenge=another_hex_here&code_challenge_method=S256] successfully started with PID: 20723
3.0.1.59888 13985 2025-10-28 06:26:14.976 INFO  Dispatcher-worker-20 MainInstanceImpl               I #122 > Handling message from the secondary instance, pid: 20814
3.0.1.59888 13985 2025-10-28 06:26:14.976 INFO  Dispatcher-worker-20 MainInstanceImpl               I #122 > secondary instance CLI request, pid: 20814
3.0.1.59888 13985 2025-10-28 06:26:14.976 INFO  Dispatcher-worker-20 ToolboxApplicationImpl         I #122 > Message from a second instance: /home/my_username_here/Downloads/jetbrains-toolbox-3.0.1.59888/bin/jetbrains-toolbox --command-origin=APP jetbrains://toolbox/jba/auth?code=another_hex_here&state=another_hex_here
3.0.1.59888 13985 2025-10-28 06:26:14.976 WARN  Dispatcher-worker-20 MainInstanceImpl               I #122 > '0' '3
3.0.1.59888 13985 2025-10-28 06:26:14.976 INFO  Dispatcher-worker-20 MainInstanceImpl               I #122 > written 3 bytes
3.0.1.59888 13985 2025-10-28 06:26:14.976 INFO  Dispatcher-worker-20 MainInstanceImpl               I #122 > Handled connection from the secondary instance, pid: 20814
3.0.1.59888 13985 2025-10-28 06:26:17.489 INFO  Dispatcher-worker-10 MainInstanceImpl               I #123 > Handling message from the secondary instance, pid: 20848
3.0.1.59888 13985 2025-10-28 06:26:17.489 INFO  Dispatcher-worker-10 MainInstanceImpl               I #123 > secondary instance CLI request, pid: 20848
3.0.1.59888 13985 2025-10-28 06:26:17.489 INFO  Dispatcher-worker-10 ToolboxApplicationImpl         I #123 > Message from a second instance: /home/my_username_here/Downloads/jetbrains-toolbox-3.0.1.59888/bin/jetbrains-toolbox --command-origin=APP jetbrains://toolbox/jba/auth?code=another_hex_here&state=another_hex_here
3.0.1.59888 13985 2025-10-28 06:26:17.489 WARN  Dispatcher-worker-10 MainInstanceImpl               I #123 > '0' '3
3.0.1.59888 13985 2025-10-28 06:26:17.489 INFO  Dispatcher-worker-10 MainInstanceImpl               I #123 > written 3 bytes
3.0.1.59888 13985 2025-10-28 06:26:17.489 INFO  Dispatcher-worker-10 MainInstanceImpl               I #123 > Handled connection from the secondary instance, pid: 20848
3.0.1.59888 13985 2025-10-28 06:26:17.572 WARN  Dispatcher-worker-12 DownloaderKt                   Bad Request: https://oauth.account.jetbrains.com/oauth2/token Headers:
3.0.1.59888 13985 2025-10-28 06:26:17.572 INFO  Dispatcher-worker-12 NotificationsLinux             Show notification 'The authorization request was rejected, see logs for more details' (inApp=false)
3.0.1.59888 13985 2025-10-28 06:26:17.598 WARN  Dispatcher-worker-12 AccountProviderImpl            The authorization request to https://account.jetbrains.com/oauth/login was rejected: com.jetbrains.toolbox.accounts.AuthorizationRejectionException: Failed to refresh OAuth2 token: Bad Request: {"error":"invalid_grant","error_code":403,"error_description":"Unknown authorization code","error_uri":"https://www.jetbrains.com/help/youtrack/devportal/OAuth-2.0-Errors.html#token.invalid_grant"}
	at com.jetbrains.toolbox.accounts.oauth.OAuth2ClientImpl.makeHttpRequest(OAuth2ClientImpl.kt:123)
	at com.jetbrains.toolbox.accounts.oauth.OAuth2ClientImpl.access$makeHttpRequest(OAuth2ClientImpl.kt:21)
	at com.jetbrains.toolbox.accounts.oauth.OAuth2ClientImpl$makeHttpRequest$1.invokeSuspend(OAuth2ClientImpl.kt)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:34)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
	at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:124)
	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:586)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:820)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:717)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:704)
3.0.1.59888 13985 2025-10-28 06:26:17.598 INFO  Dispatcher-worker-12 JetBrainsProtocolHandler       Handled URL: jetbrains://toolbox/...
3.0.1.59888 13985 2025-10-28 06:26:18.593 INFO  tDispatcher-worker-9 ConcurrentDownloadSession      Concurrent feed download started, begin with 1 URLs
3.0.1.59888 13985 2025-10-28 06:26:18.594 INFO  Dispatcher-worker-20 ConcurrentDownloadSession      Refresh > Feed refresh (PRODUCTION, offline_mode: false) > Concurrent feed download started, begin with 9 URLs
3.0.1.59888 13985 2025-10-28 06:26:18.667 INFO  Dispatcher-worker-25 RemoteApplications             Refresh > Feed refresh (PRODUCTION, offline_mode: false) > Feed update finished (fromTbe=false), found: 528 items, 2926 patches
3.0.1.59888 13985 2025-10-28 06:26:18.668 INFO  Dispatcher-worker-25 PluginManagerImpl              Refresh > Refreshing marketplace plugins: LOGGED_IN

 

 

I tried the manual method. I click copy link, then I paste the link on my browser. It forwards me to https://account.jetbrains.com/login?authSessionId=another_hex_here&product=Toolbox&reauthenticate=true The problem is that, this is the same page as above. There is no authorization code for me to copy from this page and paste into the toolbox.

So, I can't connect the toolbox to jetbrains site to download paid versions of the apps. 

Let me know if you need something else from me. 

1
1 comment

Hi SomethingNameHere , kindly let me know if the issue is still relevant.

0

Please sign in to leave a comment.