blob: 4f3814433f825465eb4b91b1757817ee850c6da5 [file] [log] [blame]
Copyright 2010 Newcastle University
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF 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
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.
<%@ taglib uri="" prefix="c" %>
<%@ taglib prefix="form" uri="" %>
<%@ page session="false" %>
<%--@elvariable id="oauthParams" type="org.apache.oltu.oauth2.client.demo.model.OAuthParams"--%>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="<c:url value="/css/bootstrap.min.css"/>" rel="stylesheet" media="screen">
<title>Apache Oltu - OAuth V2.0 Client Application</title>
<jsp:include page="components/_header.jsp"/>
<div class="container">
<div class="page-header">
<h2>Web Server Flow
<small>Step 2. Get Access Token</small></h2>
<c:if test="${!empty oauthParams.errorMessage}">
<div class="alert alert-danger">${oauthParams.errorMessage}</div>
<c:url var="actionUrl" value="/get_token"/>
<form:form commandName="oauthParams" cssClass="form-horizontal clearfix" action="${actionUrl}">
<div class="form-group">
<label for="authzCode" class="col-lg-3 control-label">Authorization Code</label>
<div class="col-lg-9"><form:input class="form-control" id="authzCode" path="authzCode" /></div>
<div class="form-group">
<label for="authzEndpoint" class="col-lg-3 control-label">Authorization URL</label>
<div class="col-lg-9"><form:input class="form-control" id="authzEndpoint" path="authzEndpoint" /></div>
<div class="form-group">
<label for="tokenEndpoint" class="col-lg-3 control-label">Token Endpoint</label>
<div class="col-lg-9"><form:input class="form-control" id="tokenEndpoint" path="tokenEndpoint" /></div>
<div class="form-group">
<label for="clientId" class="col-lg-3 control-label">Client ID</label>
<div class="col-lg-9"><form:input class="form-control" id="clientId" path="clientId" /></div>
<div class="form-group">
<label for="clientSecret" class="col-lg-3 control-label">Client Secret</label>
<div class="col-lg-9"><form:input class="form-control" id="clientSecret" path="clientSecret" /></div>
<div class="form-group">
<label for="redirectUri" class="col-lg-3 control-label">Redirect URI</label>
<div class="col-lg-9"><form:input class="form-control" id="redirectUri" path="redirectUri" /></div>
<div class="form-group">
<label for="state" class="col-lg-3 control-label">Client State</label>
<div class="col-lg-9"><form:input class="form-control" id="state" path="state" /></div>
<form:hidden path="application" />
<input type="submit" class="btn btn-primary pull-right" value="Get Token" />