On this page

The sample app is the Golang embedded Sign-In Widget sample app (archived).

  1. Configure your Okta org by completing the steps in Set up your Okta org for a password factor only use case.
  2. Download and set up the sample app.
  3. Open the embedded widget project using Visual Studio Code or your preferred IDE. The directory path to the sample app directory is: samples-golang/identity-engine/embedded-sign-in-widget.
  4. Add an okta.yaml configuration file. See Option 1: Create a configuration file for more information on how to configure and where to place the configuration file.
  5. From the command line:
    1. Go to the project directory (/samples-golang/identity-engine/embedded-sign-in-widget/).
    2. Call go get to install dependencies.
    3. Call go run main.go to start the app.
  6. In a web browser, go to http://localhost:8000/. The app's landing page appears.
  7. Click Login.
  8. On the sign-in page, enter the username (email) and password that you've used in Create your Okta account.
  9. If you successfully sign in, you see a signed in page customized with your name.

Troubleshoot

  • If the "There was an unexpected internal error. Please try again." message appears instead of the Sign-In Widget, then verify that CORS is enabled. Follow the steps in Add a trusted origin and enable CORS to enable CORS.

Start your work with the use cases

After you successfully run the sample app, the next step is to build your integration. Use the sample app as your guide. See Load the Widget to start using the Widget and explore the available use cases.