Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cd054c7

Browse files
author
Mattias Sjöström
authored
Documentation: Fix typo and add specification in openshift connector doc (dexidp#1687)
Serviceaccount annotation in oc patch instruction was malformed. Format specification of Client ID for a Service Account was missing.
1 parent 83d8853 commit cd054c7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Documentation/connectors/openshift.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ OpenShift Service Accounts can be used as a constrained form of OAuth client. Ma
2121
Patch the Service Account to add an annotation for location of the Redirect URI
2222

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

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

2929
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.
3030

0 commit comments

Comments
 (0)