C
Coder.com•3mo ago
Phet(Dam)

what url callback in external auth ?

i already create my template with external auth with self-hosted gitea to clone my code , and i create clinet_id with callback url with /login/oauth/authorize , after i login in gitea url it still on the same page and my template still disabled i dont have any idea with callback is ? should i need to redirect to my workspace url or something else ?
10 Replies
Codercord
Codercord•3mo ago
<#1285554502572834960>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Phet(Dam)
Phet(Dam)OP•3mo ago
this iamge is show the page is still same and i cannot create workspace
No description
Fl1nt
Fl1nt•3mo ago
Currently I use: <coder.company.org>/external-auth/gitea/callback where coder.company.org is replaced with my own root url.
JustATempest
JustATempest•3mo ago
I believe you can just use your domain. The integration automatically changed to the correct URL for github.
Fl1nt
Fl1nt•3mo ago
He's using gitea 😉 Technically, we could all not have to enter anything as gitea/github/and al, all provide a oauth2 discovery endpoint.
Phet(Dam)
Phet(Dam)OP•3mo ago
thank you, i already change to my own root url but i am still stuck on Gitea page after i loggin on Gitea, i m not sure it is working correctly or i miss something 🥹
Fl1nt
Fl1nt•3mo ago
Can you share your external auth env variables (except id and secrets) and a screenshot of the gitea application you’ve set?
Phet(Dam)
Phet(Dam)OP•3mo ago
Hi , it work now, i just change CODER_EXTERNAL_AUTH_0_AUTH_URL in my k8s , thank you
Phorcys
Phorcys•2mo ago
great news @Phet(Dam)! closing the issue :)
Codercord
Codercord•2mo ago
@Phorcys closed the thread.
Want results from more Discord servers?
Add your server