add Rancher SAML processor
This commit is contained in:
		| @ -101,3 +101,4 @@ saml_idp: | ||||
|     - passbook.saml_idp.processors.salesforce | ||||
|     - passbook.saml_idp.processors.shibboleth | ||||
|     - passbook.saml_idp.processors.wordpress_orange | ||||
|     - passbook.saml_idp.processors.rancher | ||||
|  | ||||
							
								
								
									
										11
									
								
								passbook/saml_idp/processors/rancher.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								passbook/saml_idp/processors/rancher.py
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,11 @@ | ||||
| """Rancher Processor""" | ||||
| from passbook.saml_idp.base import Processor | ||||
|  | ||||
|  | ||||
| class RancherProcessor(Processor): | ||||
|     """Rancher SAML 2.0 AuthnRequest to Response Handler Processor.""" | ||||
|  | ||||
|     def _determine_audience(self): | ||||
|         # Rancher expects an audience in this format | ||||
|         # https://<host>/v1-saml/adfs/saml/acs | ||||
|         self._audience = self._remote.acs_url.replace('acs', 'metadata') | ||||
		Reference in New Issue
	
	Block a user
	 Jens Langhammer
					Jens Langhammer