Skip to content

Commit

Permalink
feat: use name as username claim and add more users to dex on minikube (
Browse files Browse the repository at this point in the history
#1820)

Signed-off-by: Michal Vala <mvala@redhat.com>
  • Loading branch information
sparkoo authored Nov 12, 2021
1 parent 393086a commit c5da379
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
20 changes: 20 additions & 0 deletions resources/dex/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,23 @@ data:
hash: "{{DEX_PASSWORD_HASH}}"
username: "admin"
userID: "08a8684b-db88-4b73-90a9-3cd1661f5466"
- email: "user1@che"
hash: "$2a$10$2b2cU8CPhOTaGrs1HRQuAueS7JTT5ZHsHSzYiFPm1leZck7Mc8T4W"
username: "user1"
userID: "1"
- email: "user2@che"
hash: "$2a$10$2b2cU8CPhOTaGrs1HRQuAueS7JTT5ZHsHSzYiFPm1leZck7Mc8T4W"
username: "user2"
userID: "2"
- email: "user3@che"
hash: "$2a$10$2b2cU8CPhOTaGrs1HRQuAueS7JTT5ZHsHSzYiFPm1leZck7Mc8T4W"
username: "user3"
userID: "3"
- email: "user4@che"
hash: "$2a$10$2b2cU8CPhOTaGrs1HRQuAueS7JTT5ZHsHSzYiFPm1leZck7Mc8T4W"
username: "user4"
userID: "4"
- email: "user5@che"
hash: "$2a$10$2b2cU8CPhOTaGrs1HRQuAueS7JTT5ZHsHSzYiFPm1leZck7Mc8T4W"
username: "user5"
userID: "5"
3 changes: 2 additions & 1 deletion src/tasks/platforms/minikube.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ export class MinikubeTasks {
args.push('--extra-config=apiserver.oidc-ca-file=/etc/ca-certificates/dex-ca.crt')
}

args.push('--extra-config=apiserver.oidc-username-claim=email')
args.push('--extra-config=apiserver.oidc-username-claim=name')
args.push('--extra-config=apiserver.oidc-username-prefix=-')
args.push('--extra-config=apiserver.oidc-groups-claim=groups')
args.push('start')

Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2634,7 +2634,7 @@ ecc-jsbn@~0.1.1:

"eclipse-che-operator@git://github.com/eclipse-che/che-operator#main":
version "0.0.0"
resolved "git://github.com/eclipse-che/che-operator#cb17fce445ee5a501eb9a607008fc83d5bde8b79"
resolved "git://github.com/eclipse-che/che-operator#79f1c517e98e536e10d6fd1b884d1ab0e5e2265f"

editorconfig@^0.15.0:
version "0.15.3"
Expand Down

0 comments on commit c5da379

Please sign in to comment.