-
Hey all, I apologize if this is a dumb question but it has just crossed my mind, and I apologize if this is the wrong place to ask. So I've set up Dex/Gangway to authenticate into a Kube cluster with LDAP credentials. I've also set up a couple of Roles & RoleBindings based off groups in said LDAP. My question revolves around the refresh process: Let's say, when a user initially logs into Dex and gets the KubeConfig from Gangway, they are a part of Group A. At some point, they are removed from Group A and placed into Group B. Groups A and B have separate role bindings in the cluster. Does the refresh also refresh the groups that a user is a part of? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello, @tjmoyes. The LDAP refresh method looks like this Lines 529 to 568 in 83ad7bc So it does update the groups on line 561. This is technical stuff, but I think it may be useful to understand how dex interacts with other identity providers. |
Beta Was this translation helpful? Give feedback.
Hello, @tjmoyes.
Yes, it works as you described. If a connector implements the
RefreshConnector
interface, theRefresh
method will be called on token refreshing.The LDAP refresh method looks like this
dex/connector/ldap/ldap.go
Lines 529 to 568 in 83ad7bc