@@ -85,21 +85,21 @@ def assign_algorithms(typ):
8585 return jwe .SUPPORTED ["enc" ]
8686
8787
88- def construct_provider_info (default_capabilities , ** kwargs ):
88+ def construct_endpoint_info (default_capabilities , ** kwargs ):
8989 if default_capabilities is not None :
90- provider_info = {}
90+ _info = {}
9191 for attr , default_val in default_capabilities .items ():
9292 try :
9393 _proposal = kwargs [attr ]
9494 except KeyError :
9595 if default_val is not None :
96- provider_info [attr ] = default_val
96+ _info [attr ] = default_val
9797 elif "signing_alg_values_supported" in attr :
98- provider_info [attr ] = assign_algorithms ("signing_alg" )
98+ _info [attr ] = assign_algorithms ("signing_alg" )
9999 elif "encryption_alg_values_supported" in attr :
100- provider_info [attr ] = assign_algorithms ("encryption_alg" )
100+ _info [attr ] = assign_algorithms ("encryption_alg" )
101101 elif "encryption_enc_values_supported" in attr :
102- provider_info [attr ] = assign_algorithms ("encryption_enc" )
102+ _info [attr ] = assign_algorithms ("encryption_enc" )
103103 else :
104104 _permitted = None
105105
@@ -117,8 +117,8 @@ def construct_provider_info(default_capabilities, **kwargs):
117117 )
118118 )
119119
120- provider_info [attr ] = _proposal
121- return provider_info
120+ _info [attr ] = _proposal
121+ return _info
122122 else :
123123 return None
124124
@@ -165,7 +165,7 @@ def __init__(self, endpoint_context, **kwargs):
165165 "client_authn_method"
166166 ]
167167
168- self .provider_info = construct_provider_info (
168+ self .endpoint_info = construct_endpoint_info (
169169 self .default_capabilities , ** kwargs
170170 )
171171
0 commit comments