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 href="$request.getContextPath()/images/favicon.ico" />
38
  <title>#springMessageText("idp.title", "Web Login Service")</title>
39

    
40
  <script src="$request.getContextPath()/js/jquery.js"></script>
41
  <script src="$request.getContextPath()/js/uikit.js"></script>
42
  <link rel="stylesheet" type="text/css" href="$request.getContextPath()/css/theme.css">
43
  <link rel="stylesheet" type="text/css" href="$request.getContextPath()/css/custom.css">
44
  <link rel="stylesheet" type="text/css" href="$request.getContextPath()/css/aai-custom.css">
45
</head>
46

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

    
67
    <div class=" uk-section  uk-margin-large-top tm-middle custom-main-content" id="tm-main">
68
      <div class="uk-container">
69
        <div uk-grid="" class="uk-grid uk-grid-stack">
70
          <div class="tm-main uk-width-1-1@s uk-width-1-1@m  uk-width-1-2@l uk-align-center">
71

    
72
            <div class="uk-child-width-1-2@m uk-grid-small uk-grid-match" uk-grid>
73
              <div>
74
                #parse("login-error.vm")
75

    
76
                <form action="$flowExecutionUrl" method="post">
77

    
78
                  #set ($serviceName = $rpUIContext.serviceName)
79
                  #if ($serviceName && !$rpContext.getRelyingPartyId().contains($serviceName))
80
                  <p>
81
                    #springMessageText("idp.login.loginTo", "Login to") $encoder.encodeForHTML($serviceName)
82
                  </p>
83
                  #end
84

    
85
                  #if ($passwordEnabled)
86
                  <div class="form-element-wrapper">
87
                    <label for="username">#springMessageText("idp.login.username", "Username")</label>
88
                    <input class="form-element form-field" id="username" name="j_username" type="text"
89
                    value="#if($username)$encoder.encodeForHTML($username)#end">
90
                  </div>
91

    
92
                  <div class="form-element-wrapper">
93
                    <label for="password">#springMessageText("idp.login.password", "Password")</label>
94
                    <input class="form-element form-field" id="password" name="j_password" type="password" value="">
95
                  </div>
96

    
97
                  <p>
98
                    <input type="checkbox" name="donotcache" value="1" id="donotcache">
99
                    <label for="donotcache">#springMessageText("idp.login.donotcache", "Don't Remember Login")</label>
100
                  </p>
101
                  #end
102

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

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

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

    
150

    
151
              <div>
152
                <ul class="list list-help">
153
                  #if ($passwordEnabled)
154
                  <li class="list-help-item"><a href="#springMessageText("idp.url.password.reset", "#")"> #springMessageText("idp.login.forgotPassword", "Forgot your password?")</a></li>
155
                  #end
156
                  <li class="list-help-item"><a href="#springMessageText("openaire.username.reset", "#")"> #springMessageText("openaire.username.forgot", "Forgot your username?")</a></li>
157
                  <li class="list-help-item"><a href="#springMessageText("idp.url.helpdesk", "#")"> #springMessageText("idp.login.needHelp", "Need Help?")</a></li>
158
                </ul>
159
              </div>
160
            </div>
161
          </div>
162
        </div>
163
      </div>
164
    </div>
165
    <!-- FOOTER STARTS HERE-->
166
    <div class="custom-footer">
167
      <div class="uk-section-primary uk-section uk-section-small">
168
        <div class="uk-container">
169
          <div class="uk-grid-margin uk-grid uk-grid-stack" uk-grid="">
170
            <div class="uk-width-1-1@m uk-first-column">
171
              <div class="uk-margin uk-margin-remove-top uk-margin-remove-bottom uk-text-center">
172
                <img alt="OpenAIRE" class="el-image" src="$request.getContextPath()/images/Logo_Horizontal_white_small.png">
173
              </div>
174
              <div class="footer-license uk-margin uk-margin-remove-bottom uk-text-center uk-text-lead">
175
                <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>
176
                <div>OPENAIRE IS POWERED BY&nbsp;<a href="http://www.d-net.research-infrastructures.eu/" target="_blank">D-NET</a>.</div>
177
              </div>
178
              <div class="uk-margin uk-margin-remove-top uk-margin-remove-bottom uk-text-right">
179
                <a class="uk-totop uk-icon" href="#" uk-scroll="" uk-totop=""></a>
180
              </div>
181
            </div>
182
          </div>
183
        </div>
184
      </div>
185
    </div>
186
    <!-- FOOTER ENDS HERE-->
187
  </div>
188

    
189

    
190
</body>
191
</html>
(5-5/12)