Skip to content

Commit c55418a

Browse files
committed
Update README.md
1 parent 5f391fc commit c55418a

File tree

1 file changed

+23
-17
lines changed

1 file changed

+23
-17
lines changed

README.md

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,10 @@ Setting up OpenID Connect has 3 separate parts:
274274
- Configuring Identity Mappings with Claim rules, matching to Projects & Service Connections.
275275
- Configuring Service Connections as OpenID Connect in the Projects in your Azure Devops Instance.
276276

277+
> [!IMPORTANT]
278+
> To use OIDC authentication, make sure you're using **JFrog CLI version 2.75.0 or later**
279+
> and **JFrog Azure DevOps Extension version 2.11.0 or later**.
280+
277281
Follow the guides below to configure each part.
278282

279283
<details>
@@ -385,29 +389,31 @@ This requires you to fill in the following inputs:
385389
| Description (optional) | A short of the purpose of this ServiceConnection |
386390

387391

388-
> **Tip**: When using JFrog CLI version `2.75.0` or later, the extension automatically exports the authenticated user and access token
392+
> [!TIP]
393+
> When using JFrog CLI version `2.75.0` or later, the extension automatically exports the authenticated user and access token
389394
> as step outputs named `oidc_user` and `oidc_token`. These outputs can be used in later steps (e.g., for Docker login, Helm registry, or custom scripts).
390395
>
396+
> If you override the CLI version in your pipeline and use an older version, these outputs may not be available.
397+
>
391398
> Example usage in a later step:
392399
>
393-
```yaml
394-
steps:
395-
- task: JfrogCliV2@1
396-
name: jfStep
397-
inputs:
398-
jfrogPlatformConnection: 'azure-oidc'
399-
command: 'jf rt ping'
400-
401-
- task: PowerShell@2
402-
inputs:
403-
targetType: 'inline'
404-
script: |
405-
echo "OIDC Username (from output): $(jfStep.oidc_user)"
406-
echo "OIDC Token (from env): $env:oidc_token"
407-
displayName: 'Use OIDC Output Variables'
400+
> ```yaml
401+
> steps:
402+
> - task: JfrogCliV2@1
403+
> name: jfStep
404+
> inputs:
405+
> jfrogPlatformConnection: 'azure-oidc'
406+
> command: 'jf rt ping'
407+
>
408+
> - task: PowerShell@2
409+
> inputs:
410+
> targetType: 'inline'
411+
> script: |
412+
> echo "OIDC Username (from output): $(jfStep.oidc_user)"
413+
> echo "OIDC Token (from env): $env:oidc_token"
414+
> displayName: 'Use OIDC Output Variables'
408415
> ```
409416
410-
411417
A sample configuration would look like this:
412418
413419
![oidc-service-connection.png](images/oidc-service-connection.png)

0 commit comments

Comments
 (0)