mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-30 02:02:43 +00:00 
			
		
		
		
	additional param checks (#16910)
This commit is contained in:
		| @@ -14,7 +14,10 @@ export default Route.extend({ | ||||
|     } | ||||
|     path = window.decodeURIComponent(path); | ||||
|     const source = 'oidc-callback'; // required by event listener in auth-jwt component | ||||
|     let queryParams = { source, namespace, path, code, state }; | ||||
|     let queryParams = { source, path: path || '', code: code || '', state: state || '' }; | ||||
|     if (namespace) { | ||||
|       queryParams.namespace = namespace; | ||||
|     } | ||||
|     window.opener.postMessage(queryParams, window.origin); | ||||
|   }, | ||||
|   setupController(controller) { | ||||
|   | ||||
| @@ -152,11 +152,11 @@ module('Unit | Route | vault/cluster/oidc-callback', function (hooks) { | ||||
|     assert.propContains( | ||||
|       this.windowStub.lastCall.args[0], | ||||
|       { | ||||
|         code: undefined, | ||||
|         code: '', | ||||
|         path: 'oidc', | ||||
|         state: undefined, | ||||
|         state: '', | ||||
|       }, | ||||
|       'model hook returns non-existent state param' | ||||
|       'model hook returns empty string when state param nonexistent' | ||||
|     ); | ||||
|   }); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 claire bontempo
					claire bontempo