chore: cleanup backchannel logout pr for review
This commit is contained in:
committed by
Christian Richter
parent
a9660e3e8c
commit
f7a86d681a
@@ -45,8 +45,6 @@ func DefaultConfig() *config.Config {
|
|||||||
AccessTokenVerifyMethod: config.AccessTokenVerificationJWT,
|
AccessTokenVerifyMethod: config.AccessTokenVerificationJWT,
|
||||||
SkipUserInfo: false,
|
SkipUserInfo: false,
|
||||||
UserinfoCache: &config.Cache{
|
UserinfoCache: &config.Cache{
|
||||||
// toDo:
|
|
||||||
// check if "memory" is the right default or if "nats-js-kv" is a better match
|
|
||||||
Store: "memory",
|
Store: "memory",
|
||||||
Nodes: []string{"127.0.0.1:9233"},
|
Nodes: []string{"127.0.0.1:9233"},
|
||||||
Database: "cache-userinfo",
|
Database: "cache-userinfo",
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ func (m *OIDCAuthenticator) getClaims(token string, req *http.Request) (map[stri
|
|||||||
m.Logger.Error().Err(err).Msg("failed to write to userinfo cache")
|
m.Logger.Error().Err(err).Msg("failed to write to userinfo cache")
|
||||||
}
|
}
|
||||||
|
|
||||||
subject, sessionId := aClaims.Subject, aClaims.SessionID
|
subject, sessionId := strings.Join(strings.Fields(aClaims.Subject), ""), strings.Join(strings.Fields(aClaims.SessionID), "")
|
||||||
// if no session id is present, we can't do a session lookup,
|
// if no session id is present, we can't do a session lookup,
|
||||||
// so we can skip the cache entry for that.
|
// so we can skip the cache entry for that.
|
||||||
if sessionId == "" {
|
if sessionId == "" {
|
||||||
|
|||||||
@@ -4,13 +4,12 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/go-chi/chi/v5"
|
"github.com/go-chi/chi/v5"
|
||||||
microstore "go-micro.dev/v4/store"
|
|
||||||
|
|
||||||
"github.com/opencloud-eu/opencloud/pkg/log"
|
"github.com/opencloud-eu/opencloud/pkg/log"
|
||||||
"github.com/opencloud-eu/opencloud/pkg/oidc"
|
"github.com/opencloud-eu/opencloud/pkg/oidc"
|
||||||
"github.com/opencloud-eu/opencloud/services/proxy/pkg/config"
|
"github.com/opencloud-eu/opencloud/services/proxy/pkg/config"
|
||||||
"github.com/opencloud-eu/opencloud/services/proxy/pkg/user/backend"
|
"github.com/opencloud-eu/opencloud/services/proxy/pkg/user/backend"
|
||||||
"github.com/opencloud-eu/reva/v2/pkg/events"
|
"github.com/opencloud-eu/reva/v2/pkg/events"
|
||||||
|
microstore "go-micro.dev/v4/store"
|
||||||
)
|
)
|
||||||
|
|
||||||
// StaticRouteHandler defines a Route Handler for static routes
|
// StaticRouteHandler defines a Route Handler for static routes
|
||||||
|
|||||||
Reference in New Issue
Block a user