arrowhead-f / arrowhead-f/client-library-python
To provide example in not secure mode
- Lingua principale
- Python
- Stelle
- 5
- Fork
- 12
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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],
)
````
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia da quickstart_setup.py e ispeziona le definizioni di ServiceInterface, ServiceRegistrationForm e Service per vedere dove vengono gestiti i valori non sicuri richiesti. Verifica che l’esempio HTTP-INSECURE-JSON possa interrogare il registro dei servizi e che il valore di registrazione richiesto NOT_SECURE sia accettato. Nell’issue non sono indicati test o altri file.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- backend, documentation
- Tipo di issue
- Funzionalità
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100