Currently experimenting with various stack setup variations,
i do docker on CentOS with postgreSQL,
installed via script derived from @htdvisser s great bootstrap script (thanks for sharing that again!),
and shared here
In short, everything works fine, console and cli, tokens, oauth -
with one small nuisance that i cant figure out:
When logging out, logout works,
however the redirect fails with browser response:
https://mydomain.com/oauth/logout?access_token_id=&post_logout_redirect_uri=%2Fconsole
The page isn’t redirecting properly
An error occurred during a connection to <mydomain.com>.
This problem can sometimes be caused by disabling or refusing to accept cookies.
The browser debug console offers two hints:
Some cookies are misusing the recommended “SameSite“ attribute.
Cookie “_console_auth” has been rejected because it is already expired.
The latter one is probably the cause of the problem (?).
Logout behaviour seems a bit tricky in general:
In discussion on slack, the advice has been given (by @kschiffer) to try
ttn-lw-cli clients update console --logout-redirect-uri “https://mydomain.com/console” --logout-redirect-uri “/console”
however that yields a result
unknown flag: --oauth-logout-redirect-uri
and no such configuration setting is documented in
https://thethingsstack.io/reference/configuration/
so, my question is
where do i look to fix error above,
and where do i look for general logout redirects?
cheers,
sebastian