Skip to content

Commit 05e13ec

Browse files
committed
Initial commit
0 parents  commit 05e13ec

File tree

104 files changed

+16183
-0
lines changed

Some content is hidden

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

104 files changed

+16183
-0
lines changed

.config/dotnet-tools.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"version": 1,
3+
"isRoot": true,
4+
"tools": {
5+
"docfx": {
6+
"version": "2.78.4",
7+
"commands": [
8+
"docfx"
9+
]
10+
}
11+
}
12+
}

.editorconfig

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# .editorconfig for Auth0.AspNetCore.Authentication.Api solution
2+
# For more information, visit https://editorconfig.org/
3+
4+
root = true
5+
6+
# All files
7+
[*]
8+
charset = utf-8
9+
end_of_line = lf
10+
insert_final_newline = true
11+
indent_style = space
12+
indent_size = 4
13+
trim_trailing_whitespace = true
14+
max_line_length = 120
15+
16+
# C# files
17+
[*.cs]
18+
dotnet_sort_system_directives_first = true
19+
dotnet_separate_import_directive_groups = true
20+
dotnet_style_qualification_for_field = false:warning
21+
dotnet_style_qualification_for_property = false:warning
22+
dotnet_style_qualification_for_method = false:warning
23+
dotnet_style_qualification_for_event = false:warning
24+
csharp_new_line_before_open_brace = all
25+
csharp_indent_case_contents = true
26+
csharp_indent_switch_labels = true
27+
csharp_prefer_braces = true:warning
28+
csharp_prefer_simple_default_expression = true:warning
29+
csharp_prefer_simple_using_statement = true:warning
30+
csharp_style_var_for_built_in_types = true:warning
31+
csharp_style_var_when_type_is_apparent = true:warning
32+
csharp_style_var_elsewhere = false:warning
33+
csharp_style_expression_bodied_methods = false:warning
34+
csharp_style_expression_bodied_properties = false:warning
35+
csharp_style_expression_bodied_ctors = false:warning
36+
csharp_style_pattern_matching_over_is_with_cast_check = true:warning
37+
csharp_style_inlined_variable_declaration = true:warning
38+
csharp_style_throw_expression = true:warning
39+
csharp_style_conditional_delegate_call = true:warning
40+
41+
# JSON files
42+
[*.json]
43+
indent_style = tab
44+
indent_size = 1
45+
46+
# XML files
47+
[*.xml]
48+
indent_style = space
49+
indent_size = 2
50+
51+
# Markdown files
52+
[*.md]
53+
trim_trailing_whitespace = false
54+
max_line_length = off
55+
56+
# YAML files
57+
[*.yml]
58+
indent_style = space
59+
indent_size = 2
60+
61+
# Ignore generated files
62+
[bin/**]
63+
insert_final_newline = false
64+
trim_trailing_whitespace = false
65+
66+
[obj/**]
67+
insert_final_newline = false
68+
trim_trailing_whitespace = false

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @atko-cic/project-dx-sdks-engineer-codeowner
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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 searched the [Auth0 Community](https://community.auth0.com) forums and have not found a suitable solution or answer.
17+
required: true
18+
- 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).
19+
required: true
20+
21+
- type: textarea
22+
id: description
23+
attributes:
24+
label: Description
25+
description: Provide a clear and concise description of the issue, including what you expected to happen.
26+
validations:
27+
required: true
28+
29+
- type: textarea
30+
id: reproduction
31+
attributes:
32+
label: Reproduction
33+
description: Detail the steps taken to reproduce this error, and whether this issue can be reproduced consistently or if it is intermittent.
34+
placeholder: |
35+
1. Step 1...
36+
2. Step 2...
37+
3. ...
38+
validations:
39+
required: true
40+
41+
- type: textarea
42+
id: additional-context
43+
attributes:
44+
label: Additional context
45+
description: Other libraries that might be involved, or any other relevant information you think would be useful.
46+
validations:
47+
required: false
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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 searched the [Auth0 Community](https://community.auth0.com) forums and have not found a suitable solution or answer.
12+
required: true
13+
- 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).
14+
required: true
15+
16+
- type: textarea
17+
id: description
18+
attributes:
19+
label: Describe the problem you'd like to have solved
20+
description: A clear and concise description of what the problem is.
21+
placeholder: I'm always frustrated when...
22+
validations:
23+
required: true
24+
25+
- type: textarea
26+
id: ideal-solution
27+
attributes:
28+
label: Describe the ideal solution
29+
description: A clear and concise description of what you want to happen.
30+
validations:
31+
required: true
32+
33+
- type: textarea
34+
id: alternatives-and-workarounds
35+
attributes:
36+
label: Alternatives and current workarounds
37+
description: A clear and concise description of any alternatives you've considered or any workarounds that are currently in place.
38+
validations:
39+
required: false
40+
41+
- type: textarea
42+
id: additional-context
43+
attributes:
44+
label: Additional context
45+
description: Add any other context or screenshots about the feature request here.
46+
validations:
47+
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: 🤔 Help & Questions
4+
url: https://community.auth0.com
5+
about: Ask general support or usage questions in the Auth0 Community forums

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
### ✏️ Changes
2+
3+
Please describe both what is changing and why this is important.
4+
Ensure to include what was Added / Removed / Modified.
5+
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+
26+
- [ ] This change adds integration test coverage
27+
28+
- [ ] This change has been tested on the latest version of the platform/language or why not
29+
30+
### ✅ Checklist
31+
32+
- [ ] I have read the [Auth0 general contribution guidelines](https://github.com/auth0/open-source-template/blob/master/GENERAL-CONTRIBUTING.md)
33+
34+
- [ ] I have read the [Auth0 Code of Conduct](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md)
35+
36+
- [ ] All existing and new tests complete without errors
37+
- [ ] All commits are signed.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Return a boolean indicating if the version contains prerelease identifiers
2+
3+
inputs:
4+
version:
5+
required: true
6+
7+
outputs:
8+
prerelease:
9+
value: ${{ steps.get_prerelease.outputs.PRERELEASE }}
10+
11+
runs:
12+
using: composite
13+
14+
steps:
15+
- id: get_prerelease
16+
shell: bash
17+
run: |
18+
if [[ "${VERSION}" == *"beta"* || "${VERSION}" == *"alpha"* ]]; then
19+
echo "PRERELEASE=true" >> $GITHUB_OUTPUT
20+
else
21+
echo "PRERELEASE=false" >> $GITHUB_OUTPUT
22+
fi
23+
env:
24+
VERSION: ${{ inputs.version }}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Return the release notes extracted from the PR body
2+
3+
inputs:
4+
version:
5+
required: true
6+
repo_name:
7+
required: false
8+
repo_owner:
9+
required: true
10+
token:
11+
required: true
12+
13+
outputs:
14+
release-notes:
15+
value: ${{ steps.get_release_notes.outputs.RELEASE_NOTES }}
16+
17+
runs:
18+
using: composite
19+
20+
steps:
21+
- uses: actions/github-script@v7
22+
id: get_release_notes
23+
with:
24+
result-encoding: string
25+
script: |
26+
const { data: pulls } = await github.rest.pulls.list({
27+
owner: process.env.REPO_OWNER,
28+
repo: process.env.REPO_NAME,
29+
state: 'all',
30+
head: `${process.env.REPO_OWNER}:release/${process.env.VERSION}`,
31+
});
32+
core.setOutput('RELEASE_NOTES', pulls[0].body);
33+
env:
34+
GITHUB_TOKEN: ${{ inputs.token }}
35+
REPO_OWNER: ${{ inputs.repo_owner }}
36+
REPO_NAME: ${{ inputs.repo_name }}
37+
VERSION: ${{ inputs.version }}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Return the version from the .version file
2+
3+
outputs:
4+
version:
5+
value: ${{ steps.get_version.outputs.VERSION }}
6+
7+
runs:
8+
using: composite
9+
10+
steps:
11+
- id: get_version
12+
shell: bash
13+
run: |
14+
VERSION=$(head -1 .version)
15+
echo "VERSION=${VERSION}" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)