Class: UDAPSecurityTestKit::MockUDAPServer::IntrospectionEndpoint
- Inherits:
-
Inferno::DSL::SuiteEndpoint
- Object
- Inferno::DSL::SuiteEndpoint
- UDAPSecurityTestKit::MockUDAPServer::IntrospectionEndpoint
show all
- Includes:
- UDAPIntrospectionResponseCreation
- Defined in:
- lib/udap_security_test_kit/endpoints/mock_udap_server/introspection_endpoint.rb
Instance Method Summary
collapse
#make_udap_introspection_response, #requested_scope
Instance Method Details
#make_response ⇒ Object
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.['Cache-Control'] = 'no-store'
response.['Pragma'] = 'no-cache'
response.['Access-Control-Allow-Origin'] = '*'
response.content_type = 'application/json'
response.status = 200
end
|
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_identifier ⇒ Object
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_result ⇒ Object
25
26
27
|
# File 'lib/udap_security_test_kit/endpoints/mock_udap_server/introspection_endpoint.rb', line 25
def update_result
nil end
|