--- display_name: JFrog (OAuth) description: Install the JF CLI and authenticate with Artifactory using OAuth. icon: ../.icons/jfrog.svg maintainer_github: coder partner_github: jfrog verified: true tags: [integration] --- # JFrog Install the JF CLI and authenticate package managers with Artifactory using OAuth configured via Coder [`external-auth`](https://docs.coder.com/docs/admin/external-auth/) feature. ![JFrog OAuth](../.images/jfrog-oauth.png) ```hcl module "jfrog" { source = "https://registry.coder.com/modules/jfrog" agent_id = coder_agent.example.id jfrog_url = "https://YYYY.jfrog.io" auth_method = "oauth" username_field = "username" # If you are using GitHub to login to both Coder and Artifactory, use username_field = "username" package_managers = { "npm": "npm", "go": "go", "pypi": "pypi" } } ``` ## Prerequisites - Coder [`external-auth`](https://docs.coder.com/docs/admin/external-auth/) configured with Artifactory. This requires a custom integration in Artifactory with **Callback URL** set to `https:///external-auth/jfrog/callback`.