Skip to content

Commit

Permalink
Documentation: Fix typo and add specification in openshift connector …
Browse files Browse the repository at this point in the history
…doc (dexidp#1687)

Serviceaccount annotation in oc patch instruction was malformed. Format
specification of Client ID for a Service Account was missing.
  • Loading branch information
Mattias Sjöström authored and elffjs committed Jun 27, 2022
1 parent e802e9a commit 7b015b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Documentation/connectors/openshift.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ OpenShift Service Accounts can be used as a constrained form of OAuth client. Ma
Patch the Service Account to add an annotation for location of the Redirect URI

```
oc patch serviceaccount <name> --type='json' -p='[{"op": "add", "path": "/metadata/annotations/serviceaccounts.openshift.io~1oauth-redirecturi.dex", "value":"https:///<dex_url>/callback"}]'
oc patch serviceaccount <name> --type='json' -p='[{"op": "add", "path": "/metadata/annotations/serviceaccounts.openshift.io/oauth-redirecturi.dex", "value":"https:///<dex_url>/callback"}]'
```

The Client ID for a Service Account representing an OAuth Client takes the form `
The Client ID for a Service Account representing an OAuth Client takes the form `system:serviceaccount:<namespace>:<service_account_name>`

The Client Secret for a Service Account representing an OAuth Client is the long lived OAuth Token that is configued for the Service Account. Execute the following command to retrieve the OAuth Token.

Expand Down

0 comments on commit 7b015b2

Please sign in to comment.