<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="o" tagdir="/WEB-INF/tags"%>
<o:header title="Login"/>
<o:topbar />
<div class="container-fluid main">
    <div class="row-fluid">
        <div class="span10 offset1">

            <h2>Log In</h2>

            <p>Use this page to log in by entering an <code>issuer URI</code> or a <code>webfinger identifier</code>.
            Use the buttons to pre-fill the form with a known identifier.</p>

            <div class="well">
                <div class="row-fluid">

                    <div class="span2">
                        <button class="btn" id="localhost">Local MITREid Connect Server (default setup)</button>
                    </div>

                    <div class="span2">
                        <button class="btn" id="mitreidorg">mitre.org integration site demo user</button>
                    </div>
                </div>

                </br>
                <div class="row-fluid">
                    <div class="span8">
                        <form action="openid_connect_login" method="get">
                            <input type="text" class="input-xxlarge" name="identifier" id="identifier" />
                            <input type="submit" value="Log In" />
                        </form>
                    </div>

                </div>

        </div>
    </div>
</div>

<script type="text/javascript">
    $(document).ready(function () {
        $('#identifier').val('${properties["server.url"]}');
    });
</script>
<o:footer />
