Coder.comC
Coder.com10mo ago
8 replies
Conor

jfrog oauth not working

Hey
I am trying to setup an external auth config for artifactory. I’ve been following the docs here. https://coder.com/docs/admin/integrations/jfrog-artifactory

I have set the following for my coder deployment

Auth
CODER_EXTERNAL_AUTH_1_ID="jfrog"
CODER_EXTERNAL_AUTH_1_TYPE="jfrog"
CODER_EXTERNAL_AUTH_1_CLIENT_ID="YYYYYYYYYYYYYYY"
CODER_EXTERNAL_AUTH_1_CLIENT_SECRET="XXXXXXXXXXXXXXXXXXX"
CODER_EXTERNAL_AUTH_1_DISPLAY_NAME="JFrog Artifactory"
CODER_EXTERNAL_AUTH_1_DISPLAY_ICON="/icon/jfrog.svg"
CODER_EXTERNAL_AUTH_1_AUTH_URL="https://JFROG_URL/ui/authorization"
CODER_EXTERNAL_AUTH_1_SCOPES="applied-permissions/user"

I can login to jfrog via the auth flow. When I allow the authorisation of jfrog it goes to the callback url (https://coder-url/external-auth/jfrog/callback?code=xxxx&state=xxxxx) but I am then met with a coder page saying “404 this page could not be found
Integrate Coder with JFrog Artifactory
JFrog Artifactory | Coder Docs
Preview image
Solution
Ahhh never mind I found the issue, in the jfrog integration config the callback url was referencing our prod instance not staging. Silly me.
Was this page helpful?