SyncMadeEasy/force-app/main/default/pages/SalesforceAuthentication.page

41 lines
1.9 KiB
Plaintext

<!-- <apex:page controller="salesforceAuthenticationController" showheader="false" sidebar="false" action="{!authenticateSalesforce}" > -->
<apex:page controller="salesforceAuthenticationController" showheader="false" sidebar="false" action="{!handleAuthentication}" >
<!-- <apex:page controller="salesforceAuthenticationController" showheader="false" sidebar="false" action="{!authenticate}" > -->
<style type="text/css">
input#authenticateCss:hover{background: #349cd6;
border-color: #349cd6;
color: #ffffff;}
input#authenticateCss {
display: inline-block;
padding: 13px;
text-align: center;
border: none;
font-weight: 400;
border-radius: 6px;
font-size: 16px;
line-height: 1;
color: cornflowerblue;
}
</style>
<apex:form >
<div align="center" style="margin-top: 16%;">
<input type="button" id="authenticateCss" value="Click to Authenticate via Admin Credentials" onclick="authenticateController();return false;" />
<input type="button" id="redirectToApp" value="Go to app" onclick="redirectToapp();return false;" />
</div>
<apex:actionFunction action="{!authenticate}" name="authenticateAction"/>
<apex:actionFunction action="{!redirectToApp}" name="redirectToappAction"/>
</apex:form>
<script>
function authenticateController(){
authenticateAction();
}
function redirectToapp(){
redirectToappAction();
}
</script>
</apex:page>