![]() ![]() Return End If // At this point, your application should load the URL in a browser. This returns a URL that should be loaded in a browser. Scope = "openid profile offline_access user.readwrite mail.readwrite nd files.readwrite" // Begin the OAuth2 three-legged flow. See // Important: To get a refresh token in the final response, you have to ask for "offline_access" scope CodeChallenge = False // Provide a SPACE separated list of scopes. ClientSecret = "MICROSOFT-GRAPH-CLIENT-SECRET" ClientId = "MICROSOFT-GRAPH-CLIENT-ID" // This is your app password: TokenEndpoint = "" // Replace these with actual values. The callback URL would look like " if the port number is 3017. This should be the port in the localhost callback URL for your app. Just tell oauth2 to use the socket which has the HTTP proxy properties. OAuth2 Dim success As Boolean // We don't need to connect the socket beforehand. ![]() HttpProxyForHttp = True Dim oauth2 As New Chilkat. HttpProxyPort = 808 // Specify login/password if needed. HttpProxyHostname = "" // Change this to the listening port of your HTTP proxy server (if necessary) Socket // Use your HTTP proxy server domain or IP address. To use an HTTP proxy with OAuth2, create a Chilkat socket object and specify the details. See Global Unlock Sample for sample code. This example requires the Chilkat API to have been previously unlocked. Xojo Plugin for Windows, Linux, Mac OS X, and ARM This one happens to demonstrate for Microsoft Graph. The technique is the same for all OAuth2 applications. ![]() (Xojo Plugin) OAuth2 using an HTTP Proxy (for a Desktop Application)ĭemonstrates how to send OAuth2 communications through an HTTP proxy for a desktop application. ![]()
0 Comments
Leave a Reply. |