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”
Solution:Jump to 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.
5 Replies
<#1361730451126882495>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Hi,
did you added the integration in JFrog too?
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
Ahhh never mind I found the issue, in the jfrog integration config the callback url was referencing our prod instance not staging. Silly me.
Glad to know you found it.
Thanks