Source code for mattermostdriver.endpoints.saml

from .base import Base


[docs]class SAML(Base): endpoint = '/saml'
[docs] def get_metadata(self): return self.client.get( self.endpoint + '/metadata' )
[docs] def upload_idp_certificate(self, files): return self.client.post( self.endpoint + '/certificate/idp', files=files )
[docs] def remove_idp_certificate(self): return self.client.delete( self.endpoint + '/certificate/idp' )
[docs] def upload_public_certificate(self, files): return self.client.post( self.endpoint + '/certificate/public', files=files )
[docs] def remove_public_certificate(self): return self.client.delete( self.endpoint + '/certificate/public' )
[docs] def upload_private_key(self, files): return self.client.post( self.endpoint + '/certificate/private', files=files )
[docs] def remove_private_key(self): return self.client.delete( self.endpoint + '/certificate/private' )
[docs] def get_certificate_status(self): return self.client.get( self.endpoint + '/certificate/status' )