
<%--
   Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <style type="text/css">
           
        </style>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	
	<link rel="stylesheet" href="/css/cloud1.css">
	<link rel="stylesheet" href="/css/cloud2.css">
      
        <title>Welcome - greeting-form-auth</title>
    </head>
    <body>
        <div id="xContentHeaderContainer">
            <div class="xContentHeader">
                <h1>
                    Oracle Java Cloud Service
                    <em>All the productivity of Java, without the IT.</em>
                </h1>
              
            </div>
        </div>
        <div id="xWhiteContentContainer" class="xContentWide">
            <div class="xWhiteContent">
                <!-- Main Content Starts Here -->
                <div class="cContentContainer">
                    <div class="innerPadding">
                        <div class="cOverviewRegion clearfix" id="R18724024455494675">
                            <h2>greeting-form-auth</h2>
      			    <p>This sample demonstrates an alternate mode of authentication to web pages. It shows how to explicitly enable FORM Authentication. The default mode of authentication is Single Sign-On. This sample shows how to overwrite the default mode with FORM based authentication. It also demonstrate how to enable role-based authorization. Once the user logs in, the sample first authenticates the user and than checks if the user has access to a web page. Access to the page is granted through special role assignment.</p>
        	            <p>You need to be part of group @principal-name@. If you are not part of this group, You will get authorization error (status 403).</p>
			    <br/>
	    <form method="POST" action="j_security_check">
            Username:
            <input type="text" name="j_username"></input>
            <br/>
            Password:
            <input type="password" name="j_password"></input>
            <br/>
            <br/>
            <input type="submit" value="Login"></input>
            <input type="reset" value="Reset"></input>
            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </body>
</html>
