<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Log in to Perforce</title>
<link rel="stylesheet" href="/webjars/bootstrap/3.1.1/css/bootstrap.min.css">
<link rel="stylesheet" href="/webjars/bootstrap/3.1.1/css/bootstrap-theme.min.css">
</head>
<body>
<div class="container">
<h1> Log In to Perforce </h1>
<form action="/grants/authorization_code/finish" method="POST">
<fieldset class="form-group">
<label for="client_id" >Login:</label>
<input type="text" class="form-control" name="client_id" value="{{login}}" placeholder="Enter Perforce Login" />
</fieldset>
<fieldset class="form-group">
<label for="password">Password:</label>
<input type="password" class="form-control" name="password" placeholder="Enter Perforce Password" />
</fieldset>
<input type="hidden" name="redirect_uri" value="{{redirectUri}}">
{{#if state}}
<input type="hidden" name="state" value="{{.}}" />
{{/if}}
<div class="form-group">
<button type="submit" class="btn btn-primary">Log In</button>
</div>
</form>
</div>
</body>
</html>
#
Change
User
Description
Committed
#1
9089
tjuricek
Moving some code that worked via some manual validation to the workshop.
This just implements a basic code authorization grant scheme. Automated tests are forthcoming, awating some gradle plugin work that should sit outside of this project.