A browser opens, I authenticate, then it tells me to close the browser.
When I debug my solution, I get the following error:
System.ArgumentNullException: Value cannot be null. (Parameter 'Options property cannot be empty: ClientName')
at Amazon.Runtime.Credentials.Internal.SSOTokenManager.GenerateNewTokenAsync(SSOTokenManagerGetTokenOptions options, CancellationToken cancellationToken)
at Amazon.Runtime.Credentials.Internal.SSOTokenManager.GetTokenAsync(SSOTokenManagerGetTokenOptions options, CancellationToken cancellationToken)
at Amazon.Runtime.SSOAWSCredentials.GetSsoCredentialsAsync(ICoreAmazonSSO sso)
at Amazon.Runtime.SSOAWSCredentials.GenerateNewCredentialsAsync()
at Amazon.Runtime.RefreshingAWSCredentials.GetCredentialsAsync()
at Amazon.Runtime.Internal.CredentialsRetriever.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.RetryHandler.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.RetryHandler.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.CallbackHandler.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.CallbackHandler.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.ErrorCallbackHandler.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.MetricsHandler.InvokeAsync[T](IExecutionContext executionContext)
at Core.Features.Login.LoginHandler.Handle(LoginCommand request, CancellationToken cancellationToken) in /home/j/code/gm/app/Core/Features/Login/LoginController.cs:line 111
Google tells me that error is due to AWS Config not loading.
When I view the logs for Rider, I see:
56773-2024-05-21 21:04:31,013 [ 17046] INFO - migration.software.aws.toolkits.jetbrains.core.credentials.ToolkitAuthManager - Token provider NOT_AUTHENTICATED, requesting login
56774-2024-05-21 21:04:31,017 [ 17050] WARN - software.aws.toolkits.jetbrains.core.credentials.pinning.CodeCatalystConnection - Rejecting sso-session:gm-sso since it's missing a required scope
56775-2024-05-21 21:04:31,017 [ 17050] WARN - software.aws.toolkits.jetbrains.core.credentials.pinning.CodeCatalystConnection - Rejecting AwsConnectionManagerConnection since it's not a bearer connection
56776:2024-05-21 21:04:31,021 [ 17054] WARN - software.aws.toolkits.jetbrains.core.credentials.AwsConnectionManager - Failed to switch to profile 'Profile:gm-sandbox'
56777-java.util.concurrent.ExecutionException: software.aws.toolkits.jetbrains.core.credentials.sso.bearer.NoTokenInitializedException: Token refresh started before session initialized
Expected behavior
I expect the AWS config to load and things to work.
Your Environment
OS: Arch Linux
JetBrains product: Rider
JetBrains product version: JetBrains Rider 2024.1.2 Build #RD-241.15989.179, built on May 6, 2024
Describe the bug
My
~/.aws/config
looks like this:To reproduce
I open JetBrains Rider, and authenticate here:
A browser opens, I authenticate, then it tells me to close the browser.
When I debug my solution, I get the following error:
Google tells me that error is due to AWS Config not loading.
When I view the logs for Rider, I see:
Expected behavior
I expect the AWS config to load and things to work.
Your Environment
Additional context
When I run my solution in the terminal, things work fine: