Remove minio oidc login
This commit is contained in:
		
							parent
							
								
									b336d01858
								
							
						
					
					
						commit
						4264017641
					
				
					 4 changed files with 3 additions and 38 deletions
				
			
		|  | @ -28,32 +28,6 @@ resource "authentik_user" "default" { | |||
|   email    = var.admin_email | ||||
| } | ||||
| 
 | ||||
| resource "authentik_property_mapping_provider_scope" "minio" { | ||||
|   name       = "minio" | ||||
|   scope_name = "minio" | ||||
|   expression = <<EOF | ||||
| if ak_is_group_member(request.user, name="${authentik_group.minio_admins.name}"): | ||||
|   return { | ||||
|       "minio_policy": "consoleAdmin", | ||||
| } | ||||
| elif ak_is_group_member(request.user, name="${authentik_group.minio_users.name}"): | ||||
|   return { | ||||
|       "minio_policy": "readonly" | ||||
| } | ||||
| return None | ||||
| EOF | ||||
| } | ||||
| 
 | ||||
| resource "authentik_group" "minio_admins" { | ||||
|   name         = "Minio admins" | ||||
|   users        = [authentik_user.default.id] | ||||
| } | ||||
| 
 | ||||
| resource "authentik_group" "minio_users" { | ||||
|   name         = "Minio users" | ||||
|   users        = [] | ||||
| } | ||||
| 
 | ||||
| resource "authentik_group" "grafana_grafana_admins" { | ||||
|   name    = "Grafana GrafanaAdmins" | ||||
|   users   = [authentik_user.default.id] | ||||
|  | @ -83,10 +57,7 @@ resource "authentik_provider_oauth2" "service_providers" { | |||
|       matching_mode = "strict", | ||||
|       url           = redir, | ||||
|   }] | ||||
|   property_mappings  = flatten([ | ||||
|       data.authentik_property_mapping_provider_scope.default_scopes.ids, | ||||
|       each.key == "minio" ? [authentik_property_mapping_provider_scope.minio.id] : [] | ||||
|   ]) | ||||
|   property_mappings  = data.authentik_property_mapping_provider_scope.default_scopes.ids | ||||
|   signing_key        = (each.value.auth_cert == "rsa" ? | ||||
|       data.authentik_certificate_key_pair.rsa.id : | ||||
|       data.authentik_certificate_key_pair.ecdsa.id) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue