-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #79 from SURFnet/bugfix/auth-white-page
Display informative error pages in case of authentication failures
- Loading branch information
Showing
6 changed files
with
131 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...urfnet/StepupRa/RaBundle/Resources/views/Saml/Exception/authenticationException.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{% extends '::base.html.twig' %} | ||
|
||
{% block page_title %}{{ 'ra.error.saml_authentication_exception.title'|trans }}{% endblock %} | ||
|
||
{% block content %} | ||
<h2>{{ block('page_title') }}</h2> | ||
|
||
<p>{{ 'ra.error.saml_authentication_exception.text.authentication_exception'|trans }}</p> | ||
<a class="btn btn-primary" href="{{ path('ra_vetting_search') }}"> | ||
{{ 'ra.error.saml_authentication_exception.button.try_again'|trans }} | ||
</a> | ||
{% endblock %} |
12 changes: 12 additions & 0 deletions
12
src/Surfnet/StepupRa/RaBundle/Resources/views/Saml/Exception/badCredentials.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{% extends '::base.html.twig' %} | ||
|
||
{% block page_title %}{{ 'ra.error.saml_bad_credentials.title'|trans }}{% endblock %} | ||
|
||
{% block content %} | ||
<h2>{{ block('page_title') }}</h2> | ||
|
||
<p>{{ 'ra.error.saml_bad_credentials.text.bad_credentials'|trans }}</p> | ||
<a class="btn btn-primary" href="{{ path('ra_vetting_search') }}"> | ||
{{ 'ra.error.saml_bad_credentials.button.try_again'|trans }} | ||
</a> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters