Commit 785746e7 authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

776: Deploy initial version to minfba and start

dowloading/chunking/indexing 

Task-Url: https://minfba.de.dariah.eu/mantisbt/view.php?id=776
parent ae0b2869
<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<tiles:importAttribute name="fluidLayout" />
<div class="jumbotron">
<div class="container<c:if test="${fluidLayout==true}">-fluid</c:if>">
<div class="row">
<div class="xs-hidden sm-visible col-sm-3 col-lg-2 col-sm-offset-1">
<div class="pull-right dariah-flower-white-83">DARIAHSP Test App</div>
</div>
</div>
</div>
</div>
<div class="container<c:if test="${fluidLayout==true}">-fluid</c:if>">
<div class="row">
<div id="main-content-wrapper" class="col-sm-10 col-sm-offset-1">
<ul class="breadcrumb">
<li class="active">Home</li>
</ul>
<div id="main-content">
<h2>${errorHeading}</h2>
<c:if test="${errorMsg!=null}">
<p>
<em>Message</em>: ${errorMsg}
</p>
</c:if>
<c:if test="${errorDetail!=null}">
<div class="alert alert-${errorLevel==null ? 'error' : errorLevel}" role="alert">${errorDetail}</div>
</c:if>
<c:if test="${hideHelpText==null||hideHelpText==false}">
<p>Please try to reproduce the steps that led to this error and notify the DARIAH-DE helpdesk if the problem persists</p>
</c:if>
<pre style="display: none;">Failed URL: ${url}
Exception: ${exception.message}
<c:forEach items="${exception.stackTrace}" var="ste">
${ste}</c:forEach>
</pre>
</div>
</div>
</div>
</div>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<tiles:importAttribute name="fluidLayout" />
<ul class="breadcrumb">
<li class="active"><s:message code="~eu.dariah.de.minfba.common.local_login.title" /></li>
</ul>
<div id="main-content">
<h2><s:message code="~eu.dariah.de.minfba.common.local_login.heading" /></h2>
<c:if test="${not empty error}">
<div class="alert alert-danger" role="alert"><s:message code="~eu.dariah.de.minfba.common.local_login.invalid" /></div>
</c:if>
<form name='loginForm' class="form-horizontal" action="<c:url value='/login' />" method='POST'>
<input type="hidden" name="redirectUrl" id="redirectUrl" value="${redirectUrl}" />
<div class="form-group">
<label for="username" class="col-sm-2 control-label"><s:message code="~eu.dariah.de.minfba.common.local_login.username" /></label>
<div class="col-sm-4">
<input type="text" class="form-control" id="username" name="username" autofocus>
</div>
<div class="jumbotron jumbotron-small">
<div class="container<c:if test="${fluidLayout==true}">-fluid</c:if>">
<div class="row">
<!-- Notifications -->
<div id="notifications-area" class="col-sm-10 col-sm-offset-1"></div>
<div class="xs-hidden sm-visible col-sm-3 col-lg-2 col-sm-offset-1">
<div class="pull-right dariah-flower-white-45">DARIAHSP Test App</div>
</div>
<div class="col-sm-6 col-lg-7 col-sm-offset-1">
<h1>Local Login</h1>
</div>
</div>
<div class="form-group">
<label for="password" class="col-sm-2 control-label"><s:message code="~eu.dariah.de.minfba.common.local_login.password" /></label>
<div class="col-sm-4">
<input type="password" class="form-control" id="password" name="password">
</div>
</div>
</div>
<div class="container<c:if test="${fluidLayout==true}">-fluid</c:if>">
<div class="row">
<!-- Notifications -->
<div id="notifications-area" class="col-sm-10 col-sm-offset-1"></div>
<div id="main-content-wrapper" class="col-sm-10 col-sm-offset-1">
<ul class="breadcrumb">
<li class="active">Local Login</li>
</ul>
<div id="main-content">
<h2>Local Login</h2>
<c:if test="${not empty error}">
<div class="alert alert-danger" role="alert">Invalid credentials</div>
</c:if>
<form name='loginForm' class="form-horizontal" action="<c:url value='/localsec/login' />" method='POST'>
<input type="hidden" name="loginRedirectUrl" id="loginRedirectUrl" value="${redirectUrl}" />
<div class="form-group">
<label for="username" class="col-sm-2 control-label">Username</label>
<div class="col-sm-4">
<input type="text" class="form-control" id="username" name="username" autofocus>
</div>
</div>
<div class="form-group">
<label for="password" class="col-sm-2 control-label">Password</label>
<div class="col-sm-4">
<input type="password" class="form-control" id="password" name="password">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button name="submit" type="submit" value="submit" class="btn btn-primary">Signin</button>
</div>
</div>
</form>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button name="submit" type="submit" value="submit" class="btn btn-primary"><s:message code="~eu.dariah.de.minfba.common.local_login.signin" /></button>
</div>
</div>
</form>
</div>
</div>
\ No newline at end of file
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<tiles:importAttribute name="fluidLayout" />
<div class="jumbotron">
<div class="container<c:if test="${fluidLayout==true}">-fluid</c:if>">
<div class="row">
<div class="xs-hidden sm-visible col-sm-3 col-lg-2 col-sm-offset-1">
<div class="pull-right dariah-flower-white-83">DARIAHSP Test App</div>
</div>
</div>
</div>
</div>
<div class="container<c:if test="${fluidLayout==true}">-fluid</c:if>">
<div class="row">
<div id="main-content-wrapper" class="col-sm-10 col-sm-offset-1">
<ul class="breadcrumb">
<li class="active">Logout</li>
</ul>
<div id="main-content">
<h2>Logout</h2>
<p>
You have been logged out from the system. Close browser to complete
</p>
</div>
</div>
</div>
</div>
This diff is collapsed.
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div class="container<c:if test="${fluidLayout==true}">-fluid</c:if>">
<div class="row">
<div id="main-content-wrapper" class="col-sm-10 col-sm-offset-1">
<ul class="breadcrumb">
<li class="active">Metadata administration</li>
</ul>
<div id="main-content">
<div class="clearfix">
<h2 class="pull-left">Metadata administration</h2>
<div class="pull-right">
<form class="pull-left" action="<c:url value="/saml/web/metadata/generate"/>" method="get">
<button id="btn-sync" class="btn btn-default btn-sm">
<span class="glyphicon glyphicon-asterisk"></span> Generate new SP
</button>
</form>
<form class="pull-left" action="<c:url value="/saml/web/metadata/refresh"/>">
<button id="btn-sync" class="btn btn-default btn-sm">
<span class="glyphicon glyphicon-refresh"></span> Refresh metadata
</button>
</form>
</div>
</div>
<div class="clearfix">
<div class="well">Overview of all configured metadata for local service providers and remote identity providers.</div>
<form class="form-horizontal">
<div class="form-group">
<label class="col-sm-3 control-label">Service provider:</label>
<div class="col-sm-9">
<p class="form-control-static">
<c:forEach var="entity" items="${hostedSP}">
<a href="<c:url value="/saml/web/metadata/display"><c:param name="entityId" value="${hostedSP}"/></c:url>">
<c:out value="${hostedSP}" />
</a>
</c:forEach>
<c:if test="${empty hostedSP}"> - </c:if>
</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">Identity providers:</label>
<div class="col-sm-9">
<p class="form-control-static">
<c:forEach var="entity" items="${idpList}">
<a href="<c:url value="/saml/web/metadata/display"><c:param name="entityId" value="${entity}"/></c:url>">
<c:out value="${entity}" />
</a>
<br />
</c:forEach>
<c:if test="${empty idpList}"> - </c:if>
</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">Metadata providers:</label>
<div class="col-sm-9">
<p class="form-control-static">
<c:forEach var="entity" items="${metadata}" varStatus="status">
<a href="<c:url value="/saml/web/metadata/provider"><c:param name="providerIndex" value="${status.index}"/></c:url>">
<c:out value="${entity}" />
</a>
<br />
</c:forEach>
<c:if test="${empty metadata}"> - </c:if>
</p>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
\ No newline at end of file
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<div class="container<c:if test="${fluidLayout==true}">-fluid</c:if>">
<div class="row">
<div id="main-content-wrapper" class="col-sm-10 col-sm-offset-1">
<ul class="breadcrumb">
<li><a href='<s:url value="/saml/web/metadata" />' target="_self">Metadata administration</a></li>
<li class="active">Metadata detail</li>
</ul>
<div id="main-content">
<div class="clearfix">
<h2 class="pull-left">Metadata detail</h2>
<div class="pull-right">
<a class="pull-left btn btn-link btn-sm" href="<s:url value="/saml/web/metadata" />">
<span class="glyphicon glyphicon-arrow-left"></span> back to list
</a>
<c:choose>
<c:when test="${metadata.alias != null}">
<form class="pull-left" action="<c:url value="/saml/metadata/alias/${metadata.alias}"/>" method="get">
<button class="btn btn-default btn-sm">
<span class="glyphicon glyphicon-download-alt"></span> Download entity metadata
</button>
</form>
</c:when>
<c:otherwise>
<form class="pull-left" action="<c:url value="/saml/metadata"/>" method="get">
<button class="btn btn-default btn-sm">
<span class="glyphicon glyphicon-download-alt"></span> Download entity metadata
</button>
</form>
</c:otherwise>
</c:choose>
</div>
</div>
<div class="clearfix">
<div class="well">Detail of a single entity imported to Spring SAML's MetadataManager</div>
<c:if test="${metadata.local}">
<div class="alert alert-info" role="alert">
<strong>In order to use this metadata follow these instructions:</strong>
<ul>
<li>Download entity metadata and put in a directory that is accessible from the application server</li>
<li>Copy the supplied configuration properties and paste in application configuration file</li>
<li>Make sure to <strong>enable SAML support</strong> for the application by providing -Dsaml=true as environment parameter</li>
</ul>
</div>
</c:if>
<sf:form commandName="metadata" class="form-horizontal">
<div class="form-group">
<label class="col-sm-3 control-label">Local entity:</label>
<div class="col-sm-9">
<p class="form-control-static">
<c:out value="${metadata.local}"/>
</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">Entity ID:</label>
<div class="col-sm-9">
<p class="form-control-static">
<c:out value="${metadata.entityId}"/>
</p>
</div>
</div>
<c:if test="${metadata.local eq true}">
<div class="form-group">
<label class="col-sm-3 control-label">Entity alias:</label>
<div class="col-sm-9">
<p class="form-control-static">
<c:out value="${metadata.alias}"/>
</p>
</div>
</div>
</c:if>
<div class="form-group">
<label class="col-sm-3 control-label">Metadata:</label>
<div class="col-sm-9">
<textarea id="metadata" class="form-control" rows="7" readonly="readonly"><c:out value="${metadata.serializedMetadata}"/></textarea>
</div>
</div>
<!-- Uncomment to see spring context configuration -->
<!-- <div class="form-group">
<label class="col-sm-3 control-label">Configuration:</label>
<div class="col-sm-9">
<textarea id="configuration" readonly="readonly" class="form-control" rows="7"><c:out value="${metadata.configuration}"/></textarea>
</div>
</div> -->
<c:if test="${metadata.local}">
<div class="form-group">
<label class="col-sm-3 control-label">Configuration:</label>
<div class="col-sm-9">
<textarea id="configuration" readonly="readonly" class="form-control" rows="12"># Append these properties to your application configuration
auth:
...
saml:
...
sp:
# Modify this property to point to the downloaded SP metadata
externalMetadata: /path/to/downloaded/spring-saml-metadata.xml
alias: ${metadata.alias}
baseUrl: ${baseUrl}
entityId: ${metadata.entityId}
securityProfile: ${metadata.securityProfile}
sslSecurityProfile: ${metadata.sslSecurityProfile}
sslHostnameVerification: ${metadata.sslHostnameVerification}
signMetadata: ${metadata.signMetadata}
signingAlgorithm: ${metadata.signingAlgorithm}
signingKey: ${metadata.signingKey}
encryptionKey: ${metadata.encryptionKey}
tlsKey: ${metadata.tlsKey}
requireArtifactResolveSigned: ${metadata.requireArtifactResolveSigned}
requireAttributeQuerySigned: ${metadata.requireAttributeQuerySigned}
requireLogoutRequestSigned: ${metadata.requireLogoutRequestSigned}
requireLogoutResponseSigned: ${metadata.requireLogoutResponseSigned}
discovery:
enabled: ${metadata.includeDiscovery}
url: ${metadata.customDiscoveryURL}
return: ${metadata.customDiscoveryResponseURL}
allowedNameIds: <c:forEach begin="0" end="${fn:length(metadata.nameID) - 1}" var="index"><c:out value="${metadata.nameID[index]}"/><c:if test="${index < fn:length(metadata.nameID)-1}">, </c:if></c:forEach>
</textarea>
</div>
</div>
</c:if>
</sf:form>
</div>
</div>
</div>
</div>
</div>
\ No newline at end of file
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<div class="container<c:if test="${fluidLayout==true}">-fluid</c:if>">
<div class="row">
<div id="main-content-wrapper" class="col-sm-10 col-sm-offset-1">
<ul class="breadcrumb">
<li><a href='<s:url value="/saml/web/metadata" />' target="_self">Metadata administration</a></li>
<li class="active">Metadata provider detail</li>
</ul>
<div id="main-content">
<div class="clearfix">
<h2 class="pull-left">Metadata provider detail</h2>
<div class="pull-right">
<a class="btn btn-link btn-sm" href="<s:url value="/saml/web/metadata" />">
<span class="glyphicon glyphicon-arrow-left"></span> back to list
</a>
<a class="btn btn-default btn-sm" href="<s:url value="/saml/web/metadata/removeProvider?providerIndex=${providerIndex}" />">
<span class="glyphicon glyphicon-trash"></span> remove provider
</a>
</div>
</div>
<div>
<div class="well">Overview of a metadata provider which can include multiple SAML entities.</div>
<form class="form-horizontal">
<div class="form-group">
<label class="col-sm-2 control-label">Provider:</label>
<div class="col-sm-10">
<p class="form-control-static"><c:out value="${provider}" /></p>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
\ No newline at end of file
<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<tiles:importAttribute name="fluidLayout" />
<div class="jumbotron">
<div class="container<c:if test="${fluidLayout==true}">-fluid</c:if>">
<div class="row">
<div class="xs-hidden sm-visible col-sm-3 col-lg-2 col-sm-offset-1">
<div class="pull-right dariah-flower-white-83">DARIAHSP Test App</div>
</div>
</div>
</div>
</div>
<div class="container<c:if test="${fluidLayout==true}">-fluid</c:if>">
<div class="row">
<div id="main-content-wrapper" class="col-sm-10 col-sm-offset-1">
<ul class="breadcrumb">
<li class="active">User profile</li>
</ul>
<div id="main-content">
<h2>Home</h2>
<form class="form-horizontal">
<fieldset>
<legend>Information from your identity providers</legend>
<div class="form-group">
<label class="col-sm-3 control-label" for="user_endpoint">Original identity Provider: </label>
<div class="col-sm-9">
<p class="form-control-static">${user.endpointName}</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label" for="user_username">Username: </label>
<div class="col-sm-9">
<p class="form-control-static">${user.username}</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label" for="user_username">Home IdP Attributes: </label>
<div class="col-sm-9">
<c:if test="${user.originalAttributes!=null}">
<ul class="form-control-static" style="padding-left: 20px;">
<c:forEach items="${user.originalAttributes}" var="attr">
<li><strong>${attr.friendlyName}</strong>: ${attr.value}</li>
</c:forEach>
</ul>
</c:if>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label" for="user_username">Aggregated attributes: </label>
<div class="col-sm-9">
<c:if test="${user.aggregatedAttributes!=null}">
<ul class="form-control-static" style="padding-left: 20px;">
<c:forEach items="${user.aggregatedAttributes}" var="attr">
<li><strong>${attr.friendlyName}</strong>: ${attr.value}</li>
</c:forEach>
</ul>
</c:if>
</div>
</div>
<legend>Your assigned privileges</legend>
<div class="form-group">
<label class="col-sm-3 control-label" for="user_roles">Assigned roles: </label>
<div class="col-sm-9">
<select class="form-control uneditable-input" multiple id="user_roles">
<c:forEach items="${authorityList}" var="authority">
<option>${authority.authority}</option>
</c:forEach>
</select>
</div>
</div>
</fieldset>
</form>
</div>
</div>
</div>
</div>
<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<tiles:importAttribute name="fluidLayout" />
<div class="jumbotron">
<div class="container<c:if test="${fluidLayout==true}">-fluid</c:if>">
<div class="row">
<div class="xs-hidden sm-visible col-sm-3 col-lg-2 col-sm-offset-1">
<div class="pull-right dariah-flower-white-83">DARIAHSP Test App</div>
</div>
</div>
</div>
</div>
<div class="container<c:if test="${fluidLayout==true}">-fluid</c:if>">
<div class="row">
<div id="main-content-wrapper" class="col-sm-10 col-sm-offset-1">
<ul class="breadcrumb">
<li class="active">Home</li>
</ul>
<div id="main-content">
<h2>Insufficient Information</h2>
<p>Your home organisation did not provide sufficient attributes to this service.
In 10 seconds you will be redirected to the <a target="_self" href="${redirectUrl}">DARIAH central user registry</a> and complete your profile in order to use this service.</p>
<p>After Registration, you will be able to access your resources provided you are authorized.</p>
<h3>Actions</h3>
Either access the <strong><a target="_self" href="${redirectUrl}">DARIAH central user registry</a></strong> to complete your profile or<br />
<strong><a target="_self" href='<s:url value="/logout" />'>Logout</a></strong> to use this tool as unauthenticated user (if possible).
<h3>More Details</h3>
Home Organisation Name: <b>${user.endpointName}</b><br/>
Home Organisation entityID: <b>${user.endpointId}</b><br/>
You were trying to access the following URL: <b>${returnUrl}</b>
<script type="text/javascript">
<!--
//setTimeout(function() { window.location = "${redirectUrl}" }, 5000);
//-->
</script>
</div>
</div>
</div>
</div>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment