How to use the @webex/webex-core function in @webex/webex-core

To help you get started, we’ve selected a few @webex/webex-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github webex / react-widgets / test / journeys / lib / test-users.js View on Github external
.then(({jwt}) => {
      const guestSpark = new CiscoSpark({
        credentials: {
          federation: true
        }
      });

      return guestSpark.authorization.requestAccessTokenFromJwt({jwt}).then(() =>
        // We don't have a user id for guest users until a record is looked up
        guestSpark.people.get('me').then((p) => {
          const guestUser = Object.assign({}, p);
          // id is hydra from get people, but is expected to be a uuid
          const {id} = deconstructHydraId(p.id);

          guestUser.id = id;
          const email = p.emails[0];

          guestUser.email = email;
github webex / react-widgets / test / journeys / specs / tap / widget-recents / index.js View on Github external
.then((users) => {
      [docbrown] = users;
      docbrown.spark = new CiscoSpark({
        credentials: {
          authorization: docbrown.token,
          federation: true
        },
        config: {
          logger: {
            level: 'error'
          }
        }
      });

      return docbrown.spark.internal.mercury.connect();
    }));
github webex / react-widgets / test / journeys / specs / tap / widget-space / space.js View on Github external
.then((users) => {
      [docbrown] = users;
      docbrown.spark = new CiscoSpark({
        credentials: {
          authorization: docbrown.token,
          federation: true
        },
        config: {
          logger: {
            level: 'error'
          }
        }
      });
    }));
github webex / react-widgets / test / journeys / lib / test-users.js View on Github external
users = u.map((user) => {
      const spark = new CiscoSpark({
        credentials: {
          authorization: user.token,
          federation: true
        },
        config: {
          logger: {
            level: 'error'
          }
        }
      });

      return Object.assign({}, user, {
        spark
      });
    });
github webex / react-widgets / test / journeys / specs / tap / widget-space / space.js View on Github external
.then((users) => {
      [marty] = users;
      marty.spark = new CiscoSpark({
        credentials: {
          authorization: marty.token,
          federation: true
        },
        config: {
          logger: {
            level: 'error'
          }
        }
      });

      return marty.spark.internal.mercury.connect();
    }));
github webex / react-widgets / packages / node_modules / @ciscospark / react-component-spark-oauth / src / index.js View on Github external
componentDidMount() {
    this.spark = new Spark({
      config: {
        credentials: {
          oauth: {
            client_id: this.props.clientId,
            client_secret: this.props.clientSecret,
            scope: this.props.scope,
            redirect_uri: this.props.redirectUri
          }
        },
        storage: {
          boundedAdapter: new LocalStorageStoreAdapter('ciscospark-embedded')
        }
      }
    });

    this.spark.listenToAndRun(this.spark, 'change:canAuthorize', () => {
github webex / react-widgets / packages / node_modules / @ciscospark / react-redux-spark / src / sdk.js View on Github external
export function createSDKGuestInstance(jwt, options = {}) {
  const webexSDKInstance = new Webex({
    config: defaultConfig(options)
  });

  return webexSDKInstance.authorization.requestAccessTokenFromJwt({jwt}).then(() => webexSDKInstance);
}
github webex / react-widgets / packages / node_modules / @ciscospark / react-redux-spark / src / sdk.js View on Github external
export function createSDKInstance(accessToken, options = {}) {
  const webexSDKInstance = new Webex({
    credentials: {
      authorization: {
        access_token: accessToken
      }
    },
    config: defaultConfig(options)
  });

  return Promise.resolve(webexSDKInstance);
}

@webex/webex-core

Plugin handling for Cisco Webex

MIT
Latest version published 14 days ago

Package Health Score

84 / 100
Full package analysis

Popular @webex/webex-core functions

Similar packages