{{!
  Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.

  WSO2 Inc. licenses this file to you under the Apache License,
  Version 2.0 (the "License"); you may not use this file except
  in compliance with the License.
  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing,
  software distributed under the License is distributed on an
  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  KIND, either express or implied. See the License for the
  specific language governing permissions and limitations
  under the License.
}}
{{#zone "title"}}Sign In | {{@app.conf.appName}}{{/zone}}

{{unit "uuf.unit.theme"}}
{{unit "uuf.unit.header.logo"}}{{unit "uuf.unit.header"}}
{{unit "uuf.unit.footer"}}

{{#zone "content"}}
    <div class="jumbotron">
        <p>
            You are now being redirected to Identity Server. If the redirection fails, please click
            on the button below.
        </p>

        <div>
            <form method="post" action="{{@page.params.identityProviderUrl}}">
                <input type="hidden" name="SAMLRequest"
                       value="{{@page.params.encodedSAMLAuthRequest}}" />
                <input type="hidden" name="RelayState" value="{{@page.params.relayState}}" />
                <input type="hidden" name="SSOAuthSessionID" value="{{@page.params.sessionId}}" />
                <button type="submit" class="btn btn-primary">Redirect manually</button>
            </form>
        </div>
    </div>
{{/zone}}

{{#zone "bottomJs"}}
    <script type="text/javascript">document.forms[0].submit();</script>
{{/zone}}