
<%--
   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-basic-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-basic-auth</h2>
      			    <p>This sample demonstrates an alternate mode of authentication to web pages. It shows how to explicitly enable Basic Authentication. Generally, the default mode of authentication is Single Sign-On. This sample shows how users overwrite the default mode with basic 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 servlet. Access to the servlet 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/>
			    <a href="secured.jsp">Click here to test.</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </body>
</html>
