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”
JFrog Artifactory | Coder Docs
Integrate Coder with JFrog Artifactory
From An unknown user
From An unknown user
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.
Jump to solution
5 Replies
Codercord
Codercord6d ago
<#1361730451126882495>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Atif
Atif5d ago
Hi, did you added the integration in JFrog too?
Conor
ConorOP5d ago
Yeah I did. Was able to set that up. I assume that part works fine as going through the auth flow I’m able to authenticate fine with jfrog. It’s just on the callback part where it returns to a coder page with 404
Solution
Conor
Conor5d ago
Ahhh never mind I found the issue, in the jfrog integration config the callback url was referencing our prod instance not staging. Silly me.
Atif
Atif5d ago
Glad to know you found it. Thanks

Did you find this page helpful?