function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Wei Dong 10Wei Dong 10 

Can I pop up a signin in a model dialog by using configurations for Salesforce?

A very simple question,

Suppose I send a request to oauth (part of my codes are shown here):
 
<html>

<head>
    <script type="text/javascript">
        function login() {

            alert("Now you are going to log into Salesforce...");
            // According to the client_id, client_secret, you can directly
            // go to the Salesforce

            window.open('https://test.salesforce.com/services/oauth2/authorize?response_type=code&client_id=xxxx&redirect_uri=https://www.getpostman.com/oauth2/callback&display=popup');
        }
    </script>
</head>

<body>
    <button onclick="login()">Login To Salesforce</button>
</body>

</html>

I want to make it a Modal Popup, so can this be done?
Sitanshu TripathiSitanshu Tripathi
Wei Dong 10Wei Dong 10
Well……I mean if I can pop up a Modal Dialog with Oauth window of Salesforce?