Skip to content

Commit

Permalink
SSO configuration for web login (#348)
Browse files Browse the repository at this point in the history
* SSO configuration for web login

* Sso* -> SSO*

* update api
  • Loading branch information
alexeykazakov authored Jan 3, 2024
1 parent ac94d7a commit 637ca99
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/codeready-toolchain/toolchain-common
go 1.20

require (
github.com/codeready-toolchain/api v0.0.0-20231129193441-f6c9b7feee01
github.com/codeready-toolchain/api v0.0.0-20240103194050-d5c7803671c1
github.com/go-logr/logr v1.2.3
github.com/gofrs/uuid v3.3.0+incompatible
github.com/golang-jwt/jwt v3.2.2+incompatible
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ github.com/cncf/xds/go v0.0.0-20210312221358-fbca930ec8ed/go.mod h1:eXthEFrGJvWH
github.com/cockroachdb/datadriven v0.0.0-20200714090401-bf6692d28da5/go.mod h1:h6jFvWxBdQXxjopDMZyH2UVceIRfR84bdzbkoKrsWNo=
github.com/cockroachdb/errors v1.2.4/go.mod h1:rQD95gz6FARkaKkQXUksEje/d9a6wBJoCr5oaCLELYA=
github.com/cockroachdb/logtags v0.0.0-20190617123548-eb05cc24525f/go.mod h1:i/u985jwjWRlyHXQbwatDASoW0RMlZ/3i9yJHE2xLkI=
github.com/codeready-toolchain/api v0.0.0-20231129193441-f6c9b7feee01 h1:Pl8UIl/m2/n9C4pXzaR6A3vxRFX+4QRw90x8RDhCdXw=
github.com/codeready-toolchain/api v0.0.0-20231129193441-f6c9b7feee01/go.mod h1:FO7kgXH1x1LqkF327D5a36u0WIrwjVCbeijPkzgwaZc=
github.com/codeready-toolchain/api v0.0.0-20240103194050-d5c7803671c1 h1:R+5BmQrz9hBfj6QFL+ojExD6CiZ5EuuVUbeb3pqxdds=
github.com/codeready-toolchain/api v0.0.0-20240103194050-d5c7803671c1/go.mod h1:FO7kgXH1x1LqkF327D5a36u0WIrwjVCbeijPkzgwaZc=
github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk=
github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE=
github.com/coreos/etcd v3.3.13+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE=
Expand Down
14 changes: 14 additions & 0 deletions pkg/test/config/toolchainconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,20 @@ func (o RegistrationServiceAuthOption) AuthClientPublicKeysURL(value string) Reg
return o.parent
}

func (o RegistrationServiceAuthOption) SSOBaseURL(value string) RegistrationServiceOption {
o.addFunction(func(config *toolchainv1alpha1.ToolchainConfig) {
config.Spec.Host.RegistrationService.Auth.SSOBaseURL = &value
})
return o.parent
}

func (o RegistrationServiceAuthOption) SSORealm(value string) RegistrationServiceOption {
o.addFunction(func(config *toolchainv1alpha1.ToolchainConfig) {
config.Spec.Host.RegistrationService.Auth.SSORealm = &value
})
return o.parent
}

type RegistrationServiceVerificationOption struct {
*ToolchainConfigOptionImpl
parent RegistrationServiceOption
Expand Down

0 comments on commit 637ca99

Please sign in to comment.