Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit 382933a

Browse files
authored
chore(jfrog-oauth): update JFrog OAuth module README (#114)
1 parent f8faea1 commit 382933a

File tree

2 files changed

+51
-2
lines changed

2 files changed

+51
-2
lines changed

jfrog-oauth/README.md

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ tags: [integration, jfrog]
1212

1313
Install the JF CLI and authenticate package managers with Artifactory using OAuth configured via the Coder `external-auth` feature.
1414

15-
![JFrog OAuth](../.images/jfrog-oauth.png)
15+
<p align="center">
16+
<img src='../.images/jfrog-oauth.png' alt="JFrog OAuth" width='600'>
17+
</p>
1618

1719
```hcl
1820
module "jfrog" {
@@ -29,9 +31,53 @@ module "jfrog" {
2931
}
3032
```
3133

34+
> Note
35+
> This module does not install `npm`, `go`, `pip`, etc but only configure them. You need to handle the installation of these tools yourself.
36+
3237
## Prerequisites
3338

34-
- Coder [`external-auth`](https://coder.com/docs/v2/latest/admin/external-auth) configured with Artifactory. This requires a [custom integration](https://jfrog.com/help/r/jfrog-installation-setup-documentation/enable-new-integrations) in Artifactory with **Callback URL** set to `https://<your-coder-url>/external-auth/jfrog/callback`.
39+
Coder [`external-auth`](https://coder.com/docs/v2/latest/admin/external-auth) configured with Artifactory. This requires a [custom integration](https://jfrog.com/help/r/jfrog-installation-setup-documentation/enable-new-integrations) in Artifactory with **Callback URL** set to `https://<your-coder-url>/external-auth/jfrog/callback`.
40+
41+
To set this up,
42+
1 . Modify your `values.yaml` for JFrog Artifactory to add,
43+
44+
```yaml
45+
artifactory:
46+
enabled: true
47+
frontend:
48+
extraEnvironmentVariables:
49+
- name: JF_FRONTEND_FEATURETOGGLER_ACCESSINTEGRATION
50+
value: "true"
51+
access:
52+
accessConfig:
53+
integrations-enabled: true
54+
integration-templates:
55+
- id: "1"
56+
name: "CODER"
57+
redirect-uri: "https://CODER_URL/external-auth/jfrog/callback"
58+
scope: "applied-permissions/user"
59+
```
60+
61+
> Note
62+
> Replace `CODER_URL` with your Coder deployment URL, e.g., <coder.example.com>
63+
64+
2. Add a new [external authetication](https://coder.com/docs/v2/latest/admin/external-auth) to Coder by setting these env variables,
65+
66+
```env
67+
# JFrog Artifactory External Auth
68+
CODER_EXTERNAL_AUTH_1_ID="jfrog"
69+
CODER_EXTERNAL_AUTH_1_TYPE="jfrog"
70+
CODER_EXTERNAL_AUTH_1_CLIENT_ID="YYYYYYYYYYYYYYY"
71+
CODER_EXTERNAL_AUTH_1_CLIENT_SECRET="XXXXXXXXXXXXXXXXXXX"
72+
CODER_EXTERNAL_AUTH_1_DISPLAY_NAME="JFrog Artifactory"
73+
CODER_EXTERNAL_AUTH_1_DISPLAY_ICON="/icon/jfrog.svg"
74+
CODER_EXTERNAL_AUTH_1_AUTH_URL="https://JFROG_URL/ui/authorization"
75+
CODER_EXTERNAL_AUTH_1_TOKEN_URL="https://JFROG_URL/access/api/v1/integrations/YYYYYYYYYYYYYYY/token"
76+
CODER_EXTERNAL_AUTH_1_SCOPES="applied-permissions/user"
77+
```
78+
79+
> Note
80+
> Replace `JFROG_URL` with your JFrog Artifactory base URL, e.g., <artifactory.example.com>
3581

3682
## Examples
3783

jfrog-token/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ variable "artifactory_access_token" {
3535
}
3636
```
3737

38+
> Note
39+
> This module does not install `npm`, `go`, `pip`, etc but only configure them. You need to handle the installation of these tools yourself.
40+
3841
![JFrog](../.images/jfrog.png)
3942

4043
## Examples

0 commit comments

Comments
 (0)