Skip to content

Commit

Permalink
Changes for Heroku integration
Browse files Browse the repository at this point in the history
  • Loading branch information
vijetmahabaleshwar-okta committed Sep 13, 2021
1 parent fe63060 commit 1481e52
Show file tree
Hide file tree
Showing 7 changed files with 10,797 additions and 18,970 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,21 @@ PASSWORD=testpass
```

With variables set, run `npm test`

## Quick Start: Automatic Setup with Heroku

You need a [Heroku](https://signup.heroku.com/) account to follow these instructions.

You can create a free Okta Developer org and deploy this app directly to Heroku by clicking the purple button:

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)

After you deploy the app, click on **View** on the result screen to navigate to the newly deployed app.

Open your browser's developer tools view and choose the **Network** tab.

Click **Profile (pkce)** at the top of the app. You are redirected to your Okta org to authenticate. BUT, you won't yet know the credentials.

Back on the result tab from the deployment, click on **Manage App**. This brings you to the Heroku dashboard for the app. Click **Settings** and then **Reveal Config Vars**. Here, you see values for `OKTA_ADMIN_EMAIL` and `OKTA_ADMIN_PASSWORD`. You can use these values to login to the app on the other tab.

After you login, you'll see an `ID Token`, `Access Token` and profile details.
33 changes: 33 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "Custom Login Sample",
"description": "Sample that demonstrates use of Custom Login/Embedded Sign-in Widget",
"repository": "https://github.com/okta/samples-js-vue/custom-login",
"keywords": ["oidc", "identity", "security", "authentication"],
"success_url": "/",
"env": {
"ISSUER": {
"description": "Issuer URL for your org",
"value": "https://qa-st-cda1.oktapreview.com/oauth2/default"
},
"CLIENT_ID": {
"description": "Client ID for your application",
"value": "0oa1mb3urzAsFdkNc0x7"
},
"NPM_CONFIG_PRODUCTION": {
"description": "npm config production",
"value": "false"
},
"OKTA_TESTING_DISABLEHTTPSCHECK": {
"description": "Okta test disable https check",
"value": "false"
},
"USE_INTERACTION_CODE": {
"description": "Use interaction code flow",
"value": "true"
},
"YARN_PRODUCTION": {
"description": "Yarn production",
"value": "false"
}
}
}
18 changes: 18 additions & 0 deletions custom-login/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,24 @@ This example shows you how to use the [Okta Vue Library][] to log in a user to a

This example is built with the [Vue CLI][].

## Quick Start: Automatic Setup with Heroku

You need a [Heroku](https://signup.heroku.com/) account to follow these instructions.

You can create a free Okta Developer org and deploy this app directly to Heroku by clicking the purple button:

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)

After you deploy the app, click on **View** on the result screen to navigate to the newly deployed app.

Open your browser's developer tools view and choose the **Network** tab.

Click **Profile (pkce)** at the top of the app. You are redirected to your Okta org to authenticate. BUT, you won't yet know the credentials.

Back on the result tab from the deployment, click on **Manage App**. This brings you to the Heroku dashboard for the app. Click **Settings** and then **Reveal Config Vars**. Here, you see values for `OKTA_ADMIN_EMAIL` and `OKTA_ADMIN_PASSWORD`. You can use these values to login to the app on the other tab.

After you login, you'll see an `ID Token`, `Access Token` and profile details.

## Prerequisites

Before running this sample, you will need the following:
Expand Down
Loading

0 comments on commit 1481e52

Please sign in to comment.