Class: Grafana::Api::Saml

Inherits:
Object
  • Object
show all
Defined in:
lib/grafana-api/api/saml.rb

Instance Method Summary collapse

Constructor Details

#initialize(connection) ⇒ Saml

Returns a new instance of Saml.



5
6
7
# File 'lib/grafana-api/api/saml.rb', line 5

def initialize(connection)
  @connection = connection
end

Instance Method Details

#acs(relay_state: nil) ⇒ Object



9
10
11
12
13
14
15
16
17
# File 'lib/grafana-api/api/saml.rb', line 9

def acs(relay_state: nil)
  @connection.call(
    :POST,
    '/saml/acs',
    type: nil,
    auth: ['api_key', 'basic'],
    query: { 'RelayState' => relay_state }
  )
end

#metadataObject



19
20
21
22
23
24
25
26
# File 'lib/grafana-api/api/saml.rb', line 19

def 
  @connection.call(
    :GET,
    '/saml/metadata',
    type: nil,
    auth: ['api_key', 'basic']
  )
end

#sloObject



28
29
30
31
32
33
34
35
# File 'lib/grafana-api/api/saml.rb', line 28

def slo
  @connection.call(
    :GET,
    '/saml/slo',
    type: nil,
    auth: ['api_key', 'basic']
  )
end

#slo_post(saml_request: nil, saml_response: nil) ⇒ Object



37
38
39
40
41
42
43
44
45
# File 'lib/grafana-api/api/saml.rb', line 37

def slo_post(saml_request: nil, saml_response: nil)
  @connection.call(
    :POST,
    '/saml/slo',
    type: nil,
    auth: ['api_key', 'basic'],
    query: { 'SAMLRequest' => saml_request, 'SAMLResponse' => saml_response }
  )
end