0001-idp_oidc-display-service-info-on-authorization-page-.patch
src/authentic2_idp_oidc/locale/fr/LC_MESSAGES/django.po | ||
---|---|---|
7 | 7 |
msgstr "" |
8 | 8 |
"Project-Id-Version: Authentic\n" |
9 | 9 |
"Report-Msgid-Bugs-To: \n" |
10 |
"POT-Creation-Date: 2022-04-06 10:46+0200\n"
|
|
10 |
"POT-Creation-Date: 2022-05-09 14:18+0200\n"
|
|
11 | 11 |
"PO-Revision-Date: 2022-04-06 10:49+0200\n" |
12 | 12 |
"Last-Translator: Benjamin Dauvergne <bdauvergne@entrouvert.com>\n" |
13 | 13 |
"Language-Team: None\n" |
... | ... | |
232 | 232 |
msgstr "Vérification d’autorisation d’accès" |
233 | 233 | |
234 | 234 |
#: src/authentic2_idp_oidc/templates/authentic2_idp_oidc/authorization.html |
235 |
#, python-format |
|
236 |
msgid "Do you want to be authenticated on service %(client_name)s ?" |
|
237 |
msgstr "Souhaitez-vous être authentifié sur le service %(client_name)s ?" |
|
235 |
msgid "Do you want to be authenticated on this service ?" |
|
236 |
msgstr "Souhaitez-vous être authentifié sur ce service ?" |
|
238 | 237 | |
239 | 238 |
#: src/authentic2_idp_oidc/templates/authentic2_idp_oidc/authorization.html |
240 | 239 |
msgid "The following informations will be sent to the service:" |
src/authentic2_idp_oidc/templates/authentic2_idp_oidc/authorization.html | ||
---|---|---|
6 | 6 |
<link rel="stylesheet" type="text/css" href="{% static 'authentic2_idp_oidc/css/style.css' %}"></link> |
7 | 7 |
{% endblock %} |
8 | 8 | |
9 |
{% block beforecontent %} |
|
10 |
{% include "authentic2/service_info_fragment.html" %} |
|
11 |
{% endblock %} |
|
12 | ||
9 | 13 |
{% block content %} |
10 | 14 |
<h2>{% trans "Authentication access check" %}</h2> |
11 | 15 |
<form method="post" id="a2-oidc-authorization-form"> |
12 |
<p>{% blocktrans with client_name=client.name %}Do you want to be authenticated on service {{ client_name }} ?{% endblocktrans %}</p>
|
|
16 |
<p>{% trans "Do you want to be authenticated on this service ?" %}</p>
|
|
13 | 17 |
{% if needs_scope_validation %} |
14 | 18 |
<p>{% trans "The following informations will be sent to the service:" %}</p> |
15 | 19 |
<ul> |
tests/idp_oidc/test_misc.py | ||
---|---|---|
130 | 130 |
assert OIDCClient.objects.count() == 1 |
131 | 131 | |
132 | 132 | |
133 |
def test_login_from_client_with_home_url(oidc_client, app): |
|
133 |
def test_login_from_client_with_home_url(oidc_client, app, simple_user):
|
|
134 | 134 |
redirect_uri = oidc_client.redirect_uris.split()[0] |
135 | 135 |
params = { |
136 | 136 |
'client_id': oidc_client.client_id, |
... | ... | |
185 | 185 |
== '/media/services/logos/201x201.jpg' |
186 | 186 |
) |
187 | 187 | |
188 |
# check authorization page |
|
189 |
response = utils.login(app, simple_user) |
|
190 |
response = app.get(authorize_url) |
|
191 |
assert response.pyquery.find('.service-message') |
|
192 |
assert response.pyquery.find('a.service-message--link') |
|
193 |
assert ( |
|
194 |
response.pyquery.find('img.service-message--logo')[0].attrib['src'] |
|
195 |
== '/media/services/logos/201x201.jpg' |
|
196 |
) |
|
197 |
link = response.pyquery.find('a.service-message--link')[0] |
|
198 |
assert link.attrib['href'] == 'https://service.example.net' |
|
199 | ||
188 | 200 | |
189 | 201 |
@pytest.mark.parametrize('oidc_client', OIDC_CLIENT_PARAMS, indirect=True) |
190 | 202 |
@pytest.mark.parametrize('do_not_ask_again', [(True,), (False,)]) |
191 |
- |