Module: Mattermost::Endpoint::SAML

Included in:
Mattermost::Endpoint
Defined in:
lib/mattermost/endpoint/saml.rb

Instance Method Summary collapse

Instance Method Details

#get_certificate_statusObject



38
39
40
# File 'lib/mattermost/endpoint/saml.rb', line 38

def get_certificate_status
	get("/saml/certificate/status")
end

#get_saml_metadataObject



7
8
9
# File 'lib/mattermost/endpoint/saml.rb', line 7

def 
	get("/saml/metadata")
end

#remove_idp_certificateObject



16
17
18
# File 'lib/mattermost/endpoint/saml.rb', line 16

def remove_idp_certificate
	delete("/saml/certificate/idp")
end

#remove_private_keyObject



34
35
36
# File 'lib/mattermost/endpoint/saml.rb', line 34

def remove_private_key
	delete("/saml/certificate/private")
end

#remove_public_certificateObject



25
26
27
# File 'lib/mattermost/endpoint/saml.rb', line 25

def remove_public_certificate
	delete("/saml/certificate/public")
end

#upload_idp_certificate(certificate) ⇒ Object

Raises:

  • (NotImplementedError)


11
12
13
14
# File 'lib/mattermost/endpoint/saml.rb', line 11

def upload_idp_certificate(certificate)
	#post("saml/certifiate/idp", certificate)
	raise NotImplementedError
end

#upload_private_key(key) ⇒ Object

Raises:

  • (NotImplementedError)


29
30
31
32
# File 'lib/mattermost/endpoint/saml.rb', line 29

def upload_private_key(key)
	#post("/saml/certificate/private", key)
	raise NotImplementedError
end

#upload_public_certificate(certificate) ⇒ Object

Raises:

  • (NotImplementedError)


20
21
22
23
# File 'lib/mattermost/endpoint/saml.rb', line 20

def upload_public_certificate(certificate)
	#post("/saml/certificate/public", certificate)
	raise NotImplementedError
end