Replies: 9 comments 17 replies
-
|
Beta Was this translation helpful? Give feedback.
-
API Auths: {"loginEnabled":true,"formEnabled":true,"version":"0.23.0"} Additional information and logs:
|
Beta Was this translation helpful? Give feedback.
-
Hi, I encountered the same issue, I couldn’t manage to get basic authentication to work. I created the sha256 sum like this:
then I tried multiple values in the configuration: with or without simple quotes, with or without the final dash…
In the UI I had the message “Wrong Username or Password!”, and in the log I had this:
After I put a longer string (46 chars long) for micronaut.server.security.token.jwt.signatures.secret.generator.secret the basic auth finally worked. Additional information: the logger is configured like this:
And I use OpenJDK 19 on a Rocky Linux 9 VM. Also, I disabled the ldap part in the configuration. I haven’t test to reactivate it but I will next week. The thing is, for the token length it says: "256 bits", so I thought a 32 chars string should be enough, but it’s obviously not the case. Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
I added trace mode and I think I'm close to find a solution; it's not a problem of username/password but a problem of redirection to the target maybe as I have HTTP 303 code: INFO pGroup-1-4 org.akhq.log.access [Date: 2023-01-16T11:29:26.332803+01:00] [Duration: 5 ms] [Url: POST /login] [Status: 303] |
Beta Was this translation helpful? Give feedback.
-
I modified the first block: micronaut:
security:
enabled: true
default-group: no-roles
token:
jwt:
signatures:
secret:
generator:
secret: "testTest"
endpoints:
login:
enabled: true
path: "http://localhost:8080/ui/login"
logout:
enabled: true
path: "http://localhost:8080/ui/logout"
get-allowed: true
session:
enabled: true
login-success-target-url: "http://localhost:8080/ui"
logout-target-url: "http://localhost:8080/ui"
forbidden-target-url: "http://localhost:8080/ui/login/forbidden"
unauthorized-target-url: "http://localhost:8080/ui/login/unauthorized"
login-failure-target-url: "http://localhost:8080/ui/login/failed"**** I got this now:
|
Beta Was this translation helpful? Give feedback.
-
According to the few tests I made, the string "testTest" is too short. I saw you tried a longer string here (?), so you have obviously another issue, but still. |
Beta Was this translation helpful? Give feedback.
-
Any ideas please, still have the login issue :(
|
Beta Was this translation helpful? Give feedback.
-
Not resolved for me. anonymous user is still here. ### @version: 0.24.0
micronaut:
security:
default-group: no-roles
enabled: true
oauth2:
enabled: false
server:
ssl:
enabled: true
port: 8087
key-store:
path: file:/app/akhq/akhq-0.24.0/conf/akhq.p12
password: "mypass"
type: PKCS12 |
Beta Was this translation helpful? Give feedback.
-
Hello this is working now. @Version: 0.24.0micronaut: security: |
Beta Was this translation helpful? Give feedback.
-
Hi,
Need your help please: Login not working for me:
WARN pGroup-1-9 u.LoginFailedEventListener Login failed reason CREDENTIALS_DO_NOT_MATCH, username unknown, message Credentials Do Not Match
It seems like it does not recognize username...
My conf:
Beta Was this translation helpful? Give feedback.
All reactions