Skip to content

Commit a9cfd6d

Browse files
Initial repo setup (#3)
Initial repo setup
1 parent 505c216 commit a9cfd6d

198 files changed

Lines changed: 41946 additions & 28 deletions

File tree

Some content is hidden

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

.bacon.yml

Lines changed: 31 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,38 @@
11
# Metadata for all Bacon test suites. For options, see:
22
# https://oktawiki.atlassian.net/wiki/spaces/ESS/pages/635280223/.Bacon.yaml
33
test_suites:
4-
- name: 'build'
5-
script_path: /root/okta/okta-client-javascript/.bacon
6-
script_name: build
4+
- name: 'publish'
5+
script_path: /root/okta/okta-client-javascript/scripts/bacon
6+
script_name: publish
77
sort_order: '0'
8-
timeout: '50'
8+
timeout: '20'
99
criteria: MERGE
10-
queue_name: small
11-
- name: 'test'
12-
script_path: /root/okta/okta-client-javascript/.bacon
13-
script_name: test
10+
queue_name: al2023
11+
- name: 'lint'
12+
script_path: /root/okta/okta-client-javascript/scripts/bacon
13+
script_name: lint
1414
sort_order: '1'
15-
timeout: '50'
15+
timeout: '10'
1616
criteria: MERGE
17-
queue_name: small
18-
prereq_test_suite_name: "build"
17+
queue_name: al2023
18+
- name: 'unit'
19+
script_path: /root/okta/okta-client-javascript/scripts/bacon
20+
script_name: unit
21+
sort_order: '2'
22+
timeout: '20'
23+
criteria: MERGE
24+
queue_name: al2023
25+
- name: 'e2e-oidc'
26+
script_path: /root/okta/okta-client-javascript/scripts/bacon
27+
script_name: e2e-oidc
28+
sort_order: '3'
29+
timeout: '20'
30+
criteria: MERGE
31+
queue_name: al2023
32+
- name: 'e2e-dpop'
33+
script_path: /root/okta/okta-client-javascript/scripts/bacon
34+
script_name: e2e-dpop
35+
sort_order: '3'
36+
timeout: '20'
37+
criteria: MERGE
38+
queue_name: al2023

.bacon/build.sh

Lines changed: 0 additions & 4 deletions
This file was deleted.

.bacon/test.sh

Lines changed: 0 additions & 4 deletions
This file was deleted.

.gitignore

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# Dependencies
4+
node_modules
5+
.pnp
6+
.pnp.js
7+
8+
# Local env files
9+
.env
10+
.env.local
11+
.env.development.local
12+
.env.test.local
13+
.env.production.local
14+
testenv
15+
testenv*
16+
testenv.yml
17+
18+
# Testing
19+
coverage
20+
21+
# Turbo
22+
.turbo
23+
24+
# Vercel
25+
.vercel
26+
27+
# Local Netlify folder
28+
.netlify
29+
30+
.docusaurus
31+
docs/docs/api/*
32+
33+
.vite
34+
35+
# Build Outputs
36+
.next/
37+
out/
38+
build
39+
dist
40+
41+
42+
# Debug
43+
npm-debug.log*
44+
yarn-debug.log*
45+
yarn-error.log*
46+
47+
# Misc
48+
.DS_Store
49+
*.pem
50+
51+
!.gitkeep

LICENSE

Lines changed: 189 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,189 @@
1+
Okta Auth SDK License
2+
3+
The Okta software accompanied by this notice is provided pursuant to the
4+
following terms:
5+
6+
Copyright © 2015-present, Okta, Inc.
7+
8+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
9+
this file except in compliance with the License. You may obtain a copy of the
10+
License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by
11+
applicable law or agreed to in writing, software distributed under the License
12+
is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
13+
KIND, either express or implied. See the License for the specific language
14+
governing permissions and limitations under the License.
15+
16+
The Okta software accompanied by this notice has build dependencies on certain
17+
third party software licensed under separate terms ("Third Party Components")
18+
located in THIRD_PARTY_NOTICES.
19+
20+
21+
Apache License
22+
Version 2.0, January 2004
23+
http://www.apache.org/licenses/
24+
25+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
26+
27+
1. Definitions.
28+
29+
"License" shall mean the terms and conditions for use, reproduction, and
30+
distribution as defined by Sections 1 through 9 of this document.
31+
32+
"Licensor" shall mean the copyright owner or entity authorized by the copyright
33+
owner that is granting the License.
34+
35+
"Legal Entity" shall mean the union of the acting entity and all other entities
36+
that control, are controlled by, or are under common control with that entity.
37+
For the purposes of this definition, "control" means (i) the power, direct or
38+
indirect, to cause the direction or management of such entity, whether by
39+
contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the
40+
outstanding shares, or (iii) beneficial ownership of such entity.
41+
42+
You" (or "Your") shall mean an individual or Legal Entity exercising
43+
permissions granted by this License.
44+
45+
"Source" form shall mean the preferred form for making modifications, including
46+
but not limited to software source code, documentation source, and
47+
configuration files.
48+
49+
"Object" form shall mean any form resulting from mechanical transformation or
50+
translation of a Source form, including but not limited to compiled object
51+
code, generated documentation, and conversions to other media types.
52+
53+
"Work" shall mean the work of authorship, whether in Source or Object form,
54+
made available under the License, as indicated by a copyright notice that is
55+
included in or attached to the work (an example is provided in the Appendix
56+
below).
57+
58+
"Derivative Works" shall mean any work, whether in Source or Object form, that
59+
is based on (or derived from) the Work and for which the editorial revisions,
60+
annotations, elaborations, or other modifications represent, as a whole, an
61+
original work of authorship. For the purposes of this License, Derivative Works
62+
shall not include works that remain separable from, or merely link (or bind by
63+
name) to the interfaces of, the Work and Derivative Works thereof.
64+
65+
"Contribution" shall mean any work of authorship, including the original
66+
version of the Work and any modifications or additions to that Work or
67+
Derivative Works thereof, that is intentionally submitted to Licensor for
68+
inclusion in the Work by the copyright owner or by an individual or Legal
69+
Entity authorized to submit on behalf of the copyright owner. For the purposes
70+
of this definition, "submitted" means any form of electronic, verbal, or
71+
written communication sent to the Licensor or its representatives, including
72+
but not limited to communication on electronic mailing lists, source code
73+
control systems, and issue tracking systems that are managed by, or on behalf
74+
of, the Licensor for the purpose of discussing and improving the Work, but
75+
excluding communication that is conspicuously marked or otherwise designated in
76+
writing by the copyright owner as "Not a Contribution."
77+
78+
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf
79+
of whom a Contribution has been received by Licensor and subsequently
80+
incorporated within the Work.
81+
2. Grant of Copyright License. Subject to the terms and conditions of this
82+
License, each Contributor hereby grants to You a perpetual, worldwide,
83+
non-exclusive, no-charge, royalty-free, irrevocable copyright license to
84+
reproduce, prepare Derivative Works of, publicly display, publicly perform,
85+
sublicense, and distribute the Work and such Derivative Works in Source or
86+
Object form.
87+
88+
3. Grant of Patent License. Subject to the terms and conditions of this
89+
License, each Contributor hereby grants to You a perpetual, worldwide,
90+
non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this
91+
section) patent license to make, have made, use, offer to sell, sell, import,
92+
and otherwise transfer the Work, where such license applies only to those
93+
patent claims licensable by such Contributor that are necessarily infringed by
94+
their Contribution(s) alone or by combination of their Contribution(s) with the
95+
Work to which such Contribution(s) was submitted. If You institute patent
96+
litigation against any entity (including a cross-claim or counterclaim in a
97+
lawsuit) alleging that the Work or a Contribution incorporated within the Work
98+
constitutes direct or contributory patent infringement, then any patent
99+
licenses granted to You under this License for that Work shall terminate as of
100+
the date such litigation is filed.
101+
102+
4. Redistribution. You may reproduce and distribute copies of the Work or
103+
Derivative Works thereof in any medium, with or without modifications, and in
104+
Source or Object form, provided that You meet the following conditions:
105+
106+
(a) You must give any other recipients of the Work or Derivative Works a copy
107+
of this License; and
108+
109+
(b) You must cause any modified files to carry prominent notices stating that
110+
You changed the files; and
111+
112+
(c) You must retain, in the Source form of any Derivative Works that You
113+
distribute, all copyright, patent, trademark, and attribution notices from the
114+
Source form of the Work, excluding those notices that do not pertain to any
115+
part of the Derivative Works; and
116+
117+
(d) If the Work includes a "NOTICE" text file as part of its distribution, then
118+
any Derivative Works that You distribute must include a readable copy of the
119+
attribution notices contained within such NOTICE file, excluding those notices
120+
that do not pertain to any part of the Derivative Works, in at least one of the
121+
following places: within a NOTICE text file distributed as part of the
122+
Derivative Works; within the Source form or documentation, if provided along
123+
with the Derivative Works; or, within a display generated by the Derivative
124+
Works, if and wherever such third-party notices normally appear. The contents
125+
of the NOTICE file are for informational purposes only and do not modify the
126+
License. You may add Your own attribution notices within Derivative Works that
127+
You distribute, alongside or as an addendum to the NOTICE text from the Work,
128+
provided that such additional attribution notices cannot be construed as
129+
modifying the License.
130+
131+
You may add Your own copyright statement to Your modifications and may provide
132+
additional or different license terms and conditions for use, reproduction, or
133+
distribution of Your modifications, or for any such Derivative Works as a
134+
whole, provided Your use, reproduction, and distribution of the Work otherwise
135+
complies with the conditions stated in this License.
136+
137+
5. Submission of Contributions. Unless You explicitly state otherwise, any
138+
Contribution intentionally submitted for inclusion in the Work by You to the
139+
Licensor shall be under the terms and conditions of this License, without any
140+
additional terms or conditions. Notwithstanding the above, nothing herein shall
141+
supersede or modify the terms of any separate license agreement you may have
142+
executed with Licensor regarding such Contributions.
143+
144+
6. Trademarks. This License does not grant permission to use the trade names,
145+
trademarks, service marks, or product names of the Licensor, except as required
146+
for reasonable and customary use in describing the origin of the Work and
147+
reproducing the content of the NOTICE file.
148+
149+
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in
150+
writing, Licensor provides the Work (and each Contributor provides its
151+
Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
152+
KIND, either express or implied, including, without limitation, any warranties
153+
or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
154+
PARTICULAR PURPOSE. You are solely responsible for determining the
155+
appropriateness of using or redistributing the Work and assume any risks
156+
associated with Your exercise of permissions under this License.
157+
158+
8. Limitation of Liability. In no event and under no legal theory, whether in
159+
tort (including negligence), contract, or otherwise, unless required by
160+
applicable law (such as deliberate and grossly negligent acts) or agreed to in
161+
writing, shall any Contributor be liable to You for damages, including any
162+
direct, indirect, special, incidental, or consequential damages of any
163+
character arising as a result of this License or out of the use or inability to
164+
use the Work (including but not limited to damages for loss of goodwill, work
165+
stoppage, computer failure or malfunction, or any and all other commercial
166+
damages or losses), even if such Contributor has been advised of the
167+
possibility of such damages.
168+
169+
9. Accepting Warranty or Additional Liability. While redistributing the Work or
170+
Derivative Works thereof, You may choose to offer, and charge a fee for,
171+
acceptance of support, warranty, indemnity, or other liability obligations
172+
and/or rights consistent with this License. However, in accepting such
173+
obligations, You may act only on Your own behalf and on Your sole
174+
responsibility, not on behalf of any other Contributor, and only if You agree
175+
to indemnify, defend, and hold each Contributor harmless for any liability
176+
incurred by, or claims asserted against, such Contributor by reason of your
177+
accepting any such warranty or additional liability.
178+
179+
END OF TERMS AND CONDITIONS
180+
181+
APPENDIX: How to apply the Apache License to your work.
182+
183+
To apply the Apache License to your work, attach the following boilerplate
184+
notice, with the fields enclosed by brackets "[]" replaced with your own
185+
identifying information. (Don't include the brackets!) The text should be
186+
enclosed in the appropriate comment syntax for the file format. We also
187+
recommend that a file or class name and description of purpose be included on
188+
the same "printed page" as the copyright notice for easier identification
189+
within third-party archives.

README.md

Lines changed: 34 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,38 @@
1-
Welcome to your new repo,okta-client-javascript!
1+
# Website
22

3-
This is a default readme file created to provide some helpful links and first steps.
4-
A lot of your questions might already exist in our [wiki page](http://bit.ly/EngFAQ), so please check there first.
3+
This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator.
54

6-
Please reach out to us over on [#eng-release](https://okta.slack.com/archives/C7L27G2Q5) or
7-
[#eng-productivity](https://okta.slack.com/archives/C7LQ4U8T0) for any additional assistance you might require.
8-
# CI System: Bacon
5+
### Installation
96

10-
Please check out this [wiki](https://oktawiki.atlassian.net/wiki/spaces/ESS/pages/2436202798/Bacon+HowTo+Video+Series)
11-
for more information about Okta's CI System, Bacon, and how to get started.
7+
```
8+
$ yarn
9+
```
1210

13-
Your bacon artifact is found [here](https://bacon-go.aue1e.saasure.net/commits?artifact=okta-client-javascript).
11+
### Local Development
12+
13+
```
14+
$ yarn start
15+
```
16+
17+
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
18+
19+
### Build
20+
21+
```
22+
$ yarn build
23+
```
24+
25+
This command generates static content into the `build` directory and can be served using any static contents hosting service.
26+
27+
### Deployment
28+
29+
To deploy to docs page https://spa-cred.netlify.app
30+
31+
1. Make Netlify account via __public__ okta github account (https://app.netlify.com/signup)
32+
* jared.perreault@okta.com may need to add you to a Netlify Team
33+
2. Install `netlify` cli via `npm i netlify-cli -g` (uses node18) ([docs](https://docs.netlify.com/cli/get-started/#installation))
34+
3. run `netlify login`
35+
4. run docs build via `yarn build:docs`
36+
5. To deploy, follow instructions at https://docs.netlify.com/cli/get-started/#manual-deploys
37+
* From repo dir: `netlify deploy --dir=docs/build`
38+
* add `--prod` to the above command once demo is verified

docs/README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Website
2+
3+
This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator.
4+
5+
### Installation
6+
7+
```
8+
$ yarn
9+
```
10+
11+
### Local Development
12+
13+
```
14+
$ yarn start
15+
```
16+
17+
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
18+
19+
### Build
20+
21+
```
22+
$ yarn build
23+
```
24+
25+
This command generates static content into the `build` directory and can be served using any static contents hosting service.
26+
27+
### Deployment
28+
29+
To deploy to docs page https://spa-cred.netlify.app
30+
31+
1. Make Netlify account via __public__ okta github account (https://app.netlify.com/signup)
32+
* jared.perreault@okta.com may need to add you to a Netlify Team
33+
2. Install `netlify` cli via `npm i netlify-cli -g` (uses node18) ([docs](https://docs.netlify.com/cli/get-started/#installation))
34+
3. run `netlify login`
35+
4. run docs build via `yarn build:docs`
36+
5. To deploy, follow instructions at https://docs.netlify.com/cli/get-started/#manual-deploys
37+
* From repo dir: `netlify deploy --dir=docs/build`
38+
* add `--prod` to the above command once demo is verified

docs/babel.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
3+
};

0 commit comments

Comments
 (0)