Commit 92364d03 authored by JorgeEcheva26's avatar JorgeEcheva26
Browse files

configuration data error

parent 8ca61bf8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ When configuring the SDK as a **Network App Invoker**, the following fields must

**Optional:**
- `discover_filter`: useful to enable the discovery of specific APIs. Some fields under [`discover_filter`](#configuration-of-discover_filter) structure required to be configured when using discovery filters. Check devoted section below,
- `check_authentication`: useful to use `check_authentication()` function to validate features from a target provider, it will be required to fill up the `ip` and `port` parameters within the `check_authentication` variable.
- `check_authentication_data`: useful to use `check_authentication()` function to validate features from a target provider, it will be required to fill up the `ip` and `port` parameters within the `check_authentication_data` variable.

### Network App Provider

@@ -91,7 +91,7 @@ This file can also be populated using [environment variables](../samples/envirom
- [`discover_filter`](#configuration-of-discover_filter): Fields for configuring invoker service discovery.
- [`publish_req`](#configuration-of-publish_req): Fields required for API publishing.
- `api_description_path`: The path to the [ServiceAPIDescription](https://github.com/jdegre/5GC_APIs/blob/Rel-18/TS29222_CAPIF_Publish_Service_API.yaml) JSON file.
- `check_authentication`: The `ip` and `port` of the target Provider's AEF to get their supported features from.
- `check_authentication_data`: The `ip` and `port` of the target Provider's AEF to get their supported features from.


## Configuration via `capif_sdk_register.json`
+1 −1
Original line number Diff line number Diff line
@@ -214,7 +214,7 @@ The SDK allows the Network App Invoker to check the `supported_features` from th
It is mandatory to have obtained the [JWT token](#obtain-jwt-tokens) previously. 

**Required SDK inputs**:
- check_authentication
- check_authentication_data

![Invoker_check_authentication](./images/flows_invoker_check_authentication.jpg)

+2 −2
Original line number Diff line number Diff line
@@ -5,12 +5,12 @@
  "capif_register_port": "36211",
  "capif_username": "echeva_0",
  "capif_password": "echevapass",
  "debug_mode": "False",
  "debug_mode": "True",
  "invoker":{
    "invoker_folder": "/Users/IDB0128/Documents/OpenCapif/test_invoker_certificate_folder",
    "capif_callback_url": "http://localhost:5000",
    "supported_features":"fffffff",
    "check_authentication":{
    "check_authentication_data":{
      "ip":"",
      "port":""
    },
+1 −2
Original line number Diff line number Diff line
@@ -99,8 +99,7 @@ if __name__ == "__main__":
        lenght = len(details["registered_security_contexes"])
        ip = details["registered_security_contexes"][lenght-1]["aef_profiles"][0]["ip"]
        port = details["registered_security_contexes"][lenght-1]["aef_profiles"][0]["port"]
        discoverer.check_authentication["ip"] = ip
        discoverer.check_authentication["port"] = port
        discoverer.check_authentication_data.update({"ip": ip, "port": port})
        discoverer.check_authentication()

        # Load API details from the JSON file
+1 −1
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@
  "invoker":{
    "invoker_folder": "",
    "capif_callback_url": "",
    "check_authentication":{
    "check_authentication_data":{
      "ip":"",
      "port":""
    },
Loading