Skip to content

Commit 59ccec6

Browse files
shuowueng-prod-CI-bot-okta
authored andcommitted
feat: add myaccount apis
OKTA-486697 <<<Jenkins Check-In of Tested SHA: e8ddce4 for [email protected]>>> Artifact: okta-auth-js Files changed count: 208 PR Link: #1158
1 parent 53f43fd commit 59ccec6

File tree

173 files changed

+6550
-1023
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

173 files changed

+6550
-1023
lines changed

.bacon.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ test_suites:
8383
script_name: e2e-express-embedded-sign-in-widget
8484
criteria: MERGE
8585
queue_name: small
86-
- name: e2e-react-oie
86+
- name: e2e-react-embedded-auth-with-sdk
8787
script_path: ../okta-auth-js/scripts
8888
sort_order: '12'
8989
timeout: '20'
90-
script_name: e2e-react-oie
90+
script_name: e2e-react-embedded-auth-with-sdk
9191
criteria: MERGE
9292
queue_name: small
9393
# Sauce labs tests are flaky due to the free account we are currently using

.eslintrc.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ module.exports = {
121121
// features that are not supported before v12 are transformed in babel.cjs.js for commonjs output
122122
version: '>=12.0.0'
123123
}],
124-
'import/no-commonjs': 'error'
124+
'import/no-commonjs': 'error',
125+
"jsdoc/check-tag-names": 0
125126
},
126127
settings: {
127128
// https://github.com/import-js/eslint-plugin-import#typescript
@@ -130,6 +131,17 @@ module.exports = {
130131
}
131132
},
132133
},
134+
{
135+
files: ["samples/generated/**/*.js"],
136+
rules: {
137+
'node/no-missing-import': ['error', {
138+
allowModules: ['@okta/okta-auth-js']
139+
}],
140+
'node/no-missing-require': ['error', {
141+
allowModules: ['@okta/okta-auth-js']
142+
}]
143+
}
144+
},
133145
{
134146
files: [
135147
"rollup.config.js",

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- Changes implementation of `SyncStorageService` using `broadcast-channel` instead of using `StorageEvent`. Supports `localStorage` and `cookie` storage.
99
- Adds `LeaderElectionService` as separate service
1010
- Fixes error `Channel is closed` while stopping leader election
11+
- [#1158](https://github.com/okta/okta-auth-js/pull/1158) Adds MyAccount API. See [MyAccount API DOC](/docs/myaccount/README.md) for detailed information.
1112

1213
## 6.6.2
1314

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,11 @@ Enables interaction code flow for direct auth clients.
539539

540540
Used in authorization and interaction code flows by server-side web applications to obtain OAuth tokens. In a production application, this value should **never** be visible on the client side.
541541

542+
#### `setLocation`
543+
544+
Used in authorization and interaction code flows by server-side web applications to customize the redirect process.
545+
546+
542547
#### `httpRequestClient`
543548

544549
The http request implementation. By default, this is implemented using [cross-fetch](https://github.com/lquixada/cross-fetch). To provide your own request library, implement the following interface:
@@ -869,6 +874,7 @@ This is accomplished by selecting a single tab to handle the network requests to
869874
* [session.get](#sessionget)
870875
* [session.refresh](#sessionrefresh)
871876
* [idx](#idx)
877+
* [myaccount](#myaccount)
872878
* [token](#token)
873879
* [token.getWithoutPrompt](#tokengetwithoutpromptoptions)
874880
* [token.getWithPopup](#tokengetwithpopupoptions)
@@ -1260,6 +1266,11 @@ authClient.session.refresh()
12601266

12611267
See detail in [IDX README](docs/idx.md)
12621268

1269+
### `myaccount`
1270+
1271+
See detail in [MyAccount API README](docs/myaccount/README.md)
1272+
1273+
12631274
### `token`
12641275

12651276
#### Authorize options

docs/.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
myaccount/**/* linguist-generated=true

docs/myaccount/README.md

Lines changed: 152 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/myaccount/classes/BaseTransaction.md

Lines changed: 56 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)