Skip to content

Commit 74a223c

Browse files
committed
Add Private Access Modifier and comment for __create_metadata
1 parent 7e46b69 commit 74a223c

2 files changed

Lines changed: 17 additions & 2 deletions

File tree

iam-proxy-italia-project/backends/ciesaml2.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,8 +510,15 @@ def authn_response(self, context, binding):
510510
context, self._translate_response(authn_response, context.state)
511511
)
512512

513+
"""
514+
method __create_metadata private
515+
Create metadata for CieSAMLBackend
513516
514-
def create_metadata(self, conf):
517+
:param self: Instance for CieSAMLBackend
518+
:param conf: Configuration for CieSAMLBackend
519+
:return: xmldoc
520+
"""
521+
def __create_metadata(self, conf):
515522
logger.debug(f"Entering method: {inspect.getframeinfo(inspect.currentframe()).function}. Params [conf: {conf}].")
516523
metadata = entity_descriptor(conf)
517524

iam-proxy-italia-project/backends/spidsaml2.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,15 @@ def authn_response(self, context, binding):
668668
context, self._translate_response(authn_response, context.state)
669669
)
670670

671-
def create_metadata(self, conf):
671+
"""
672+
method __create_metadata private
673+
Create metadata for SpidSaml2
674+
675+
:param self: Instance for SpidSaml2
676+
:param conf: Configuration for SpidSaml2
677+
:return: xmldoc
678+
"""
679+
def __create_metadata(self, conf):
672680
logger.debug(f"Entering method: {inspect.getframeinfo(inspect.currentframe()).function}. Params [conf: {conf}]")
673681
metadata = entity_descriptor(conf)
674682

0 commit comments

Comments
 (0)