mirror of
				https://github.com/nsnail/Ocelot.git
				synced 2025-11-04 07:55:28 +08:00 
			
		
		
		
	* brought in rafty * moved raft classes into Ocelot and deleted from int project * started to set up rafty in Ocelot * RAFTY INSIDE OCELOT...WOOT * more work adding rafty...just need to get auth working now * rudimentary authenticated raft requests working * asyn await stuff * hacked rafty into the fileconfigurationcontroller...everything seems to be working roughly but I have a lot of refactoring to do * updated to latest rafty that doesnt need an id * hacky but all tests passing * changed admin area set up to use builder not configuration.json, changed admin area auth to use client credentials * missing code coverage * ignore raft sectionf for code coverage * ignore raft sectionf for code coverage * back to normal filters * try exclude attr * missed these * moved client secret to builder for authentication and updated docs * lock to try and fix error accessing identity server created temprsa file on build server * updated postman scripts and changed Ocelot to not always use type handling as this looked crap when manually accessing the configuration endpoint * added rafty docs * changes I missed * added serialisation code we need for rafty to process commands when they proxy to leader * moved controllers into their feature slices
		
			
				
	
	
		
			314 lines
		
	
	
		
			8.1 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			314 lines
		
	
	
		
			8.1 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
{
 | 
						|
	"id": "4dbde9fe-89f5-be35-bb9f-d3b438e16375",
 | 
						|
	"name": "Ocelot",
 | 
						|
	"description": "",
 | 
						|
	"order": [
 | 
						|
		"a1c95935-ed18-d5dc-bcb8-a3db8ba1934f",
 | 
						|
		"ea0ed57a-2cb9-8acc-47dd-006b8db2f1b2",
 | 
						|
		"c4494401-3985-a5bf-71fb-6e4171384ac6",
 | 
						|
		"09af8dda-a9cb-20d2-5ee3-0a3023773a1a",
 | 
						|
		"e8825dc3-4137-99a7-0000-ef5786610dc3",
 | 
						|
		"fddfc4fa-5114-69e3-4744-203ed71a526b",
 | 
						|
		"c45d30d7-d9c4-fa05-8110-d6e769bb6ff9",
 | 
						|
		"4684c2fa-f38c-c193-5f55-bf563a1978c6",
 | 
						|
		"5f308240-79e3-cf74-7a6b-fe462f0d54f1",
 | 
						|
		"178f16da-c61b-c881-1c33-9d64a56851a4",
 | 
						|
		"26a08569-85f6-7f9a-726f-61be419c7a34"
 | 
						|
	],
 | 
						|
	"folders": [],
 | 
						|
	"timestamp": 0,
 | 
						|
	"owner": "212120",
 | 
						|
	"public": false,
 | 
						|
	"requests": [
 | 
						|
		{
 | 
						|
			"folder": null,
 | 
						|
			"id": "09af8dda-a9cb-20d2-5ee3-0a3023773a1a",
 | 
						|
			"name": "GET http://localhost:5000/comments?postId=1",
 | 
						|
			"dataMode": "params",
 | 
						|
			"data": null,
 | 
						|
			"rawModeData": null,
 | 
						|
			"descriptionFormat": "html",
 | 
						|
			"description": "",
 | 
						|
			"headers": "",
 | 
						|
			"method": "GET",
 | 
						|
			"pathVariables": {},
 | 
						|
			"url": "http://localhost:5000/comments?postId=1",
 | 
						|
			"preRequestScript": null,
 | 
						|
			"tests": null,
 | 
						|
			"currentHelper": "normal",
 | 
						|
			"helperAttributes": {},
 | 
						|
			"collectionId": "4dbde9fe-89f5-be35-bb9f-d3b438e16375"
 | 
						|
		},
 | 
						|
		{
 | 
						|
			"id": "178f16da-c61b-c881-1c33-9d64a56851a4",
 | 
						|
			"headers": "Authorization: Bearer {{AccessToken}}\n",
 | 
						|
			"url": "http://localhost:5000/administration/configuration",
 | 
						|
			"preRequestScript": null,
 | 
						|
			"pathVariables": {},
 | 
						|
			"method": "GET",
 | 
						|
			"data": null,
 | 
						|
			"dataMode": "params",
 | 
						|
			"tests": null,
 | 
						|
			"currentHelper": "normal",
 | 
						|
			"helperAttributes": {},
 | 
						|
			"time": 1508914722969,
 | 
						|
			"name": "GET http://localhost:5000/admin/configuration",
 | 
						|
			"description": "",
 | 
						|
			"collectionId": "4dbde9fe-89f5-be35-bb9f-d3b438e16375"
 | 
						|
		},
 | 
						|
		{
 | 
						|
			"id": "26a08569-85f6-7f9a-726f-61be419c7a34",
 | 
						|
			"headers": "",
 | 
						|
			"url": "http://localhost:5000/administration/connect/token",
 | 
						|
			"preRequestScript": null,
 | 
						|
			"pathVariables": {},
 | 
						|
			"method": "POST",
 | 
						|
			"data": [
 | 
						|
				{
 | 
						|
					"key": "client_id",
 | 
						|
					"value": "raft",
 | 
						|
					"type": "text",
 | 
						|
					"enabled": true
 | 
						|
				},
 | 
						|
				{
 | 
						|
					"key": "client_secret",
 | 
						|
					"value": "REALLYHARDPASSWORD",
 | 
						|
					"type": "text",
 | 
						|
					"enabled": true
 | 
						|
				},
 | 
						|
				{
 | 
						|
					"key": "scope",
 | 
						|
					"value": "admin raft ",
 | 
						|
					"type": "text",
 | 
						|
					"enabled": true
 | 
						|
				},
 | 
						|
				{
 | 
						|
					"key": "username",
 | 
						|
					"value": "admin",
 | 
						|
					"type": "text",
 | 
						|
					"enabled": false
 | 
						|
				},
 | 
						|
				{
 | 
						|
					"key": "password",
 | 
						|
					"value": "secret",
 | 
						|
					"type": "text",
 | 
						|
					"enabled": false
 | 
						|
				},
 | 
						|
				{
 | 
						|
					"key": "grant_type",
 | 
						|
					"value": "client_credentials",
 | 
						|
					"type": "text",
 | 
						|
					"enabled": true
 | 
						|
				}
 | 
						|
			],
 | 
						|
			"dataMode": "params",
 | 
						|
			"tests": "var jsonData = JSON.parse(responseBody);\npostman.setGlobalVariable(\"AccessToken\", jsonData.access_token);\npostman.setGlobalVariable(\"RefreshToken\", jsonData.refresh_token);",
 | 
						|
			"currentHelper": "normal",
 | 
						|
			"helperAttributes": {},
 | 
						|
			"time": 1513240031907,
 | 
						|
			"name": "POST http://localhost:5000/admin/connect/token copy copy",
 | 
						|
			"description": "",
 | 
						|
			"collectionId": "4dbde9fe-89f5-be35-bb9f-d3b438e16375"
 | 
						|
		},
 | 
						|
		{
 | 
						|
			"folder": null,
 | 
						|
			"id": "4684c2fa-f38c-c193-5f55-bf563a1978c6",
 | 
						|
			"name": "DELETE http://localhost:5000/posts/1",
 | 
						|
			"dataMode": "params",
 | 
						|
			"data": null,
 | 
						|
			"rawModeData": null,
 | 
						|
			"descriptionFormat": "html",
 | 
						|
			"description": "",
 | 
						|
			"headers": "",
 | 
						|
			"method": "DELETE",
 | 
						|
			"pathVariables": {},
 | 
						|
			"url": "http://localhost:5000/posts/1",
 | 
						|
			"preRequestScript": null,
 | 
						|
			"tests": null,
 | 
						|
			"currentHelper": "normal",
 | 
						|
			"helperAttributes": {},
 | 
						|
			"collectionId": "4dbde9fe-89f5-be35-bb9f-d3b438e16375"
 | 
						|
		},
 | 
						|
		{
 | 
						|
			"id": "5f308240-79e3-cf74-7a6b-fe462f0d54f1",
 | 
						|
			"headers": "Authorization: Bearer {{AccessToken}}\n",
 | 
						|
			"url": "http://localhost:5000/administration/.well-known/openid-configuration",
 | 
						|
			"preRequestScript": null,
 | 
						|
			"pathVariables": {},
 | 
						|
			"method": "GET",
 | 
						|
			"data": null,
 | 
						|
			"dataMode": "params",
 | 
						|
			"tests": null,
 | 
						|
			"currentHelper": "normal",
 | 
						|
			"helperAttributes": "{}",
 | 
						|
			"time": 1488038888813,
 | 
						|
			"name": "GET http://localhost:5000/admin/.well-known/openid-configuration",
 | 
						|
			"description": "",
 | 
						|
			"collectionId": "4dbde9fe-89f5-be35-bb9f-d3b438e16375",
 | 
						|
			"folder": null,
 | 
						|
			"rawModeData": null,
 | 
						|
			"descriptionFormat": null,
 | 
						|
			"queryParams": [],
 | 
						|
			"headerData": [
 | 
						|
				{
 | 
						|
					"key": "Authorization",
 | 
						|
					"value": "Bearer {{AccessToken}}",
 | 
						|
					"description": "",
 | 
						|
					"enabled": true
 | 
						|
				}
 | 
						|
			],
 | 
						|
			"pathVariableData": []
 | 
						|
		},
 | 
						|
		{
 | 
						|
			"id": "a1c95935-ed18-d5dc-bcb8-a3db8ba1934f",
 | 
						|
			"folder": null,
 | 
						|
			"name": "GET http://localhost:5000/posts",
 | 
						|
			"dataMode": "params",
 | 
						|
			"data": [
 | 
						|
				{
 | 
						|
					"key": "client_id",
 | 
						|
					"value": "admin",
 | 
						|
					"type": "text",
 | 
						|
					"enabled": true
 | 
						|
				},
 | 
						|
				{
 | 
						|
					"key": "client_secret",
 | 
						|
					"value": "secret",
 | 
						|
					"type": "text",
 | 
						|
					"enabled": true
 | 
						|
				},
 | 
						|
				{
 | 
						|
					"key": "scope",
 | 
						|
					"value": "admin",
 | 
						|
					"type": "text",
 | 
						|
					"enabled": true
 | 
						|
				},
 | 
						|
				{
 | 
						|
					"key": "username",
 | 
						|
					"value": "admin",
 | 
						|
					"type": "text",
 | 
						|
					"enabled": true
 | 
						|
				},
 | 
						|
				{
 | 
						|
					"key": "password",
 | 
						|
					"value": "admin",
 | 
						|
					"type": "text",
 | 
						|
					"enabled": true
 | 
						|
				},
 | 
						|
				{
 | 
						|
					"key": "grant_type",
 | 
						|
					"value": "password",
 | 
						|
					"type": "text",
 | 
						|
					"enabled": true
 | 
						|
				}
 | 
						|
			],
 | 
						|
			"rawModeData": null,
 | 
						|
			"descriptionFormat": "html",
 | 
						|
			"description": "",
 | 
						|
			"headers": "",
 | 
						|
			"method": "POST",
 | 
						|
			"pathVariables": {},
 | 
						|
			"url": "http://localhost:5000/admin/configuration",
 | 
						|
			"preRequestScript": null,
 | 
						|
			"tests": null,
 | 
						|
			"currentHelper": "normal",
 | 
						|
			"helperAttributes": "{}",
 | 
						|
			"collectionId": "4dbde9fe-89f5-be35-bb9f-d3b438e16375"
 | 
						|
		},
 | 
						|
		{
 | 
						|
			"folder": null,
 | 
						|
			"id": "c4494401-3985-a5bf-71fb-6e4171384ac6",
 | 
						|
			"name": "GET http://localhost:5000/posts/1/comments",
 | 
						|
			"dataMode": "params",
 | 
						|
			"data": null,
 | 
						|
			"rawModeData": null,
 | 
						|
			"descriptionFormat": "html",
 | 
						|
			"description": "",
 | 
						|
			"headers": "",
 | 
						|
			"method": "GET",
 | 
						|
			"pathVariables": {},
 | 
						|
			"url": "http://localhost:5000/posts/1/comments",
 | 
						|
			"preRequestScript": null,
 | 
						|
			"tests": null,
 | 
						|
			"currentHelper": "normal",
 | 
						|
			"helperAttributes": {},
 | 
						|
			"collectionId": "4dbde9fe-89f5-be35-bb9f-d3b438e16375"
 | 
						|
		},
 | 
						|
		{
 | 
						|
			"folder": null,
 | 
						|
			"id": "c45d30d7-d9c4-fa05-8110-d6e769bb6ff9",
 | 
						|
			"name": "PATCH http://localhost:5000/posts/1",
 | 
						|
			"dataMode": "raw",
 | 
						|
			"data": [],
 | 
						|
			"descriptionFormat": "html",
 | 
						|
			"description": "",
 | 
						|
			"headers": "",
 | 
						|
			"method": "PATCH",
 | 
						|
			"pathVariables": {},
 | 
						|
			"url": "http://localhost:5000/posts/1",
 | 
						|
			"preRequestScript": null,
 | 
						|
			"tests": null,
 | 
						|
			"currentHelper": "normal",
 | 
						|
			"helperAttributes": {},
 | 
						|
			"collectionId": "4dbde9fe-89f5-be35-bb9f-d3b438e16375",
 | 
						|
			"rawModeData": "{\n  \"title\": \"gfdgsgsdgsdfgsdfgdfg\",\n}"
 | 
						|
		},
 | 
						|
		{
 | 
						|
			"folder": null,
 | 
						|
			"id": "e8825dc3-4137-99a7-0000-ef5786610dc3",
 | 
						|
			"name": "POST http://localhost:5000/posts/1",
 | 
						|
			"dataMode": "raw",
 | 
						|
			"data": [],
 | 
						|
			"descriptionFormat": "html",
 | 
						|
			"description": "",
 | 
						|
			"headers": "",
 | 
						|
			"method": "POST",
 | 
						|
			"pathVariables": {},
 | 
						|
			"url": "http://localhost:5000/posts",
 | 
						|
			"preRequestScript": null,
 | 
						|
			"tests": null,
 | 
						|
			"currentHelper": "normal",
 | 
						|
			"helperAttributes": {},
 | 
						|
			"collectionId": "4dbde9fe-89f5-be35-bb9f-d3b438e16375",
 | 
						|
			"rawModeData": "{\n  \"userId\": 1,\n  \"title\": \"test\",\n  \"body\": \"test\"\n}"
 | 
						|
		},
 | 
						|
		{
 | 
						|
			"folder": null,
 | 
						|
			"id": "ea0ed57a-2cb9-8acc-47dd-006b8db2f1b2",
 | 
						|
			"name": "GET http://localhost:5000/posts/1",
 | 
						|
			"dataMode": "params",
 | 
						|
			"data": null,
 | 
						|
			"rawModeData": null,
 | 
						|
			"descriptionFormat": "html",
 | 
						|
			"description": "",
 | 
						|
			"headers": "",
 | 
						|
			"method": "GET",
 | 
						|
			"pathVariables": {},
 | 
						|
			"url": "http://localhost:5000/posts/1",
 | 
						|
			"preRequestScript": null,
 | 
						|
			"tests": null,
 | 
						|
			"currentHelper": "normal",
 | 
						|
			"helperAttributes": {},
 | 
						|
			"collectionId": "4dbde9fe-89f5-be35-bb9f-d3b438e16375"
 | 
						|
		},
 | 
						|
		{
 | 
						|
			"folder": null,
 | 
						|
			"id": "fddfc4fa-5114-69e3-4744-203ed71a526b",
 | 
						|
			"name": "PUT http://localhost:5000/posts/1",
 | 
						|
			"dataMode": "raw",
 | 
						|
			"data": [],
 | 
						|
			"descriptionFormat": "html",
 | 
						|
			"description": "",
 | 
						|
			"headers": "",
 | 
						|
			"method": "PUT",
 | 
						|
			"pathVariables": {},
 | 
						|
			"url": "http://localhost:5000/posts/1",
 | 
						|
			"preRequestScript": null,
 | 
						|
			"tests": null,
 | 
						|
			"currentHelper": "normal",
 | 
						|
			"helperAttributes": {},
 | 
						|
			"collectionId": "4dbde9fe-89f5-be35-bb9f-d3b438e16375",
 | 
						|
			"rawModeData": "{\n  \"userId\": 1,\n  \"title\": \"test\",\n  \"body\": \"test\"\n}"
 | 
						|
		}
 | 
						|
	]
 | 
						|
} |