Change to new cluster config
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
This commit is contained in:
@@ -33,7 +33,7 @@ class User:
|
||||
def get_users_inner():
|
||||
config.load_incluster_config()
|
||||
api_instance = client.CustomObjectsApi()
|
||||
ret = api_instance.list_namespaced_custom_object("codemowers.io", "v1alpha1", OIDC_USERS_NAMESPACE, "oidcgatewayusers")
|
||||
ret = api_instance.list_namespaced_custom_object("codemowers.cloud", "v1beta1", OIDC_USERS_NAMESPACE, "oidcusers")
|
||||
for item in ret["items"]:
|
||||
username = item['metadata']['name']
|
||||
display_name = item.get("spec", {}).get("customProfile", {}).get("name", None)
|
||||
|
||||
@@ -10,7 +10,7 @@ from functools import wraps
|
||||
|
||||
page_oidc = Blueprint("oidc", __name__)
|
||||
db = MongoClient(const.MONGO_URI).get_default_database()
|
||||
gw_uri = os.getenv("OIDC_GATEWAY_URI")
|
||||
gw_uri = os.getenv("OIDC_IDP_URI")
|
||||
metadata = requests.get(f"{gw_uri}.well-known/openid-configuration").json()
|
||||
|
||||
def login_required(_f=None, *, groups=[]):
|
||||
|
||||
Reference in New Issue
Block a user