Skip to content

Commit 396b7d0

Browse files
arpit-jnsameerbamanha-okta
authored andcommitted
Initial commit
0 parents  commit 396b7d0

271 files changed

Lines changed: 24449 additions & 0 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.

.fernignore

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Specify files that shouldn't be modified by Fern
2+
3+
# Fern metadata
4+
.fern/
5+
6+
# Custom wrapper client and token management
7+
src/auth0/myorganization/myorganization_client.py
8+
src/auth0/myorganization/token_provider.py
9+
10+
# Telemetry customization (Auth0 format with dynamic versioning)
11+
src/auth0/myorganization/core/client_wrapper.py
12+
13+
# Root auth0 __init__.pys
14+
src/auth0/myorganization/__init__.py
15+
src/auth0/__init__.py
16+
17+
# Tests
18+
tests/myorganization/
19+
20+
# Project config and docs
21+
pyproject.toml
22+
poetry.lock
23+
requirements.txt
24+
README.md
25+
CHANGELOG.md
26+
.version
27+
.shiprc
28+
.snyk
29+
.semgrepignore
30+
31+
# Git and CI configuration
32+
.gitignore
33+
.github/
34+
LICENSE

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @auth0/project-dx-sdks-engineer-codeowner
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Report a bug
2+
description: Have you found a bug or issue? Create a bug report for this library
3+
labels: ["bug"]
4+
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
**Please do not report security vulnerabilities here**. The [Responsible Disclosure Program](https://auth0.com/responsible-disclosure-policy) details the procedure for disclosing security issues.
10+
11+
- type: checkboxes
12+
id: checklist
13+
attributes:
14+
label: Checklist
15+
options:
16+
- label: I have looked into the [Readme](https://github.com/auth0/myorganization-python#readme) and have not found a suitable solution or answer.
17+
required: true
18+
- label: I have searched the [issues](https://github.com/auth0/myorganization-python/issues) and have not found a suitable solution or answer.
19+
required: true
20+
- label: I have searched the [Auth0 Community](https://community.auth0.com) forums and have not found a suitable solution or answer.
21+
required: true
22+
- label: I agree to the terms within the [Auth0 Code of Conduct](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md).
23+
required: true
24+
25+
- type: textarea
26+
id: description
27+
attributes:
28+
label: Description
29+
description: Provide a clear and concise description of the issue, including what you expected to happen.
30+
validations:
31+
required: true
32+
33+
- type: textarea
34+
id: reproduction
35+
attributes:
36+
label: Reproduction
37+
description: Detail the steps taken to reproduce this error, and whether this issue can be reproduced consistently or if it is intermittent.
38+
placeholder: |
39+
1. Step 1...
40+
2. Step 2...
41+
3. ...
42+
validations:
43+
required: true
44+
45+
- type: textarea
46+
id: additional-context
47+
attributes:
48+
label: Additional context
49+
description: Other libraries that might be involved, or any other relevant information you think would be useful.
50+
validations:
51+
required: false
52+
53+
- type: input
54+
id: environment-version
55+
attributes:
56+
label: myorganization-python version
57+
validations:
58+
required: true
59+
60+
- type: input
61+
id: environment-python-version
62+
attributes:
63+
label: Python version
64+
validations:
65+
required: true
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Feature request
2+
description: Suggest an idea or a feature for this library
3+
labels: ["feature request"]
4+
5+
body:
6+
- type: checkboxes
7+
id: checklist
8+
attributes:
9+
label: Checklist
10+
options:
11+
- label: I have looked into the [Readme](https://github.com/auth0/myorganization-python#readme) and have not found a suitable solution or answer.
12+
required: true
13+
- label: I have searched the [issues](https://github.com/auth0/myorganization-python/issues) and have not found a suitable solution or answer.
14+
required: true
15+
- label: I have searched the [Auth0 Community](https://community.auth0.com) forums and have not found a suitable solution or answer.
16+
required: true
17+
- label: I agree to the terms within the [Auth0 Code of Conduct](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md).
18+
required: true
19+
20+
- type: textarea
21+
id: description
22+
attributes:
23+
label: Describe the problem you'd like to have solved
24+
description: A clear and concise description of what the problem is.
25+
placeholder: I'm always frustrated when...
26+
validations:
27+
required: true
28+
29+
- type: textarea
30+
id: ideal-solution
31+
attributes:
32+
label: Describe the ideal solution
33+
description: A clear and concise description of what you want to happen.
34+
validations:
35+
required: true
36+
37+
- type: textarea
38+
id: alternatives-and-workarounds
39+
attributes:
40+
label: Alternatives and current workarounds
41+
description: A clear and concise description of any alternatives you've considered or any workarounds that are currently in place.
42+
validations:
43+
required: false
44+
45+
- type: textarea
46+
id: additional-context
47+
attributes:
48+
label: Additional context
49+
description: Add any other context or screenshots about the feature request here.
50+
validations:
51+
required: false

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Auth0 Community
4+
url: https://community.auth0.com
5+
about: Discuss this SDK in the Auth0 Community forums

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
### Changes
2+
3+
Please describe both what is changing and why this is important. Include:
4+
5+
- Endpoints added, deleted, deprecated, or changed
6+
- Classes and methods added, deleted, deprecated, or changed
7+
- Screenshots of new or changed UI, if applicable
8+
- A summary of usage if this is a new feature or change to a public API (this should also be added to relevant documentation once released)
9+
- Any alternative designs or approaches considered
10+
11+
### References
12+
13+
Please include relevant links supporting this change such as a:
14+
15+
- support ticket
16+
- community post
17+
- StackOverflow post
18+
- support forum thread
19+
20+
### Testing
21+
22+
Please describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If this library has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.
23+
24+
- [ ] This change adds unit test coverage
25+
- [ ] This change adds integration test coverage
26+
- [ ] This change has been tested on the latest version of the platform/language or why not
27+
28+
### Checklist
29+
30+
- [ ] I have read the [Auth0 general contribution guidelines](https://github.com/auth0/open-source-template/blob/master/GENERAL-CONTRIBUTING.md)
31+
- [ ] I have read the [Auth0 Code of Conduct](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md)
32+
- [ ] All existing and new tests complete without errors
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Return a boolean indicating if the version contains prerelease identifiers
2+
3+
#
4+
# Returns a simple true/false boolean indicating whether the version indicates it's a prerelease or not.
5+
#
6+
# TODO: Remove once the common repo is public.
7+
#
8+
9+
inputs:
10+
version:
11+
required: true
12+
13+
outputs:
14+
prerelease:
15+
value: ${{ steps.get_prerelease.outputs.PRERELEASE }}
16+
17+
runs:
18+
using: composite
19+
20+
steps:
21+
- id: get_prerelease
22+
shell: bash
23+
run: |
24+
if [[ "${VERSION}" == *"beta"* || "${VERSION}" == *"alpha"* ]]; then
25+
echo "PRERELEASE=true" >> $GITHUB_OUTPUT
26+
else
27+
echo "PRERELEASE=false" >> $GITHUB_OUTPUT
28+
fi
29+
env:
30+
VERSION: ${{ inputs.version }}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Return the release notes extracted from the PR body
2+
3+
#
4+
# Returns the release notes from the content of a pull request linked to a release branch. It expects the branch name to be in the format release/vX.Y.Z, release/X.Y.Z, release/vX.Y.Z-beta.N. etc.
5+
#
6+
# TODO: Remove once the common repo is public.
7+
#
8+
inputs:
9+
version:
10+
required: true
11+
repo_name:
12+
required: false
13+
repo_owner:
14+
required: true
15+
token:
16+
required: true
17+
18+
outputs:
19+
release-notes:
20+
value: ${{ steps.get_release_notes.outputs.RELEASE_NOTES }}
21+
22+
runs:
23+
using: composite
24+
25+
steps:
26+
- uses: actions/github-script@v7
27+
id: get_release_notes
28+
with:
29+
result-encoding: string
30+
script: |
31+
const { data: pulls } = await github.rest.pulls.list({
32+
owner: process.env.REPO_OWNER,
33+
repo: process.env.REPO_NAME,
34+
state: 'all',
35+
head: `${process.env.REPO_OWNER}:release/${process.env.VERSION}`,
36+
});
37+
core.setOutput('RELEASE_NOTES', pulls[0].body);
38+
env:
39+
GITHUB_TOKEN: ${{ inputs.token }}
40+
REPO_OWNER: ${{ inputs.repo_owner }}
41+
REPO_NAME: ${{ inputs.repo_name }}
42+
VERSION: ${{ inputs.version }}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Return the version extracted from the branch name
2+
3+
#
4+
# Returns the version from the .version file.
5+
#
6+
# TODO: Remove once the common repo is public.
7+
#
8+
9+
outputs:
10+
version:
11+
value: ${{ steps.get_version.outputs.VERSION }}
12+
13+
runs:
14+
using: composite
15+
16+
steps:
17+
- id: get_version
18+
shell: bash
19+
run: |
20+
VERSION=$(head -1 .version)
21+
echo "VERSION=${VERSION}" >> $GITHUB_OUTPUT
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Create a GitHub release
2+
3+
#
4+
# Creates a GitHub release with the given version.
5+
#
6+
# TODO: Remove once the common repo is public.
7+
#
8+
9+
inputs:
10+
token:
11+
required: true
12+
files:
13+
required: false
14+
name:
15+
required: true
16+
body:
17+
required: true
18+
tag:
19+
required: true
20+
commit:
21+
required: true
22+
draft:
23+
default: false
24+
required: false
25+
prerelease:
26+
default: false
27+
required: false
28+
fail_on_unmatched_files:
29+
default: true
30+
required: false
31+
32+
runs:
33+
using: composite
34+
35+
steps:
36+
- uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844
37+
with:
38+
body: ${{ inputs.body }}
39+
name: ${{ inputs.name }}
40+
tag_name: ${{ inputs.tag }}
41+
target_commitish: ${{ inputs.commit }}
42+
draft: ${{ inputs.draft }}
43+
prerelease: ${{ inputs.prerelease }}
44+
fail_on_unmatched_files: ${{ inputs.fail_on_unmatched_files }}
45+
files: ${{ inputs.files }}
46+
env:
47+
GITHUB_TOKEN: ${{ inputs.token }}

0 commit comments

Comments
 (0)