C
Coder.com•2y ago
Scott

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
Scott
Scott•2y ago
I've set up OIDC, so I'm thinking that might have something to do with it. Just not certain where to look.
thy
thy•2y ago
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?
Scott
Scott•2y ago
I get this error.
Scott
Scott•2y ago
No description
Scott
Scott•2y ago
The coder-logout second level domain doesn't exist.
thy
thy•2y ago
hmm, do you have workspace apps setup and does it have TLS?
Scott
Scott•2y ago
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.
thy
thy•2y ago
is --wildcard-access-url or CODER_WILDCARD_ACCESS_URL set in your deployment?
Scott
Scott•2y ago
@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. 🙂
Codercord
Codercord•2y ago
Marked the thread as resolved.
thy
thy•2y ago
perfect! glad to hear
Want results from more Discord servers?
Add your server