Class: UDAPSecurityTestKit::MockUDAPServer::IntrospectionEndpoint

Inherits:
Inferno::DSL::SuiteEndpoint
  • Object
show all
Includes:
UDAPIntrospectionResponseCreation
Defined in:
lib/udap_security_test_kit/endpoints/mock_udap_server/introspection_endpoint.rb

Instance Method Summary collapse

Methods included from UDAPIntrospectionResponseCreation

#make_udap_introspection_response, #requested_scope

Instance Method Details

#make_responseObject



16
17
18
19
20
21
22
23
# File 'lib/udap_security_test_kit/endpoints/mock_udap_server/introspection_endpoint.rb', line 16

def make_response
  response.body = make_udap_introspection_response.to_json
  response.headers['Cache-Control'] = 'no-store'
  response.headers['Pragma'] = 'no-cache'
  response.headers['Access-Control-Allow-Origin'] = '*'
  response.content_type = 'application/json'
  response.status = 200
end

#tagsObject



29
30
31
# File 'lib/udap_security_test_kit/endpoints/mock_udap_server/introspection_endpoint.rb', line 29

def tags
  [INTROSPECTION_TAG, UDAP_TAG]
end

#test_run_identifierObject



12
13
14
# File 'lib/udap_security_test_kit/endpoints/mock_udap_server/introspection_endpoint.rb', line 12

def test_run_identifier
  MockUDAPServer.issued_token_to_client_id(request.params[:token])
end

#update_resultObject



25
26
27
# File 'lib/udap_security_test_kit/endpoints/mock_udap_server/introspection_endpoint.rb', line 25

def update_result
  nil # never update for now
end