massi
(Massimo)
June 11, 2023, 5:52pm
1
Hi,
using latest snaphosts for openhab-addons
and openhab-distro
in Eclipse IDE.
When I try to login to localhost:8080 login fails like in animation below.
On logs I read:
16:57:51.504 INFO [OH-ruleengine-1 ] [mation.internal.RuleEngineImpl:1446 ] - Rule engine started. 19:05:29.851 WARN [qtp1918770618-224 ] [st.auth.internal.TokenResource:325 ] - PKCE verification failed 19:05:29.854 WARN [qtp1918770618-224 ] [st.auth.internal.TokenResource:135 ] - Token issuing failed: invalid_grant
I already tried to delete files in runtime/userdata/jsondb
and re-created admin user, but nothing changed.
Any idea?
Same for me with today snapshot and error in log during start:
2023-06-11 10:37:19.414 [WARN ] [rd.internal.AriesJaxrsServiceRuntime] - Extension CachingServiceReference {
cachedProperties={service.id=289, objectClass=[org.openhab.core.io.rest.auth.AuthFilter], osgi.jaxrs.name=null (cached), osgi.jaxrs.whiteboard.target=null (cached)}
serviceReference={org.openhab.core.io.rest.auth.AuthFilter}={service.id=289, service.bundleid=176, service.scope=bundle, osgi.jaxrs.application.select=(osgi.jaxrs.name=openhab), osgi.ds.satisfying.condition.target=(osgi.condition.id=true), component.name=org.openhab.core.io.rest.auth.AuthFilter, service.config.label=API Security, component.id=153, service.config.factory=false, osgi.jaxrs.extension=true, service.config.category=system, service.config.description.uri=system:restauth, service.pid=org.openhab.restauth}
} is not valid
laursen
(Jacob Laursen)
June 11, 2023, 6:34pm
3
It seems this could be related to:
openhab:main
← GiviMAD:websocket_common
opened 10:43AM - 21 May 23 UTC
Hi openHAB community, I would like to merge this PR which allows to register mul… tiple WebSocket handlers in to a common servlet which handles the authentication.
I have refactored the already present implementation into a separate handler (EventWebSocketHandler) that is served in the root path '/ws' so I think this is not a breaking change.
Also I have made some methods in the AuthFilter (package org.openhab.core.io.rest.auth) public so they can be reused here, so the "Trusted Network" and "Allow Basic Auth" rest api options apply also to the WebSocket and this can be accessed with the same credentials than the rest api (before the commit it allowed user tokens and basic auth but no JWT tokens).
Hope everything is in place. Best regards!
Have you also tried cleaning the cache?
Cleaning cache nothing help.
massi
(Massimo)
June 11, 2023, 9:10pm
6
I did fetch --all, rebase -i, clean install -U on openhab-distro
, but problem is still there
Build 3493 fixed the issue on my side.
1 Like
massi
(Massimo)
June 15, 2023, 12:55am
8
Same here: with a new update the problem disappeared.
system
(system)
Closed
July 26, 2023, 4:55pm
9
This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.