Skip to content

Commit 59129c4

Browse files
committed
refactor: move oxAuth
Co-authored-by: Arnab Dutta <arnab.bdutta@gmail.com> Co-authored-by: Arunmozhi <arun@arunmozhi.in> Co-authored-by: Arvind Tomar <tomararvindsingh09@gmail.com> Co-authored-by: Chris B <afroappdev@gmail.com> Co-authored-by: Chris Eland <eland.christian@gmail.com> Co-authored-by: Christian <59786962+christian-hawk@users.noreply.github.com> Co-authored-by: Christian Eland <eland.christian@gmail.com> Co-authored-by: Christian H <eland.christian@gmail.com> Co-authored-by: Dhaval D <343411+ossdhaval@users.noreply.github.com> Co-authored-by: Djeumen Rolain Bonaventure <uprightech@gmail.com> Co-authored-by: Dmitry Ognyannikov <dmogn@mail.ru> Co-authored-by: Dzouato Djeumen Rolain Bonaventure <uprightech@gmail.com> Co-authored-by: Ganesh <ganesh.sharma@worldiswelcome.com> Co-authored-by: Gasmyr <thomas@gluu.org> Co-authored-by: Guillaume Smaha <guillaume.smaha@gmail.com> Co-authored-by: Harjinder Dhanjal <malotian@gmail.com> Co-authored-by: HemantKMehta <70174684+HemantKMehta@users.noreply.github.com> Co-authored-by: Javier Rojas <javier.rojas.blum@gmail.com> Co-authored-by: Javier Rojas Blum <javier.rojas.blum@gmail.com> Co-authored-by: Javier Rojas Blum <javier@gluu.org> Co-authored-by: Jose <bonustrack310@gmail.com> Co-authored-by: Jose G <bonustrack310@gmail.com> Co-authored-by: Kalle Mustonen <35445553+KalleMus@users.noreply.github.com> Co-authored-by: Kunal Vaidya <kvaidya2917@gmail.com> Co-authored-by: Madhumita <madhu@gluu.org> Co-authored-by: Madhumita Subramaniam <madhu@gluu.org> Co-authored-by: Mike Schwartz <mike@gluu.org> Co-authored-by: Milton BO <jmcm578@gmail.com> Co-authored-by: Milton Ch <32613743+miltonbo@users.noreply.github.com> Co-authored-by: Milton Ch <86965029+Milton-Ch@users.noreply.github.com> Co-authored-by: Milton Ch <j.milton.chambi.m@gmail.com> Co-authored-by: Mobarak Hosen Shakil <20867846+imShakil@users.noreply.github.com> Co-authored-by: Mohammad Abudayyeh <47318409+moabu@users.noreply.github.com> Co-authored-by: Nils Behlen <nils.behlen@netknights.it> Co-authored-by: Oleksiy Tataryn <otataryn@gmail.com> Co-authored-by: Patrick Ethier <nuttybrewer@gmail.com> Co-authored-by: Rajni Kant Sharma <rajnikantsh@users.noreply.github.com> Co-authored-by: Rostislav Kondratenko <r.kondratenko@wwpass.com> Co-authored-by: SMan <smansoft@ukr.net> Co-authored-by: Safin Wasi <6601566+SafinWasi@users.noreply.github.com> Co-authored-by: Sam Morris <36208047+shmorri@users.noreply.github.com> Co-authored-by: Stefan Andersson <stefan.andersson@tele2.com> Co-authored-by: Sync bot <54212639+mo-auto@users.noreply.github.com> Co-authored-by: Torstein Krause Johansen <torstein@escenic.com> Co-authored-by: Whispeak-io-VoiceBiometrics <112541650+Whispeak-io-VoiceBiometrics@users.noreply.github.com> Co-authored-by: William Lowe <willow9886@gmail.com> Co-authored-by: Yuriy Movchan <Yuriy.Movchan@gmail.com> Co-authored-by: Yuriy Zabrovarnyy <yzabrovarniy@gmail.com> Co-authored-by: YuriyZ <yzabrovarniy@gmail.com> Co-authored-by: al-com <112606283+al-com@users.noreply.github.com> Co-authored-by: aliaksander-samuseu <aliaksander-samuseu@users.noreply.github.com> Co-authored-by: arvindsinghtomar <LS8@`sM> Co-authored-by: arvindsinghtomar <tomararvindsingh09@gmail.com> Co-authored-by: ayman abdelghany <aymana.ghany@devfactory.com> Co-authored-by: christian-hawk <eland.christian@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: gasmyr <gasmyrmougang@yahoo.fr> Co-authored-by: jschristie <jschristiein@gmail.com> Co-authored-by: livetocode <morgan@mmm-experts.com> Co-authored-by: madumlao <madumlao@gmail.com> Co-authored-by: maduvena <madhu@gluu.org> Co-authored-by: maduvena <madhumitas.work@gmail.com> Co-authored-by: michal kepkowski <mk@gluu.org> Co-authored-by: miltonbo <32613743+miltonbo@users.noreply.github.com> Co-authored-by: mo-auto <54212639+mo-auto@users.noreply.github.com> Co-authored-by: musman2012 <musman2012@namal.edu.pk> Co-authored-by: mzico <mohib@gluu.org> Co-authored-by: naveenkumargopi <34319898+naveenkumargopi@users.noreply.github.com> Co-authored-by: nynymike <mike@gluu.org> Co-authored-by: ossdhaval <343411+ossdhaval@users.noreply.github.com> Co-authored-by: premeau <61592119+premeau@users.noreply.github.com> Co-authored-by: pujavs <puja@gluu.org> Co-authored-by: qbert2k <javier.rojas.blum@gmail.com> Co-authored-by: rajnikant <rk@gluu.org> Co-authored-by: rajnikant <rk_sharmait@yahoo.com> Co-authored-by: rajnikantsh <rk_sharmait@yahoo.com> Co-authored-by: sahiliamsso <sahiliamsso@gmail.com> Co-authored-by: shekhar16 <shekhar16@users.noreply.github.com> Co-authored-by: shekhar16 <shekhar@gluu.org> Co-authored-by: shekhar16 <shekharlaad1609@gmail.com> Co-authored-by: smogali <smogali@gmail.com> Co-authored-by: worm333 <flexblademaster@gmail.com> Co-authored-by: yurem <Yuriy.Movchan@gmail.com> Co-authored-by: yuriyz <yzabrovarniy> Co-authored-by: yuriyz <yzabrovarniy@gmail.com> Signed-off-by: moabu <47318409+moabu@users.noreply.github.com>
1 parent 8b1cfba commit 59129c4

File tree

1,607 files changed

+338405
-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.

1,607 files changed

+338405
-0
lines changed

.github/ISSUE_TEMPLATE/CODEOWNERS

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Please do not attempt to edit this file without the direct consent from the DevOps team. This file is managed centrally.
2+
# Contact @moabu
3+
4+
# These owners will be the default owners for everything in this branch of
5+
# the repo. Unless a later match takes precedence
6+
/.github/ @moabu
7+
/community-edition-setup/ @devrimyatar @yuriyz @yurem @yuriyzz
8+
/oxAuth/ @yurem @yuriyz @yuriyzz
9+
10+
/jans-keycloak-integration/ @uprightech
11+
/jans-keycloak-link/ @shekhar16
12+
/docker-jans-*/ @moabu @iromli
13+
/automation/ @moabu @iromli
14+
/charts/ @moabu @iromli
15+
16+
/jans-*/version.txt @moabu @mo-auto
17+
/jans-*/CHANGELOG.md @moabu @mo-auto
18+
/jans-pycloudlib/ @moabu
19+
/docker-jans-*/requirments.txt @iromli @mo-auto
20+
/jans-bom/ @yurem @yuriyz @yuriyzz
21+
/jans-core/ @yurem @yuriyz @yuriyzz
22+
/jans-orm/ @yurem @yuriyz
23+
/jans-auth-server/ @yurem @yuriyz @yuriyzz
24+
/jans-fido2/ @yurem @yackermann
25+
/jans-lock/ @yurem
26+
/jans-scim/ @jgomer2001
27+
/jans-config-api/ @pujavs @yuriyz @yurem
28+
/jans-cli-tui/ @devrimyatar
29+
/jans-linux-setup/ @devrimyatar @yuriyz @yurem @yuriyzz
30+
/jans-linux-setup/jans_setup/setup_app/version.py @moabu @mo-auto
31+
/jans-linux-setup/static/scripts/admin_ui_plugin.py @devrimyatar @duttarnab
32+
/jans-cache-refresh/ @yurem @shekhar16
33+
/jans-link/ @yurem @yuriyz
34+
/agama/ @jgomer2001
35+
/jans-casa/ @jgomer2001 @maduvena
36+
/demos/jans-tarp/ @duttarnab
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
name: Issue report
3+
about: Welcome at Gluu. Inc, please create an issue to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
!!!Note
11+
Unless you are Gluu staff, please first review and open an issue on https://support.gluu.org before opening an issue here. Thanks!
12+
13+
14+
## Describe the issue
15+
A clear and concise description of what the issue is.
16+
17+
## Steps To Reproduce
18+
Steps to reproduce the behavior:
19+
1. Go to '...'
20+
2. Click on '....'
21+
3. Scroll down to '....'
22+
4. See error
23+
24+
## Expected behavior
25+
A clear and concise description of what you expected to happen.
26+
## Actual behavior
27+
A clear and concise description of what happen.
28+
29+
## Screenshots
30+
If applicable, add screenshots to help explain your problem.
31+
32+
## Desktop (please complete the following information):
33+
- OS: [e.g. Ubuntu16.04LTS]
34+
- Gluu version(If applicable)
35+
- Casa version(If applicable)
36+
- SuperGluu version(If applicable)
37+
- Browser [e.g. chrome, safari]
38+
- Version [e.g. 22]
39+
40+
## Smartphone (please complete the following information if applicable):
41+
If applicable
42+
- Device: [e.g. iPhone6]
43+
- OS: [e.g. iOS8.1]
44+
- Browser [e.g. stock browser, safari]
45+
- Version [e.g. 22]
46+
47+
## Additional context
48+
Add any other context about the problem here.
Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
1+
# Please do not attempt to edit this flow without the direct consent from the DevOps team. This file is managed centrally.
2+
# Contact @moabu
3+
name: Code quality check
4+
5+
on:
6+
push:
7+
branches:
8+
- main
9+
paths:
10+
- 'community-edition-setup/**'
11+
- 'oxAuth/**'
12+
- '!**/CHANGELOG.md'
13+
- '!**.txt'
14+
15+
pull_request:
16+
branches:
17+
- master
18+
- main
19+
- '!update-pycloud-in-**'
20+
types:
21+
- opened
22+
- synchronize
23+
paths:
24+
- 'community-edition-setup/**'
25+
- 'oxAuth/**'
26+
- '!**/CHANGELOG.md'
27+
- '!**.txt'
28+
29+
workflow_dispatch:
30+
31+
jobs:
32+
sonar-scan:
33+
name: sonar scan
34+
runs-on: ubuntu-latest
35+
strategy:
36+
fail-fast: false
37+
matrix:
38+
module: [jans-keycloak-link, jans-keycloak-integration, jans-auth-server, agama, jans-config-api, jans-core, jans-linux-setup, jans-cli-tui, jans-fido2, jans-orm, jans-scim, jans-pycloudlib, jans-link, jans-casa, jans-lock]
39+
env:
40+
JVM_PROJECTS: |
41+
oxAuth
42+
jans-keycloak-link
43+
jans-link
44+
jans-auth-server
45+
jans-lock
46+
jans-orm
47+
jans-config-api
48+
jans-scim
49+
jans-core
50+
jans-fido2
51+
jans-casa
52+
agama
53+
NON_JVM_PROJECTS: |
54+
community-edition-setup
55+
steps:
56+
- name: Harden Runner
57+
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1
58+
with:
59+
egress-policy: audit
60+
61+
- name: check out code
62+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
63+
with:
64+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of sonarqube analysis
65+
66+
- name: find changed directories
67+
run: |
68+
if [ $GITHUB_BASE_REF ]; then
69+
# Pull Request
70+
echo "Triggering event: pull request"
71+
echo Pull request base ref: $GITHUB_BASE_REF
72+
git fetch origin $GITHUB_BASE_REF --depth=1
73+
if [ ${{ github.event.action }} = "opened" ]; then
74+
echo "Triggering action: opened"
75+
echo "CHANGED_DIR=$( git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} | cut -d/ -f1 | sort -u | sed -z 's/\n/,/g;s/^/[/;s/,$/]/;s/$/\n/')" >> ${GITHUB_ENV}
76+
fi
77+
if [ ${{ github.event.action }} = "synchronize" ]; then
78+
echo "Triggering action: synchronize"
79+
echo "CHANGED_DIR=$( git diff --name-only ${{ github.event.before }} ${{ github.event.pull_request.head.sha }} | cut -d/ -f1 | sort -u | sed -z 's/\n/,/g;s/^/[/;s/,$/]/;s/$/\n/')" >>${GITHUB_ENV}
80+
fi
81+
else
82+
# Push
83+
echo "Triggerring event: push"
84+
git fetch origin ${{ github.event.before }} --depth=1
85+
echo "CHANGED_DIR=$( git diff --name-only ${{ github.event.before }} $GITHUB_SHA | cut -d/ -f1 | sort -u | sed -z 's/\n/,/g;s/^/[/;s/,$/]/;s/$/\n/')" >> ${GITHUB_ENV}
86+
fi
87+
88+
- name: check env
89+
run: |
90+
echo changed dir list: ${{ env.CHANGED_DIR }}
91+
echo Matrix module: ${{ matrix.module }}
92+
echo GH event action: ${{ github.event.action }}
93+
echo PR base sha: ${{ github.event.pull_request.base.sha }}
94+
echo PR head sha: ${{ github.event.pull_request.head.sha }}
95+
echo event before: ${{ github.event.before }}
96+
echo GH sha: $GITHUB_SHA
97+
98+
- name: Set up JDK 17
99+
if: contains(env.CHANGED_DIR, matrix.module) && contains(env.JVM_PROJECTS, matrix.module)
100+
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0
101+
with:
102+
java-version: '11'
103+
distribution: 'adopt'
104+
105+
- name: Cache SonarCloud packages for JVM based project
106+
if: contains(env.CHANGED_DIR, matrix.module) && contains(env.JVM_PROJECTS, matrix.module)
107+
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
108+
with:
109+
path: ~/.sonar/cache
110+
key: ${{ runner.os }}-sonar
111+
restore-keys: ${{ runner.os }}-sonar
112+
113+
- name: Build and analyze JVM based project
114+
if: contains(env.CHANGED_DIR, matrix.module) && contains(env.JVM_PROJECTS, matrix.module)
115+
env:
116+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
117+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
118+
run: |
119+
cd ${{ matrix.module }}
120+
case ${{ matrix.module }} in
121+
"opendj4")
122+
echo "Build opendj-sdk first for gluu-opendj4"
123+
mvn -B -f opendj-sdk/pom.xml -DskipTests clean install
124+
;&
125+
"oxAuth")
126+
;&
127+
"oxTrust")
128+
;&
129+
"scim")
130+
;&
131+
"casa")
132+
;&
133+
"oxd")
134+
echo "Run Sonar analysis without test execution"
135+
mvn -B -DskipTests=true install org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
136+
;;
137+
*)
138+
echo "Run Sonar analysis with test execution"
139+
mvn -B install org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
140+
;;
141+
echo "Run Sonar analysis with test execution"
142+
mvn -B install org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
143+
;;
144+
esac
145+
146+
147+
- name: Convert repo org name to lowercase for non JVM projects
148+
if: contains(env.CHANGED_DIR, matrix.module) && contains(env.NON_JVM_PROJECTS, matrix.module)
149+
env:
150+
REPO_OWNER: ${{ github.repository_owner }}
151+
run: |
152+
echo "REPO_ORG=${REPO_OWNER,,}" >>${GITHUB_ENV}
153+
154+
- name: SonarCloud Scan for non-JVM project
155+
if: contains(env.CHANGED_DIR, matrix.module) && contains(env.NON_JVM_PROJECTS, matrix.module)
156+
uses: SonarSource/sonarcloud-github-action@49e6cd3b187936a73b8280d59ffd9da69df63ec9 # master
157+
with:
158+
args: >
159+
-Dsonar.organization=${{ env.REPO_ORG }}
160+
-Dsonar.projectKey=${{ github.repository_owner }}_${{ matrix.module }}
161+
projectBaseDir: ${{ matrix.module }}
162+
env:
163+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
164+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

oxAuth/.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Eclipse project files
2+
.settings
3+
.project
4+
.classpath
5+
.pydevproject
6+
.tern-project
7+
.faces-config.xml.jsfdia
8+
9+
# IntelliJ IDEA project files
10+
.idea
11+
*.iml
12+
13+
# Maven
14+
target
15+
16+
#Mac
17+
.DS_Store

oxAuth/CODE_OF_CONDUCT.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
## Our Standards
8+
9+
Examples of behavior that contributes to creating a positive environment include:
10+
11+
* Using welcoming and inclusive language
12+
* Being respectful of differing viewpoints and experiences
13+
* Gracefully accepting constructive criticism
14+
* Focusing on what is best for the community
15+
* Showing empathy towards other community members
16+
17+
Examples of unacceptable behavior by participants include:
18+
19+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
* Trolling, insulting/derogatory comments, and personal or political attacks
21+
* Public or private harassment
22+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
* Other conduct which could reasonably be considered inappropriate in a professional setting
24+
25+
## Our Responsibilities
26+
27+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28+
29+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30+
31+
## Scope
32+
33+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34+
35+
## Enforcement
36+
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at sales@gluu.org. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38+
39+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40+
41+
## Attribution
42+
43+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44+
45+
[homepage]: http://contributor-covenant.org
46+
[version]: http://contributor-covenant.org/version/1/4/

oxAuth/Client/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/target/
2+
test-output

0 commit comments

Comments
 (0)