a-langer / nexus-sso

Single Sign-On patch for Nexus OSS
Eclipse Public License 1.0
67 stars 16 forks source link

User Authentication Tokens not working #12

Closed bilalbokharee closed 1 year ago

bilalbokharee commented 1 year ago

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.

a-langer commented 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).

bilalbokharee commented 1 year ago

This was a false positive as the login works from UI using token.