logout ends up on sub-sub-domain
When I log out of coder, it ends up going to a URL that looks like this:
https://coder-logout.mysubdomain.mydomain.io/api/logout?redirect_uri=https%3A%2F%2Fcode.mydomain.io%2Flogin
The
coder-logout
sub-sub-domain isn't necessary, is it? Any way to stop this?11 Replies
I've set up OIDC, so I'm thinking that might have something to do with it.
Just not certain where to look.
Coder uses two different cookies, one for the main site and one for workspace apps. During the logout it redirects you to your workspace app subdomain so it can clear the cookie
Are you having problems with the redirect?
I get this error.
The
coder-logout
second level domain doesn't exist.hmm, do you have workspace apps setup and does it have TLS?
When you say "workspace apps", do you mean a workspace? If yes, then yes, I have one workspace created currently.
I'm also working with Coder inside a k8s cluster.
I deleted the workspace. I still get the error.
I'm going to see if I can get a wildcard TLS cert set up for second level subdomains for the subdomain I'm using to route to my Coder install. See if that helps.
is
--wildcard-access-url
or CODER_WILDCARD_ACCESS_URL
set in your deployment?@colin (rust enthusiast) - Yes, it is. I had thought at the time, that my wildcard cert would cover second level subdomains. I know this isn't true now.
I removed the
CODER_WILDCARD_ACCESS_URL
and now logging out works. 🙂Marked the thread as resolved.
perfect! glad to hear