Fetching contributors…
Cannot retrieve contributors at this time
45 lines (41 sloc) 2.09 KB
{% extends 'html.html.twig' %}
{% set head_title = 'Form-based Authentication | AuthBucket\\OAuth2' %}
{% block page %}
<div class="container">
<div class="row">
<div class="col-md-12">
<h1 class="page-header">Form-based Authentication</h1>
<p>The authorization server MUST first verify the identity of the resource owner.</p>
<footer><a href="">3.1. Authorization Endpoint</a></footer>
<h2 class="page-header">Login Form</h2>
<form action="{{ path('demo_authorize_login_check') }}" method="post" role="form">
{% if error is not empty %}
<div class="alert alert-danger alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span></button>
{{ error }}
{% endif %}
<div class="form-group">
<input class="form-control" type="text" name="_username" value="{{ _username }}" />
<div class="form-group">
<input class="form-control" type="password" name="_password" value="{{ _password }}" />
<div class="checkbox">
<input type="checkbox" name="_remember_me" /> Remember me
<div class="form-group">
<button class="btn btn-success" type="submit" name="submit">Login</button>
<p><a class="btn btn-primary" role="button" href="{{ path('demo') }}">Return</a></p>
{% endblock %}