Commit db93ee11 authored by Jorge Moratinos's avatar Jorge Moratinos
Browse files

remove grantType from interfaceDescriptions (is present from v18.7.0 of 3GPP CAPIF

parent 5a3f638e
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -129,7 +129,7 @@ class SecurityOperations(Resource):
                    elif security_info_obj.get('sel_security_method') == "PSK":
                        current_app.logger.debug("PSK security method selected")
                        if authentication_info:
                            # Read the PSK from the file
                            # Read the PSK from the file -> TODO
                            with open("/usr/src/app/capif_security/ca.crt", "rb") as key_file:
                                key_data = key_file.read()
                            # Decode the PSK to a string
+2 −6
Original line number Diff line number Diff line
@@ -146,8 +146,7 @@ def create_aef_profile(aef_id,
            create_interface_description(
                ipv4_addr="string",
                port=65535,
                security_methods=security_method,
                grant_types=["CLIENT_CREDENTIALS"]
                security_methods=security_method
            )
        ]

@@ -249,8 +248,7 @@ def create_interface_description(ipv4_addr=None,
                                 fqdn=None,
                                 port=None,
                                 api_prefix=None,
                                 security_methods=None,
                                 grant_types=None):
                                 security_methods=None):
    """
    Create an interface description with the given parameters.
    """
@@ -272,7 +270,5 @@ def create_interface_description(ipv4_addr=None,
        data['apiPrefix'] = api_prefix
    if security_methods is not None:
        data['securityMethods'] = security_methods
    if grant_types is not None:
        data['grantTypes'] = grant_types
    # Return the interface description
    return data