Denis Arnst

Results 179 comments of Denis Arnst

Thats weird. So the issue must somewhere else. Maybe node-openid-client does something weird which specifically bothers synology. Maybe also some URL is weird. Tbh I think you must configure full...

Seems according to the logs authentication worked: Even the call to userinfo seems to have worked: > [Local IP] - - [06/Jan/2024:10:27:55 +0100] "GET /webman/sso/SSOUserInfo.cgi HTTP/1.1" 200 99 "-" "openid-client/5.6.1...

> `[2024-01-06 10:27:55.897] ERROR: [Auth] No data in openid callback - Unauthorized (Auth.js:426)` Im not really sure where that "Unauthorized" comes from. Its neither in the node-openid-client code nor in...

> Before i do that, since it would be some effort, do you think it would make sense to ask Synology too? > > I mean, i guess they just...

> They added a own user to both the Synology and Audiobookshelf and tried it themselves, however still getting the same error. They do confirm though that the Synology SSO...

> How do you enable debug logs? Ah you didnt do yet. You simply go into ABS admin interface, click on logs. And then on the drop down on the...

Ahhh okay, then the error is actually on our side. It must be a problem somewhere here: https://github.com/advplyr/audiobookshelf/blob/90f4833c9e0957f08799af15966d1909516b335e/server/Auth.js#L98 @advplyr any ideas? The Unauthorized maybe comes from this line: https://github.com/advplyr/audiobookshelf/blob/90f4833c9e0957f08799af15966d1909516b335e/server/Auth.js#L150

@Drakon74 What really weird is, in the userinfo, color information (ANSI control characters) are included: ``` DEBUG: [Auth] openid callback userinfo= { email: �[32m'[My MAIL]'�[39m, sub: �[32m'Drakon'�[39m, username: �[32m'Drakon'�[39m }...

So I indeed, on a normal instance (I rechecked) it should output something like: `"[Auth] openid callback userinfo= [object Object]"` because the response will be converted to a JSON-object. Instead...

@Drakon74 Just to make sure: When you set the log level to debug and you get the same message from above. How does the message look like from the container...