added taglib hack
parent
e00bba7ede
commit
7375d00e88
|
@ -29,7 +29,7 @@
|
|||
<!-- Import the data context -->
|
||||
<import resource="data-context.xml" />
|
||||
|
||||
<!-- Spring Security configuration -->
|
||||
<!-- Spring Security configuration -->
|
||||
<security:http pattern="/oauth/token" create-session="stateless" authentication-manager-ref="clientAuthenticationManager"
|
||||
entry-point-ref="oauthAuthenticationEntryPoint">
|
||||
<security:intercept-url pattern="/oauth/token" access="IS_AUTHENTICATED_FULLY" />
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<div class="span2">
|
||||
<div class="well sidebar-nav">
|
||||
<ul class="nav nav-list">
|
||||
<security:authorize ifAllGranted="ROLE_ADMIN">
|
||||
<security:authorize ifAnyGranted="ROLE_ADMIN">
|
||||
<li class="nav-header">Administrative</li>
|
||||
<li><a href="admin/manage/clients">Manage Clients</a></li>
|
||||
<li><a href="#">White Lists</a></li>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
||||
<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %>
|
||||
<div class="navbar navbar-fixed-top">
|
||||
<div class="navbar-inner">
|
||||
|
@ -16,6 +17,9 @@
|
|||
<li><a href="#contact">Contact</a></li>
|
||||
</ul>
|
||||
<p class="navbar-text pull-right">
|
||||
|
||||
<security:authentication property="authorities" var="roles"/>
|
||||
|
||||
<security:authorize ifAllGranted="ROLE_USER">
|
||||
Logged in as <a href="#"><%= request.getUserPrincipal().getName() %></a>
|
||||
</security:authorize>
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
|
||||
<o:header title="welcome"/>
|
||||
<o:topbar/>
|
||||
<div class="container<security:authorize ifAllGranted="ROLE_USER">-fluid</security:authorize>">
|
||||
<div class="row<security:authorize ifAllGranted="ROLE_USER">-fluid</security:authorize>">
|
||||
<security:authorize ifAllGranted="ROLE_USER">
|
||||
<div class="container<security:authorize ifAnyGranted="ROLE_USER">-fluid</security:authorize>">
|
||||
<div class="row<security:authorize ifAnyGranted="ROLE_USER">-fluid</security:authorize>">
|
||||
<security:authorize ifAnyGranted="ROLE_USER">
|
||||
<o:sidebar/>
|
||||
</security:authorize>
|
||||
<div<security:authorize ifAllGranted="ROLE_USER"> class="span10"</security:authorize>>
|
||||
<div<security:authorize ifAnyGranted="ROLE_USER"> class="span10"</security:authorize>>
|
||||
<!-- Main hero unit for a primary marketing message or call to action -->
|
||||
<div class="hero-unit">
|
||||
<h1>Welcome!</h1>
|
||||
|
@ -22,7 +22,7 @@
|
|||
<p><a class="btn btn-primary btn-large" href="http://openid.net/connect/">Learn more »</a></p>
|
||||
</div>
|
||||
<!-- Example row of columns -->
|
||||
<div class="row<security:authorize ifAllGranted="ROLE_USER">-fluid</security:authorize>">
|
||||
<div class="row<security:authorize ifAnyGranted="ROLE_USER">-fluid</security:authorize>">
|
||||
<div class="span6">
|
||||
<h2>About</h2>
|
||||
|
||||
|
@ -49,7 +49,7 @@
|
|||
</div>
|
||||
<hr>
|
||||
<!-- Example row of columns -->
|
||||
<div class="row<security:authorize ifAllGranted="ROLE_USER">-fluid</security:authorize>">
|
||||
<div class="row<security:authorize ifAnyGranted="ROLE_USER">-fluid</security:authorize>">
|
||||
<div class="span12">
|
||||
<h2>Current Statistics</h2>
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
<% } %>
|
||||
<c:remove scope="session" var="SPRING_SECURITY_LAST_EXCEPTION"/>
|
||||
|
||||
<authz:authorize ifAllGranted="ROLE_USER">
|
||||
<authz:authorize ifAnyGranted="ROLE_USER">
|
||||
|
||||
<div class="hero-unit" style="text-align:center">
|
||||
<h1>Please Confirm!</h1>
|
||||
|
|
|
@ -3,8 +3,6 @@
|
|||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
|
||||
|
||||
|
||||
|
||||
<!-- filter through Spring Security -->
|
||||
|
||||
<filter>
|
||||
|
|
Loading…
Reference in New Issue