Project

General

Profile

1
##
2
## Velocity Template for DisplayUsernamePasswordPage view-state
3
##
4
## Velocity context will contain the following properties
5
## flowExecutionUrl - the form action location
6
## flowRequestContext - the Spring Web Flow RequestContext
7
## flowExecutionKey - the SWF execution key (this is built into the flowExecutionUrl)
8
## profileRequestContext - root of context tree
9
## authenticationContext - context with authentication request information
10
## authenticationErrorContext - context with login error state
11
## authenticationWarningContext - context with login warning state
12
## ldapResponseContext - context with LDAP state (if using native LDAP)
13
## rpUIContext - the context with SP UI information from the metadata
14
## extendedAuthenticationFlows - collection of "extended" AuthenticationFlowDescriptor objects
15
## passwordPrincipals - contents of the shibboleth.authn.Password.PrincipalOverride bean
16
## encoder - HTMLEncoder class
17
## request - HttpServletRequest
18
## response - HttpServletResponse
19
## environment - Spring Environment object for property resolution
20
## custom - arbitrary object injected by deployer
21
##
22
#set ($rpContext = $profileRequestContext.getSubcontext('net.shibboleth.idp.profile.context.RelyingPartyContext'))
23
#set ($username = $authenticationContext.getSubcontext('net.shibboleth.idp.authn.context.UsernamePasswordContext', true).getUsername())
24
#set ($passwordEnabled = false)
25
#if (!$passwordPrincipals or $passwordPrincipals.isEmpty() or $authenticationContext.isAcceptable($passwordPrincipals))
26
  #set ($passwordEnabled = true)
27
#end
28
##
29
<!DOCTYPE html>
30
<html lang="en-gb" dir="ltr" vocab="http://schema.org/">
31
    <head>
32
        <meta charset="utf-8">
33
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
34
        <meta name="viewport" content="width=device-width,initial-scale=1.0">
35
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
36
	<meta name="description" content="OpenAIRE SSO"/>
37
	<link rel="icon" type="image/png" sizes="32x32" href="$request.getContextPath()/images/favicon/favicon-32x32.png">
38
	<link rel="icon" type="image/png" sizes="96x96" href="$request.getContextPath()/images/favicon//favicon-96x96.png">
39
	<link rel="icon" type="image/png" sizes="16x16" href="$request.getContextPath()/images/favicon/favicon-16x16.png">
40
	<link href="$request.getContextPath()/images/favicon/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
41
        <title>#springMessageText("idp.title", "Web Login Service")</title>
42
        ## <link rel="stylesheet" type="text/css" href="$request.getContextPath()/css/main.css">
43

    
44
	<script src="$request.getContextPath()/js/jquery.js"></script>
45
	<script src="$request.getContextPath()/js/uikit.js"></script>
46
        <link rel="stylesheet" type="text/css" href="$request.getContextPath()/css/theme.css">
47
        <link rel="stylesheet" type="text/css" href="$request.getContextPath()/css/custom.css">
48
        <link rel="stylesheet" type="text/css" href="$request.getContextPath()/css/aai-custom.css">
49
    </head>
50

    
51
    <body class="" style="">
52
    <div class="uk-offcanvas-content uk-height-viewport">
53
        <!-- MENU STARTS HERE-->
54
        <div class="tm-header  tm-header-transparent" uk-header="">
55
         <div class="uk-container uk-container-expand">
56
           <nav class="uk-navbar" uk-navbar="{&quot;align&quot;:&quot;left&quot;}">
57
             <div class="uk-navbar-center">
58
               <div class="uk-logo uk-navbar-item">
59
                 <img alt="OpenAIRE" class="uk-responsive-height" src="$request.getContextPath()/images/Logo_Horizontal.png">
60
               </div>
61
             </div>
62
           </nav>
63
         </div>
64
        </div>
65
        <!-- MENU ENDS HERE -->
66
         <div class="first_page_section uk-section-default uk-section uk-padding-remove-vertical">
67
            <div class="first_page_banner_headline uk-grid-collapse uk-flex-middle uk-margin-remove-vertical uk-grid" uk-grid="">
68
            </div>
69
         </div>
70

    
71
         <div class=" uk-section  uk-margin-large-top tm-middle custom-main-content" id="tm-main">
72
            <div class="uk-container">
73
               <div uk-grid="" class="uk-grid uk-grid-stack">
74
                  <div class="tm-main uk-width-1-1@s uk-width-1-1@m  uk-width-1-2@l uk-align-center">
75

    
76
                    <div class="uk-child-width-1-2@m uk-grid-small uk-grid-match" uk-grid>
77
                      <div>
78
            #parse("login-error.vm")
79

    
80
            <form action="$flowExecutionUrl" method="post">
81

    
82
            #set ($serviceName = $rpUIContext.serviceName)
83
            #if ($serviceName && !$rpContext.getRelyingPartyId().contains($serviceName))
84
              <p>
85
                #springMessageText("idp.login.loginTo", "Login to") $encoder.encodeForHTML($serviceName)
86
              </p>
87
            #end
88
                        
89
            #if ($passwordEnabled)
90
              <div class="form-element-wrapper">
91
                <label for="username">#springMessageText("idp.login.username", "Username")</label>
92
                <input class="form-element form-field" id="username" name="j_username" type="text"
93
                	value="#if($username)$encoder.encodeForHTML($username)#end">
94
              </div>
95

    
96
              <div class="form-element-wrapper">
97
                <label for="password">#springMessageText("idp.login.password", "Password")</label>
98
                <input class="form-element form-field" id="password" name="j_password" type="password" value="">
99
              </div>
100

    
101
              <p>
102
                <input type="checkbox" name="donotcache" value="1" id="donotcache">
103
                <label for="donotcache">#springMessageText("idp.login.donotcache", "Don't remember login")</label>
104
               </p>
105
            #end
106

    
107
		<p>
108
                <input id="_shib_idp_revokeConsent" type="checkbox" name="_shib_idp_revokeConsent" value="true">
109
                <label for="_shib_idp_revokeConsent">#springMessageText("idp.attribute-release.revoke", "Clear prior granting of permission for release of your information to this service.")</label>
110
              </p>
111

    
112
            #if ($passwordEnabled)
113
              <div class="form-element-wrapper">
114
                <button class="uk-button uk-button-primary" type="submit" name="_eventId_proceed"
115
                    onClick="this.childNodes[0].nodeValue='#springMessageText("idp.login.pleasewait", "Logging in, please wait...")'"
116
                    >#springMessageText("idp.login.login", "Login")</button>
117
              </div>
118
            #end
119

    
120
            #foreach ($extFlow in $extendedAuthenticationFlows)
121
              #if ($authenticationContext.isAcceptable($extFlow) and $extFlow.apply(profileRequestContext))
122
                <div class="form-element-wrapper">
123
                  <button class="form-element form-button" type="submit" name="_eventId_$extFlow.getId()">
124
                    #springMessageText("idp.login.$extFlow.getId().replace('authn/','')", $extFlow.getId().replace('authn/',''))
125
                  </button>
126
                </div>
127
              #end
128
            #end
129
            </form>
130
			#*
131
              //
132
              //    SP Description & Logo (optional)
133
              //    These idpui lines will display added information (if available
134
              //    in the metadata) about the Service Provider (SP) that requested
135
              //    authentication. These idpui lines are "active" in this example
136
              //    (not commented out) - this extra SP info will be displayed.
137
              //    Remove or comment out these lines to stop the display of the
138
              //    added SP information.
139
              //
140
            *#
141
            #set ($logo = $rpUIContext.getLogo())
142
            #if ($logo)
143
	    <p>
144
              <img src= "$encoder.encodeForHTMLAttribute($logo)"
145
                  alt="$encoder.encodeForHTMLAttribute($serviceName)" style="float: left;">
146
            #end
147
            #set ($desc = $rpUIContext.getServiceDescription())
148
            #if ($desc)
149
              $encoder.encodeForHTML($desc)
150
            #end
151
	    </p>
152
	  </div>
153

    
154
            
155
          <div>
156
            <ul class="list list-help uk-list uk-margin-left">
157
              #if ($passwordEnabled)
158
                <li class="list-help-item"><a href="#springMessageText("idp.url.password.reset", "#")"> #springMessageText("idp.login.forgotPassword", "Forgot your password?")</a></li>
159
              #end
160
                <li class="list-help-item"><a href="#springMessageText("openaire.username.reset", "#")"> #springMessageText("openaire.username.forgot", "Forgot your username?")</a></li>
161
              <li class="list-help-item"><a href="#springMessageText("idp.url.helpdesk", "#")"> #springMessageText("idp.login.needHelp", "Need help?")</a></li>
162
                <li class="list-help-item"><a href="#springMessageText("openaire.delete.url", "#")"> #springMessageText("openaire.delete.msg", "Delete account")</a></li>
163
            </ul>
164
	    </div>
165
          </div>
166
        </div>
167
      </div>
168
      </div>
169
      </div>
170
      <!-- FOOTER STARTS HERE-->
171
         <div class="custom-footer">
172
            <div class="uk-section-primary uk-section uk-section-small">
173
               <div class="uk-container">
174
                  <div class="uk-grid-margin uk-grid uk-grid-stack" uk-grid="">
175
                     <div class="uk-width-1-1@m uk-first-column">
176
                        <div class="uk-margin uk-margin-remove-top uk-margin-remove-bottom uk-text-center">
177
                           <img alt="OpenAIRE" class="el-image" src="$request.getContextPath()/images/Logo_Horizontal_white_small.png">
178
                        </div>
179
                        <div class="footer-license uk-margin uk-margin-remove-bottom uk-text-center uk-text-lead">
180
                           <div><a href="http://creativecommons.org/licenses/by/4.0/" rel="license" target="_blank"><img alt="Creative" src="$request.getContextPath()/images/80x15.png" style="height: auto; max-width: 100%; vertical-align: middle;"></a>&nbsp;UNLESS OTHERWISE INDICATED, ALL MATERIALS CREATED BY THE OPENAIRE CONSORTIUM ARE LICENSED UNDER A&nbsp;<a href="http://creativecommons.org/licenses/by/4.0/" rel="license">CREATIVE COMMONS ATTRIBUTION 4.0 INTERNATIONAL LICENSE</a>.</div>
181
                           <div>OPENAIRE IS POWERED BY&nbsp;<a href="http://www.d-net.research-infrastructures.eu/" target="_blank">D-NET</a>.</div>
182
                        </div>
183
                        <div class="uk-margin uk-margin-remove-top uk-margin-remove-bottom uk-text-right">
184
                           <a class="uk-totop uk-icon" href="#" uk-scroll="" uk-totop=""></a>
185
                        </div>
186
                     </div>
187
                  </div>
188
               </div>
189
            </div>
190
	    <!-- FOOTER ENDS HERE-->
191
         </div>
192
	 </div>
193

    
194
    
195
 	</body>
196
</html>
(5-5/13)