Add sample upstream provider
This commit is contained in:
		
							
								
								
									
										26
									
								
								sample_upstream_provider/dex-provider/dex.config.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								sample_upstream_provider/dex-provider/dex.config.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,26 @@ | ||||
| issuer: http://127.0.0.1:9001/dex | ||||
|  | ||||
| storage: | ||||
|   type: memory | ||||
|  | ||||
| web: | ||||
|   http: 0.0.0.0:9001 | ||||
|  | ||||
| oauth2: | ||||
|   # Automate some clicking | ||||
|   # Note: this might actually make some tests pass that otherwise wouldn't. | ||||
|   skipApprovalScreen: false | ||||
|  | ||||
| connectors: | ||||
|   # Note: this might actually make some tests pass that otherwise wouldn't. | ||||
|   - type: mockCallback | ||||
|     id: mock | ||||
|     name: Example | ||||
|  | ||||
| # Basic OP test suite requires two clients. | ||||
| staticClients: | ||||
|   - id: foo | ||||
|     secret: bar | ||||
|     redirectURIs: | ||||
|       - http://localhost:8000/prov_cb | ||||
|     name: Auth | ||||
							
								
								
									
										46
									
								
								sample_upstream_provider/docker-compose.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										46
									
								
								sample_upstream_provider/docker-compose.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,46 @@ | ||||
| services: | ||||
|   upstream: | ||||
|     image: dexidp/dex | ||||
|     user: "1000" | ||||
|     network_mode: host | ||||
|     volumes: | ||||
|       - ./dex-provider:/conf:ro | ||||
|     command: [ "dex", "serve", "/conf/dex.config.yaml" ] | ||||
|  | ||||
|   client1: | ||||
|     image: pierre42100/oidc_test_client | ||||
|     user: "1000" | ||||
|     network_mode: host | ||||
|     environment: | ||||
|       - LISTEN_ADDR=0.0.0.0:8011 | ||||
|       - PUBLIC_URL=http://127.0.0.1:8011 | ||||
|       - CONFIGURATION_URL=http://localhost:8000/.well-known/openid-configuration | ||||
|       - CLIENT_ID=testclient1 | ||||
|       - CLIENT_SECRET=secretone | ||||
|  | ||||
|   client2: | ||||
|     image: pierre42100/oidc_test_client | ||||
|     user: "1000" | ||||
|     network_mode: host | ||||
|     environment: | ||||
|       - LISTEN_ADDR=0.0.0.0:8012 | ||||
|       - PUBLIC_URL=http://127.0.0.1:8012 | ||||
|       - CONFIGURATION_URL=http://localhost:8000/.well-known/openid-configuration | ||||
|       - CLIENT_ID=testclient2 | ||||
|       - CLIENT_SECRET=secrettwo | ||||
|  | ||||
|   basicoidc: | ||||
|     image: rust | ||||
|     user: "1000" | ||||
|     network_mode: host | ||||
|     environment: | ||||
|       - STORAGE_PATH=/storage | ||||
|       #- RUST_LOG=debug | ||||
|     volumes: | ||||
|       - ../:/app | ||||
|       - ./storage:/storage | ||||
|       - ~/.cargo/registry:/usr/local/cargo/registry | ||||
|     command: | ||||
|       - bash | ||||
|       - -c | ||||
|       - cd /app && cargo run | ||||
		Reference in New Issue
	
	Block a user