Handles the creation of a web server for web based login flows.
Usage:
const oauthConfig = { loginUrl: this.flags.instanceurl, clientId: this.flags.clientid,};const oauthServer = await WebOAuthServer.create({ oauthConfig });await oauthServer.start();await open(oauthServer.getAuthorizationUrl(), { wait: false });const authInfo = await oauthServer.authorizeAndSave(); Copy
const oauthConfig = { loginUrl: this.flags.instanceurl, clientId: this.flags.clientid,};const oauthServer = await WebOAuthServer.create({ oauthConfig });await oauthServer.start();await open(oauthServer.getAuthorizationUrl(), { wait: false });const authInfo = await oauthServer.authorizeAndSave();
Static
Executes the oauth request and creates a new AuthInfo when successful
Returns the authorization url that's used for the login flow
Starts the web server
Returns the configured oauthLocalPort or the WebOAuthServer.DEFAULT_PORT
Handles the creation of a web server for web based login flows.
Usage: