arrowhead-f / client-library-python

Arrowhead Client Library in Python
Eclipse Public License 2.0
5 stars 10 forks source link

To provide example in not secure mode #45

Open yustiks opened 1 month ago

yustiks commented 1 month ago

I found it useful to have an example of insecure server-client example.

E.g., to check the running services (e.g., orchestration, serviceregistry, authentication)

import requests
r=requests.get('http://127.0.0.1:8443/serviceregistry/echo')

and in quickstart_setup.py, change the ServiceInterface to be:

ServiceInterface('HTTP', 'INSECURE', 'JSON'),

Inaddition, add 'NOT_SECURE' instead of 'CERTIFICATE'

hello_form = ServiceRegistrationForm.make(
        Service(
                'hello-arrowhead',
                'hello',
                ServiceInterface.from_str('HTTP-INSECURE-JSON'),
                'NOT_SECURE',
        ),
        systems['provider'][0],
)