File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ <h1>Where are you from?</h1>
9
9
< p > Please select your < strong > Identity Provider</ strong > from the following list:</ p >
10
10
< ul >
11
11
{% for url, name in available_idps %}
12
- < li > < a href ="{% url 'saml2_login' %}?idp={{ url }}{% if came_from %}&next={{ came_from }}{% endif %} "> {{ name }}</ a > </ li >
12
+ < li > < a href ="{% url 'saml2_login' %}?idp={{ url }}{% if came_from %}&next={{ came_from }}{% endif %} "> {{ name|default_if_none:url }}</ a > </ li >
13
13
{% endfor %}
14
14
</ ul >
15
15
</ body >
Original file line number Diff line number Diff line change @@ -82,7 +82,10 @@ def get_sp_config(self, request: HttpRequest) -> SPConfig:
82
82
def get_state_client (self , request : HttpRequest ):
83
83
conf = self .get_sp_config (request )
84
84
state = StateCache (request .saml_session )
85
- client = Saml2Client (conf , state_cache = state , identity_cache = IdentityCache (request .saml_session ))
85
+ client = Saml2Client (
86
+ conf , state_cache = state ,
87
+ identity_cache = IdentityCache (request .saml_session )
88
+ )
86
89
return state , client
87
90
88
91
You can’t perform that action at this time.
0 commit comments