-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add custom annotation for configuration property and feature fl…
…ag documentation (#2852) * feat: add custom annotation for prop documentation * feat: add annotation processor * feat: annotate properties * feat: configure annotation processor * feat: add default value * feat: add annotation to enum * feat: add comment * feat: rename annotation * feat: rename processor class * feat: refactor to new core module * feat: fix test class errors * feat: rename the module * feat: add table and details view of content * feat: sort properties * feat: change wording - mandatory to required * feat: add exception handling and logging * feat: write file under classes output dir * feat: create output file under target directory * feat: rename property and file * feat: create separate annotation for feature flags * feat: code cleanup * fix: add description to properties * fix: add property descriptions from Gluu docs * fix: add descriptions from Swagger * fix(fido2): annotate fido config properties * feat(scim): configure property documentation annotations * fix: add module name to file and title * fix: add Feature Flag descriptions * fix: integrate doc generation with CI * fix: add tags to generated docs * fix: create separate sections for properties and flags * fix: update the artifact version for jans-doc * fix: contents of markdown files after merge * ci: remove token req * fix: sonar issues * fix: sonar issues * fix: sonar issues * fix: move doc generation to shell script Co-authored-by: Mohammad Abudayyeh <47318409+moabu@users.noreply.github.com>
- Loading branch information
Showing
29 changed files
with
1,149 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
echo "Generate properties and feature flag documents from elements annotated with @DocFeatureFlag and @DocProperty" | ||
|
||
# Compile jans-core to pick-up any changes in annotation processors | ||
mvn -q -f jans-core/pom.xml -DskipTests clean compile install | ||
|
||
# Compile modules where classes that use these annotations exist. | ||
# This will generate markdown files under target/classes directory | ||
mvn -q -f jans-auth-server/pom.xml clean compile | ||
mvn -q -f jans-fido2/pom.xml clean compile | ||
mvn -q -f jans-scim/pom.xml clean compile | ||
|
||
# Move markdown files to appropriate locations under documentation root 'doc' | ||
mv -f jans-auth-server/model/target/classes/janssenauthserver-properties.md docs/admin/reference/json/properties | ||
mv -f jans-auth-server/model/target/classes/janssenauthserver-feature-flags.md docs/admin/reference/json/feature-flags | ||
mv -f jans-fido2/model/target/classes/fido2-properties.md docs/admin/reference/json/properties | ||
mv -f jans-scim/model/target/classes/scim-properties.md docs/admin/reference/json/properties |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Overview | ||
|
||
Please use the left navigation menu to browse the content of this section while we are still working on developing content for `Overview` page. | ||
|
||
!!! Contribute | ||
If you’d like to contribute to this document, get started with the [Contribution Guide](https://docs.jans.io/head/CONTRIBUTING/#contributing-to-the-documentation) |
214 changes: 214 additions & 0 deletions
214
docs/admin/reference/json/feature-flags/janssenauthserver-feature-flags.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,214 @@ | ||
--- | ||
tags: | ||
- administration | ||
- reference | ||
- json | ||
- feature-flags | ||
--- | ||
|
||
# Janssen Auth Server Feature Flags | ||
|
||
| Feature Flag Name | Description | | | ||
|-----|-----|-----| | ||
| ACTIVE_SESSION | Enable/Disable active session endpoint | [Details](#active_session) | | ||
| CIBA | Enable/Disable OpenID Connect Client Initiated Backchannel Authentication Flow(CIBA) flow support | [Details](#ciba) | | ||
| CLIENTINFO | Enable/Disable client info endpoint | [Details](#clientinfo) | | ||
| DEVICE_AUTHZ | Enable/Disable support for device authorization | [Details](#device_authz) | | ||
| END_SESSION | Enable/Disable end session endpoint | [Details](#end_session) | | ||
| HEALTH_CHECK | Enable/Disable health-check endpoint | [Details](#health_check) | | ||
| ID_GENERATION | Enable/Disable ID Generation endpoint | [Details](#id_generation) | | ||
| INTROSPECTION | Enable/Disable token introspection endpoint | [Details](#introspection) | | ||
| JANS_CONFIGURATION | Enable/Disable *.well-known* configuration endpoint | [Details](#jans_configuration) | | ||
| METRIC | Enable/Disable metric reporter feature | [Details](#metric) | | ||
| PAR | Enable/Disable Pushed Authorization Requests(PAR) feature | [Details](#par) | | ||
| REGISTRATION | Enable/Disable client registration endpoint | [Details](#registration) | | ||
| REVOKE_SESSION | Enable/Disable session revocation endpoint | [Details](#revoke_session) | | ||
| REVOKE_TOKEN | Enable/Disable token revocation endpoint | [Details](#revoke_token) | | ||
| SSA | Enable/Disable Software Statement Assertion(SSA) feature | [Details](#ssa) | | ||
| STAT | Enable/Disable Stat service | [Details](#stat) | | ||
| STATUS_SESSION | Enable/Disable session status check endpoint | [Details](#status_session) | | ||
| U2F | Enable/Disable support for Universal 2nd Factor(U2F) protocol | [Details](#u2f) | | ||
| UMA | Enable/Disable support for User-Managed Access (UMA) | [Details](#uma) | | ||
| USERINFO | Enable/Disable OpenID Connect [userinfo endpoint](https://openid.net/specs/openid-connect-core-1_0.html#UserInfo) | [Details](#userinfo) | | ||
|
||
|
||
### ACTIVE_SESSION | ||
|
||
- Description: Enable/Disable active session endpoint | ||
|
||
- Required: No | ||
|
||
- Default value: None | ||
|
||
|
||
### CIBA | ||
|
||
- Description: Enable/Disable OpenID Connect Client Initiated Backchannel Authentication Flow(CIBA) flow support | ||
|
||
- Required: No | ||
|
||
- Default value: None | ||
|
||
|
||
### CLIENTINFO | ||
|
||
- Description: Enable/Disable client info endpoint | ||
|
||
- Required: No | ||
|
||
- Default value: None | ||
|
||
|
||
### DEVICE_AUTHZ | ||
|
||
- Description: Enable/Disable support for device authorization | ||
|
||
- Required: No | ||
|
||
- Default value: None | ||
|
||
|
||
### END_SESSION | ||
|
||
- Description: Enable/Disable end session endpoint | ||
|
||
- Required: No | ||
|
||
- Default value: None | ||
|
||
|
||
### HEALTH_CHECK | ||
|
||
- Description: Enable/Disable health-check endpoint | ||
|
||
- Required: No | ||
|
||
- Default value: None | ||
|
||
|
||
### ID_GENERATION | ||
|
||
- Description: Enable/Disable ID Generation endpoint | ||
|
||
- Required: No | ||
|
||
- Default value: None | ||
|
||
|
||
### INTROSPECTION | ||
|
||
- Description: Enable/Disable token introspection endpoint | ||
|
||
- Required: No | ||
|
||
- Default value: None | ||
|
||
|
||
### JANS_CONFIGURATION | ||
|
||
- Description: Enable/Disable *.well-known* configuration endpoint | ||
|
||
- Required: No | ||
|
||
- Default value: None | ||
|
||
|
||
### METRIC | ||
|
||
- Description: Enable/Disable metric reporter feature | ||
|
||
- Required: No | ||
|
||
- Default value: None | ||
|
||
|
||
### PAR | ||
|
||
- Description: Enable/Disable Pushed Authorization Requests(PAR) feature | ||
|
||
- Required: No | ||
|
||
- Default value: None | ||
|
||
|
||
### REGISTRATION | ||
|
||
- Description: Enable/Disable client registration endpoint | ||
|
||
- Required: No | ||
|
||
- Default value: None | ||
|
||
|
||
### REVOKE_SESSION | ||
|
||
- Description: Enable/Disable session revocation endpoint | ||
|
||
- Required: No | ||
|
||
- Default value: None | ||
|
||
|
||
### REVOKE_TOKEN | ||
|
||
- Description: Enable/Disable token revocation endpoint | ||
|
||
- Required: No | ||
|
||
- Default value: None | ||
|
||
|
||
### SSA | ||
|
||
- Description: Enable/Disable Software Statement Assertion(SSA) feature | ||
|
||
- Required: No | ||
|
||
- Default value: None | ||
|
||
|
||
### STAT | ||
|
||
- Description: Enable/Disable Stat service | ||
|
||
- Required: No | ||
|
||
- Default value: None | ||
|
||
|
||
### STATUS_SESSION | ||
|
||
- Description: Enable/Disable session status check endpoint | ||
|
||
- Required: No | ||
|
||
- Default value: None | ||
|
||
|
||
### U2F | ||
|
||
- Description: Enable/Disable support for Universal 2nd Factor(U2F) protocol | ||
|
||
- Required: No | ||
|
||
- Default value: None | ||
|
||
|
||
### UMA | ||
|
||
- Description: Enable/Disable support for User-Managed Access (UMA) | ||
|
||
- Required: No | ||
|
||
- Default value: None | ||
|
||
|
||
### USERINFO | ||
|
||
- Description: Enable/Disable OpenID Connect [userinfo endpoint](https://openid.net/specs/openid-connect-core-1_0.html#UserInfo) | ||
|
||
- Required: No | ||
|
||
- Default value: None | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Overview | ||
|
||
Please use the left navigation menu to browse the content of this section while we are still working on developing content for `Overview` page. | ||
|
||
!!! Contribute | ||
If you’d like to contribute to this document, get started with the [Contribution Guide](https://docs.jans.io/head/CONTRIBUTING/#contributing-to-the-documentation) |
6 changes: 6 additions & 0 deletions
6
docs/admin/reference/json/properties/config-api-properties.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Overview | ||
|
||
Please use the left navigation menu to browse the content of this section while we are still working on developing content for `Overview` page. | ||
|
||
!!! Contribute | ||
If you’d like to contribute to this document, get started with the [Contribution Guide](https://docs.jans.io/head/CONTRIBUTING/#contributing-to-the-documentation) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.