Skip to content

Commit

Permalink
feat: support oauth s2s migration credential type (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelGoberling authored Jun 15, 2023
1 parent 5aa527d commit 09b7566
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/BaseCommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const CONSOLE_API_KEY = 'aio-cli-console-auth'
const EVENTS_CONFIG_KEY = 'events'
const JWT_INTEGRATION_TYPE = 'service'
const OAUTH_SERVER_TO_SERVER_INTEGRATION_TYPE = 'oauth_server_to_server'
const OAUTH_SERVER_TO_SERVER_MIGRATE_INTEGRATION_TYPE = 'oauth_server_to_server_migrate'

class BaseCommand extends Command {
async initSdk () {
Expand Down Expand Up @@ -128,6 +129,7 @@ class BaseCommand extends Command {
const workspaceIntegration = workspaceConfig.details.credentials &&
workspaceConfig.details.credentials.find(c => {
return c.integration_type === OAUTH_SERVER_TO_SERVER_INTEGRATION_TYPE ||
c.integration_type === OAUTH_SERVER_TO_SERVER_MIGRATE_INTEGRATION_TYPE ||
c.integration_type === JWT_INTEGRATION_TYPE
})
if (!workspaceIntegration) {
Expand Down

0 comments on commit 09b7566

Please sign in to comment.