Closed bilalbokharee closed 1 year ago
First, check the validity of the token through the user interface: press "Sign in", type your username and token instead of password (simple authorization, no SSO).
This was a false positive as the login works from UI using token.
I have only 2 default realms. I created the token from NuGet API Key menu as described in the README. I use this token to push some artifacts (jar) to maven hosted repository. I have not changed any configuration for thi. I get this error when trying to push artifacts from where the command is executed:
Exception in thread "main" java.util.concurrent.ExecutionException: java.lang.RuntimeException: BASIC realm="Sonatype Nexus Repository Manager"
and this in nexus.log:
574 org.sonatype.nexus.security.authc.NexusAuthenticationException: Authentication token of type [class org.apache.shiro.authc.UsernamePasswordToken] could not be authenticated by any configured realms. Please ensure that at least one realm can authenticate these tokens.