How to use @okta/okta-signin-widget - 3 common examples

To help you get started, we’ve selected a few @okta/okta-signin-widget 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 ERS-HCL / gatsby-atomic-themes / packages / okta-theme / src / components / auth-wrapper.js View on Github external
componentDidMount() {
		this.widget = new OktaSignIn({
			baseUrl: `${process.env.OTKA_BASE_URL}`,
			logo: `${process.env.OTKA_LOGO}`,
			redirectUri: window.location.origin,
			authParams: {
				issuer: 'default',
				responseType: ['id_token', 'token'],
				display: 'page',
			},
			features: {
				registration: false, // Enable self-service registration flow
				rememberMe: true, // Setting to false will remove the checkbox to save username
				selfServiceUnlock: false,
			},
			clientId: `${process.env.OTKA_CLIENT_ID}`,
			// Return an access token from the authorization server
			getAccessToken: true,
github okta / okta-signin-widget / test / e2e / react-app / src / OktaSignInWidget.js View on Github external
componentDidMount() {
    const el = ReactDOM.findDOMNode(this);
    this.widget = new OktaSignIn({
      baseUrl: this.props.baseUrl
    });
    this.widget.renderEl({el}, this.props.onSuccess, this.props.onError);
  }
github leebrandt / okta-react-widget-sample / src / components / auth / LoginPage.js View on Github external
constructor(){
    super();
    this.state = { user: null };
    this.widget = new OktaSignIn({
      baseUrl: 'https://{OKTA ORG}.oktapreview.com',
      clientId: '{Client ID}',
      redirectUri: 'http://localhost:3000'
    });

    this.showLogin = this.showLogin.bind(this);
    this.logout = this.logout.bind(this);
  }

@okta/okta-signin-widget

The Okta Sign-In Widget

Apache-2.0
Latest version published 13 days ago

Package Health Score

80 / 100
Full package analysis

Popular @okta/okta-signin-widget functions

Similar packages