forked from superdesk/newsroom-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve saml config options (superdesk#379)
* improve saml config options we can set on company email domain which will be tested when authenticating via saml and if user email matches it it will assign the company to user. there is also new config for custom client saml configs which allows us to configure user specific login page which picks the config to be used for SAML auth. then it uses the company domain to match the config value. STTNHUB-222
- Loading branch information
Showing
14 changed files
with
260 additions
and
53 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{% extends "layout_wire.html" %} | ||
|
||
{% block contentMain %} | ||
<div class="container-fluid py-5 overflow-auto"> | ||
<div class="row"> | ||
<div class="col-12 col-md-8 col-lg-6 col-xxl-4 mx-auto"> | ||
<div class="card border-0 bg-white box-shadow--z1"> | ||
<div class="card-header pt-4 border-0 bg-white"> | ||
<div class="text-center mb-4"> | ||
{% include 'login_logo.html' %} | ||
</div> | ||
{% block login_title %} | ||
{% endblock %} | ||
</div> | ||
|
||
{% block login_content %} | ||
{% endblock %} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{% extends "layout_login.html" %} | ||
|
||
{% block login_title %} | ||
<h5 class="mb-0">{{ gettext("Login") }}</h5> | ||
{% endblock %} | ||
|
||
{% block login_content %} | ||
<div class="card-body pt-1"> | ||
<a href="{{ url_for('auth.saml') }}" title="{{ gettext('Login using Single Sign On') }}" class="btn btn-primary w-100">{{ config.SAML_LABEL }}</a> | ||
</div> | ||
|
||
<div class="card-footer bg-white border-0 text-muted small"> | ||
<p>{{ gettext("If you have trouble logging in, please contact your own IT support.") }}</p> | ||
</div> | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{% if get_client_locales()|length is gt 1 %} | ||
<div class="card-body pt-1"> | ||
<form class="form" role="form" method="post" action="{{ url_for('auth.set_locale') }}"> | ||
<div class="form-group"> | ||
<label for="language-select">{{ gettext('Language') }}</label> | ||
<div class="field"> | ||
<select id="language-select" name="language" class="form-control" onchange="this.form.submit()"> | ||
{% for locale in get_client_locales() %} | ||
<option value="{{ locale.locale }}" {% if locale.locale == get_locale() %}selected{% endif %}>{{ locale.name }}</option> | ||
{% endfor %} | ||
</select> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
{% endif %} |
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
Oops, something went wrong.