Skip to content

Commit 4d36571

Browse files
Initial commit
0 parents  commit 4d36571

18 files changed

Lines changed: 3631 additions & 0 deletions

.env.example

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
ANTHROPIC_API_KEY="<anthropic-api-key>"
2+
ANTHROPIC_BASE_URL="https://api.anthropic.com"
3+
4+
# Okta FGA — create a free store at https://dashboard.fga.dev
5+
FGA_STORE_ID="<fga-store-id>"
6+
FGA_CLIENT_ID="<fga-client-id>"
7+
FGA_CLIENT_SECRET="<fga-client-secret>"
8+
FGA_API_URL="https://api.us1.fga.dev"
9+
FGA_API_TOKEN_ISSUER="auth.fga.dev"
10+
FGA_API_AUDIENCE="https://api.us1.fga.dev/"
11+
12+
LLAMA_CLOUD_API_KEY="<llama-cloud-api-key>"

.github/workflows/sca_scan.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: SCA
2+
3+
on:
4+
push:
5+
branches: ["master", "main"]
6+
7+
jobs:
8+
snyk-cli:
9+
uses: auth0/devsecops-tooling/.github/workflows/sca-scan.yml@main
10+
with:
11+
additional-arguments: "--exclude=README.md,.jfrog"
12+
dotnet-version: "10.0"
13+
secrets: inherit

.gitignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Environment — never commit credentials
2+
.env
3+
4+
# Python
5+
__pycache__/
6+
*.py[cod]
7+
*.pyo
8+
.venv/
9+
venv/
10+
env/
11+
.python-version
12+
13+
# macOS
14+
.DS_Store
15+
16+
# Paycheck PDFs — potentially sensitive demo data
17+
paychecks/
18+
19+
# LlamaIndex / LlamaCloud cache
20+
.cache/
21+
storage/
22+
23+
# IDE
24+
.vscode/
25+
.idea/

LICENSE

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

NOTICE.txt

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
Auth0 FGA + LlamaCloud — Paycheck RAG API
2+
Copyright 2026 Okta, Inc.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.You may obtain a copy of the License at [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
5+
6+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
7+
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
8+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
9+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
10+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
11+
12+
13+
-------------------------------------------------------------------------------
14+
This product includes software developed by third parties.
15+
-------------------------------------------------------------------------------
16+
17+
auth0-ai-llamaindex (https://github.com/auth0/auth0-ai-python)
18+
Copyright (c) 2024 Okta, Inc.
19+
Licensed under the Apache License, Version 2.0
20+
21+
openfga-sdk (https://github.com/openfga/python-sdk)
22+
Copyright (c) 2023 OpenFGA
23+
Licensed under the Apache License, Version 2.0
24+
25+
FastAPI (https://github.com/fastapi/fastapi)
26+
Copyright (c) 2018 Sebastián Ramírez
27+
Licensed under the MIT License
28+
29+
llama-index-core (https://github.com/run-llama/llama_index)
30+
Copyright (c) 2022 LlamaIndex Inc.
31+
Licensed under the MIT License
32+
33+
llama-cloud (https://github.com/run-llama/llama_cloud)
34+
Copyright (c) 2024 LlamaIndex Inc.
35+
Licensed under the MIT License
36+
37+
llama-index-llms-anthropic (https://github.com/run-llama/llama_index)
38+
Copyright (c) 2022 LlamaIndex Inc.
39+
Licensed under the MIT License
40+
41+
Pydantic (https://github.com/pydantic/pydantic)
42+
Copyright (c) 2017 Samuel Colvin and other contributors
43+
Licensed under the MIT License
44+
45+
PyYAML (https://github.com/yaml/pyyaml)
46+
Copyright (c) 2017-2021 Ingy döt Net
47+
Copyright (c) 2006-2016 Kirill Simonov
48+
Licensed under the MIT License
49+
50+
python-dotenv (https://github.com/theskumar/python-dotenv)
51+
Copyright (c) 2014 Saurabh Kumar
52+
Licensed under the BSD 3-Clause License
53+
54+
python-multipart (https://github.com/Kludex/python-multipart)
55+
Copyright (c) 2012 Andrew Dunham
56+
Licensed under the Apache License, Version 2.0
57+
58+
uvicorn (https://github.com/encode/uvicorn)
59+
Copyright (c) 2017-present, Encode OSS Ltd.
60+
Licensed under the BSD 3-Clause License

0 commit comments

Comments
 (0)