diff options
Diffstat (limited to 'lcm/ns/serializers/sol/subscription_auth_data.py')
-rw-r--r-- | lcm/ns/serializers/sol/subscription_auth_data.py | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/lcm/ns/serializers/sol/subscription_auth_data.py b/lcm/ns/serializers/sol/subscription_auth_data.py index d5680b05..72015e92 100644 --- a/lcm/ns/serializers/sol/subscription_auth_data.py +++ b/lcm/ns/serializers/sol/subscription_auth_data.py @@ -20,33 +20,43 @@ from lcm.ns import const class OAuthCredentialsSerializer(serializers.Serializer): clientId = serializers.CharField( - help_text="Client identifier to be used in the access token request of the OAuth 2.0 client " - "credentials grant type.", required=False, max_length=255, allow_null=False) + help_text="Client identifier to be used in the access token request of the OAuth 2.0 client credentials grant type.", + required=False, + max_length=255, + allow_null=False) clientPassword = serializers.CharField( - help_text="Client password to be used in the access token request of the OAuth 2.0 client" - " credentials grant type.", required=False, max_length=255, allow_null=False) + help_text="Client password to be used in the access token request of the OAuth 2.0 client credentials grant type.", + required=False, + max_length=255, + allow_null=False) tokenEndpoint = serializers.CharField( - help_text="The token endpoint from which the access token can be obtained.", required=False, + help_text="The token endpoint from which the access token can be obtained.", + required=False, max_length=255, allow_null=False) class BasicAuthSerializer(serializers.Serializer): userName = serializers.CharField( - help_text="Username to be used in HTTP Basic authentication.", max_length=255, + help_text="Username to be used in HTTP Basic authentication.", + max_length=255, required=False, allow_null=False) password = serializers.CharField( - help_text="Password to be used in HTTP Basic authentication.", max_length=255, + help_text="Password to be used in HTTP Basic authentication.", + max_length=255, required=False, allow_null=False) class SubscriptionAuthenticationSerializer(serializers.Serializer): authType = serializers.ListField( - child=serializers.ChoiceField(required=True, choices=const.AUTH_TYPES), help_text="Defines the types of Authentication / Authorization which the API consumer is" - " willing to accept when receiving a notification.", required=True) + " willing to accept when receiving a notification.", + child=serializers.ChoiceField( + required=True, + choices=const.AUTH_TYPES), + required=True) paramsBasic = BasicAuthSerializer( help_text="Parameters for authentication/authorization using BASIC.", required=False, |