├── .gitattributes ├── .github ├── CODEOWNERS ├── pull_request_template.md └── workflows │ ├── build-timestamped-master.yml │ ├── build-with-bal-test-graalvm.yml │ ├── central-publish.yml │ ├── fossa_scan.yml │ ├── process-load-test-result.yml │ ├── publish-release.yml │ ├── pull-request.yml │ ├── trigger-load-tests.yml │ ├── trivy-scan.yml │ └── update_spec.yml ├── .gitignore ├── LICENSE ├── README.md ├── ballerina ├── Ballerina.toml ├── Dependencies.toml ├── README.md ├── build.gradle ├── client_oauth2_provider.bal ├── icon.png ├── init.bal ├── listener_oauth2_provider.bal ├── oauth2_commons.bal ├── oauth2_errors.bal └── tests │ ├── client_oauth2_provider_test.bal │ ├── listener_oauth2_provider_test.bal │ ├── resources │ ├── cert │ │ ├── public.crt │ │ └── wso2Public.crt │ ├── key │ │ ├── encryptedPrivate.key │ │ └── private.key │ └── keystore │ │ ├── ballerinaKeystore.p12 │ │ └── ballerinaTruststore.p12 │ └── test_utils.bal ├── changelog.md ├── codecov.yml ├── docs └── spec │ └── spec.md ├── examples └── order-management-service │ ├── A Guideline on Securing Ballerina REST APIs.md │ ├── api_gateway │ ├── Ballerina.toml │ ├── api_gateway.bal │ └── resources │ │ ├── private.key │ │ ├── public.crt │ │ └── sts-public.crt │ ├── app_backend │ ├── Ballerina.toml │ ├── Config.toml │ ├── app_backend.bal │ └── resources │ │ ├── private.key │ │ ├── public.crt │ │ └── sts-public.crt │ └── order-management-service.png ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── load-tests └── order_management_service │ ├── deployment │ ├── ingress.yaml │ ├── kustomization.yaml │ └── wso2is-sts.yaml │ ├── results │ └── summary.csv │ ├── scripts │ ├── http-post-request.jmx │ └── run.sh │ └── src │ ├── Ballerina.toml │ ├── Cloud.toml │ ├── api_gateway.bal │ ├── app_backend.bal │ └── resources │ ├── api_gateway │ ├── private.key │ └── public.crt │ └── app_backend │ ├── private.key │ └── public.crt ├── native ├── build.gradle └── src │ └── main │ └── java │ ├── io │ └── ballerina │ │ └── stdlib │ │ └── oauth2 │ │ ├── ModuleUtils.java │ │ ├── OAuth2Client.java │ │ └── OAuth2Constants.java │ └── module-info.java └── settings.gradle /.gitattributes: -------------------------------------------------------------------------------- 1 | # Ensure all Java files use LF. 2 | *.java eol=lf 3 | -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/.github/CODEOWNERS -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/.github/pull_request_template.md -------------------------------------------------------------------------------- /.github/workflows/build-timestamped-master.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/.github/workflows/build-timestamped-master.yml -------------------------------------------------------------------------------- /.github/workflows/build-with-bal-test-graalvm.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/.github/workflows/build-with-bal-test-graalvm.yml -------------------------------------------------------------------------------- /.github/workflows/central-publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/.github/workflows/central-publish.yml -------------------------------------------------------------------------------- /.github/workflows/fossa_scan.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/.github/workflows/fossa_scan.yml -------------------------------------------------------------------------------- /.github/workflows/process-load-test-result.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/.github/workflows/process-load-test-result.yml -------------------------------------------------------------------------------- /.github/workflows/publish-release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/.github/workflows/publish-release.yml -------------------------------------------------------------------------------- /.github/workflows/pull-request.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/.github/workflows/pull-request.yml -------------------------------------------------------------------------------- /.github/workflows/trigger-load-tests.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/.github/workflows/trigger-load-tests.yml -------------------------------------------------------------------------------- /.github/workflows/trivy-scan.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/.github/workflows/trivy-scan.yml -------------------------------------------------------------------------------- /.github/workflows/update_spec.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/.github/workflows/update_spec.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/README.md -------------------------------------------------------------------------------- /ballerina/Ballerina.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/ballerina/Ballerina.toml -------------------------------------------------------------------------------- /ballerina/Dependencies.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/ballerina/Dependencies.toml -------------------------------------------------------------------------------- /ballerina/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/ballerina/README.md -------------------------------------------------------------------------------- /ballerina/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/ballerina/build.gradle -------------------------------------------------------------------------------- /ballerina/client_oauth2_provider.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/ballerina/client_oauth2_provider.bal -------------------------------------------------------------------------------- /ballerina/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/ballerina/icon.png -------------------------------------------------------------------------------- /ballerina/init.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/ballerina/init.bal -------------------------------------------------------------------------------- /ballerina/listener_oauth2_provider.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/ballerina/listener_oauth2_provider.bal -------------------------------------------------------------------------------- /ballerina/oauth2_commons.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/ballerina/oauth2_commons.bal -------------------------------------------------------------------------------- /ballerina/oauth2_errors.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/ballerina/oauth2_errors.bal -------------------------------------------------------------------------------- /ballerina/tests/client_oauth2_provider_test.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/ballerina/tests/client_oauth2_provider_test.bal -------------------------------------------------------------------------------- /ballerina/tests/listener_oauth2_provider_test.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/ballerina/tests/listener_oauth2_provider_test.bal -------------------------------------------------------------------------------- /ballerina/tests/resources/cert/public.crt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/ballerina/tests/resources/cert/public.crt -------------------------------------------------------------------------------- /ballerina/tests/resources/cert/wso2Public.crt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/ballerina/tests/resources/cert/wso2Public.crt -------------------------------------------------------------------------------- /ballerina/tests/resources/key/encryptedPrivate.key: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/ballerina/tests/resources/key/encryptedPrivate.key -------------------------------------------------------------------------------- /ballerina/tests/resources/key/private.key: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/ballerina/tests/resources/key/private.key -------------------------------------------------------------------------------- /ballerina/tests/resources/keystore/ballerinaKeystore.p12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/ballerina/tests/resources/keystore/ballerinaKeystore.p12 -------------------------------------------------------------------------------- /ballerina/tests/resources/keystore/ballerinaTruststore.p12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/ballerina/tests/resources/keystore/ballerinaTruststore.p12 -------------------------------------------------------------------------------- /ballerina/tests/test_utils.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/ballerina/tests/test_utils.bal -------------------------------------------------------------------------------- /changelog.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/changelog.md -------------------------------------------------------------------------------- /codecov.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/codecov.yml -------------------------------------------------------------------------------- /docs/spec/spec.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/docs/spec/spec.md -------------------------------------------------------------------------------- /examples/order-management-service/A Guideline on Securing Ballerina REST APIs.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/examples/order-management-service/A Guideline on Securing Ballerina REST APIs.md -------------------------------------------------------------------------------- /examples/order-management-service/api_gateway/Ballerina.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/examples/order-management-service/api_gateway/Ballerina.toml -------------------------------------------------------------------------------- /examples/order-management-service/api_gateway/api_gateway.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/examples/order-management-service/api_gateway/api_gateway.bal -------------------------------------------------------------------------------- /examples/order-management-service/api_gateway/resources/private.key: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/examples/order-management-service/api_gateway/resources/private.key -------------------------------------------------------------------------------- /examples/order-management-service/api_gateway/resources/public.crt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/examples/order-management-service/api_gateway/resources/public.crt -------------------------------------------------------------------------------- /examples/order-management-service/api_gateway/resources/sts-public.crt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/examples/order-management-service/api_gateway/resources/sts-public.crt -------------------------------------------------------------------------------- /examples/order-management-service/app_backend/Ballerina.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/examples/order-management-service/app_backend/Ballerina.toml -------------------------------------------------------------------------------- /examples/order-management-service/app_backend/Config.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/examples/order-management-service/app_backend/Config.toml -------------------------------------------------------------------------------- /examples/order-management-service/app_backend/app_backend.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/examples/order-management-service/app_backend/app_backend.bal -------------------------------------------------------------------------------- /examples/order-management-service/app_backend/resources/private.key: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/examples/order-management-service/app_backend/resources/private.key -------------------------------------------------------------------------------- /examples/order-management-service/app_backend/resources/public.crt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/examples/order-management-service/app_backend/resources/public.crt -------------------------------------------------------------------------------- /examples/order-management-service/app_backend/resources/sts-public.crt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/examples/order-management-service/app_backend/resources/sts-public.crt -------------------------------------------------------------------------------- /examples/order-management-service/order-management-service.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/examples/order-management-service/order-management-service.png -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/gradle.properties -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/gradle/wrapper/gradle-wrapper.properties -------------------------------------------------------------------------------- /gradlew: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/gradlew -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/gradlew.bat -------------------------------------------------------------------------------- /load-tests/order_management_service/deployment/ingress.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/load-tests/order_management_service/deployment/ingress.yaml -------------------------------------------------------------------------------- /load-tests/order_management_service/deployment/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/load-tests/order_management_service/deployment/kustomization.yaml -------------------------------------------------------------------------------- /load-tests/order_management_service/deployment/wso2is-sts.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/load-tests/order_management_service/deployment/wso2is-sts.yaml -------------------------------------------------------------------------------- /load-tests/order_management_service/results/summary.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/load-tests/order_management_service/results/summary.csv -------------------------------------------------------------------------------- /load-tests/order_management_service/scripts/http-post-request.jmx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/load-tests/order_management_service/scripts/http-post-request.jmx -------------------------------------------------------------------------------- /load-tests/order_management_service/scripts/run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/load-tests/order_management_service/scripts/run.sh -------------------------------------------------------------------------------- /load-tests/order_management_service/src/Ballerina.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/load-tests/order_management_service/src/Ballerina.toml -------------------------------------------------------------------------------- /load-tests/order_management_service/src/Cloud.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/load-tests/order_management_service/src/Cloud.toml -------------------------------------------------------------------------------- /load-tests/order_management_service/src/api_gateway.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/load-tests/order_management_service/src/api_gateway.bal -------------------------------------------------------------------------------- /load-tests/order_management_service/src/app_backend.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/load-tests/order_management_service/src/app_backend.bal -------------------------------------------------------------------------------- /load-tests/order_management_service/src/resources/api_gateway/private.key: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/load-tests/order_management_service/src/resources/api_gateway/private.key -------------------------------------------------------------------------------- /load-tests/order_management_service/src/resources/api_gateway/public.crt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/load-tests/order_management_service/src/resources/api_gateway/public.crt -------------------------------------------------------------------------------- /load-tests/order_management_service/src/resources/app_backend/private.key: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/load-tests/order_management_service/src/resources/app_backend/private.key -------------------------------------------------------------------------------- /load-tests/order_management_service/src/resources/app_backend/public.crt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/load-tests/order_management_service/src/resources/app_backend/public.crt -------------------------------------------------------------------------------- /native/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/native/build.gradle -------------------------------------------------------------------------------- /native/src/main/java/io/ballerina/stdlib/oauth2/ModuleUtils.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/native/src/main/java/io/ballerina/stdlib/oauth2/ModuleUtils.java -------------------------------------------------------------------------------- /native/src/main/java/io/ballerina/stdlib/oauth2/OAuth2Client.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/native/src/main/java/io/ballerina/stdlib/oauth2/OAuth2Client.java -------------------------------------------------------------------------------- /native/src/main/java/io/ballerina/stdlib/oauth2/OAuth2Constants.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/native/src/main/java/io/ballerina/stdlib/oauth2/OAuth2Constants.java -------------------------------------------------------------------------------- /native/src/main/java/module-info.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/native/src/main/java/module-info.java -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-oauth2/HEAD/settings.gradle --------------------------------------------------------------------------------