-
Notifications
You must be signed in to change notification settings - Fork 268
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: E2E test flows + new app harness (#256)
* test: E2E test flows + new app harness * feedback from Brett
- Loading branch information
1 parent
037d912
commit 2a6a631
Showing
39 changed files
with
14,500 additions
and
10,895 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
.DS_Store | ||
dist | ||
target | ||
node_modules/* | ||
node_modules | ||
build2 | ||
test/SpecRunner.html | ||
npm-debug.log | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
node_modules/ | ||
.env | ||
.yalc | ||
*.lock | ||
*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,37 @@ | ||
# test-app | ||
|
||
The following enironment variables are **required**. You can use a [.env file](https://github.com/motdotla/dotenv#usage) in this directory. | ||
By default the app server runs at `http://localhost:8080`. The callback redirect URI is `http://localhost:8080/implicit/callback` | ||
|
||
* `CLIENT_ID` - abc12 | ||
* `ISSUER` - x.okta.com/oauth2/default | ||
## Commands | ||
|
||
If running from the workspace directory, add the `--cwd` option: `yarn --cwd test/e2e start` | ||
|
||
The following parameters are accepted in the URL: | ||
| Command | Description | | ||
| --------------------- | ------------------------------ | | ||
| `yarn start` | Starts the app server in headless mode | | ||
| `yarn start:dev` | Start the app server and open a new browser window | | ||
|
||
* `pkce` - set PKCE flow | ||
## Configuring via URL parameters | ||
|
||
The following config parameters are accepted in the URL as encoded query parameters: | ||
|
||
* `clientId` - set the client ID | ||
* `issuer` - set the issuer | ||
* `pkce` - true|false enable PKCE flow | ||
* `scopes` - set the scopes passed during OAuth flow. Comma delimited. | ||
* `responseType` - set the responseType passed during OAuth flow. Comma delimited. | ||
|
||
Params can be used together: | ||
`http://localhost:8080/?scopes=openid,email&responseType=id_token,token` | ||
Example: | ||
|
||
```html | ||
http://localhost:8080/?issuer=https%3A%2F%2Fabc.oktapreview.com%2Foauth2%2Fdefault&clientId=01234567xcdfgC80h7&pkce=false=openid,email&responseType=id_token,token | ||
``` | ||
|
||
## Configuring via environment variables | ||
|
||
Using environment variables is **optional**. They provide default values in the form only if **no** query parameters are provided in the URL. If **any** query parameters are passed, then **all** parameters will be read from the URL and environment variables will be ignored. | ||
|
||
Environment variables are read from a file named `testenv`, if it exists, in the workspace directory. The format is that of a basic "ini" file. See [dotenv](https://www.npmjs.com/package/dotenv) for more details on this file format. | ||
|
||
* `CLIENT_ID` - abc12 | ||
* `ISSUER` - x.okta.com/oauth2/default |
Oops, something went wrong.