add tests for oidc backchannel logout

Signed-off-by: Christian Richter <crichter@owncloud.com>
This commit is contained in:
Christian Richter
2023-04-13 17:29:57 +02:00
parent 15691ae78a
commit e88a0d7bc3
10 changed files with 143 additions and 162 deletions

View File

@@ -46,7 +46,7 @@ type OIDCAuthenticator struct {
OIDCIss string
userInfoCache store.Store
DefaultTokenCacheTTL time.Duration
oidcClient oidc.OIDCProvider
oidcClient oidc.OIDCClient
AccessTokenVerifyMethod string
}

View File

@@ -35,7 +35,7 @@ type Options struct {
// SettingsRoleService for the roles API in settings
SettingsRoleService settingssvc.RoleService
// OIDCProviderFunc to lazily initialize an oidc provider, must be set for the oidc_auth middleware
OIDCClient oidc.OIDCProvider
OIDCClient oidc.OIDCClient
// OIDCIss is the oidcAuth-issuer
OIDCIss string
// RevaGatewayClient to send requests to the reva gateway
@@ -115,7 +115,7 @@ func SettingsRoleService(rc settingssvc.RoleService) Option {
}
// OIDCClient provides a function to set the the oidc client option.
func OIDCClient(val oidc.OIDCProvider) Option {
func OIDCClient(val oidc.OIDCClient) Option {
return func(o *Options) {
o.OIDCClient = val
}