- Notifications
You must be signed in to change notification settings - Fork 3
Authentication
Scott Reeves edited this page Oct 28, 2020
·
4 revisions
VB6-Web comes with a few authenticators out-of-the-box and you can create your own
(Make sure the desired authenticator class is included in the project)
DimClientAsNewWebClient' Create a new IAuthenticator implementationDimAuthAsNew...Authenticator' Setup authenticator...' Attach the authenticator to the clientSetClient.Authenticator=AuthThis is the standard Username + Password flow.
Note: The Username and Password are encoded, but not encrypted so https must be used when accessing services for the transmission to be secure
DimAuthAsNewHttpBasicAuthenticatorAuth.Setup_Username:="Your username",_Password:="Your password"This is the standard OAuth 1.0 flow, using a Consumer key and secret, and Token key and secret to authorize requests.
DimAuthAsnewOAuth1AuthenticatorAuth.Setup_ConsumerKey:="Your consumer key",_ConsumerSecret:="Your consumer secret",_Token:="Your token",_TokenSecret:="Your token secret",_Realm:="Optional realm"Currently VB6-Web supports only the client-credentials flow of OAuth 2.0.
Notes:
- This authenticator was developed specifically for Salesforce implementation, so it may not be compatible with other APIs that implement OAuth 2.0.
- The Username and Password are encoded, but not encrypted so https must be used when accessing services for the transmission to be secure
DimAuthAsnewOAuth2AuthenticatorAuth.Setup_ClientId:="Your client id",_ClientSecret:="Your client secret",_Username:="Your username",_Password:="Your password"Can't find an authenticator that meets your needs? Create your own! Check out the Implementing your own IAuthenticator example for details.