├── .bin ├── license-engine.sh ├── licenses └── list-licenses ├── .github ├── FUNDING.yml ├── ISSUE_TEMPLATE │ ├── BUG-REPORT.yml │ ├── DESIGN-DOC.yml │ ├── FEATURE-REQUEST.yml │ └── config.yml ├── auto_assign.yml ├── config.yml ├── pull_request_template.md └── workflows │ ├── closed_references.yml │ ├── conventional_commits.yml │ ├── labels.yml │ ├── licenses.yml │ ├── maven.yml │ └── stale.yml ├── .gitignore ├── .openapi-generator-ignore ├── .openapi-generator ├── FILES └── VERSION ├── .reference-ignore ├── .reports └── dep-licenses.csv ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── SECURITY.md ├── api └── openapi.yaml ├── build.gradle ├── build.sbt ├── docs ├── AcceptDeviceUserCodeRequest.md ├── AcceptOAuth2ConsentRequest.md ├── AcceptOAuth2ConsentRequestSession.md ├── AcceptOAuth2LoginRequest.md ├── CreateJsonWebKeySet.md ├── CreateVerifiableCredentialRequestBody.md ├── CredentialSupportedDraft00.md ├── DeviceAuthorization.md ├── DeviceUserAuthRequest.md ├── ErrorOAuth2.md ├── GenericError.md ├── GetVersion200Response.md ├── HealthNotReadyStatus.md ├── HealthStatus.md ├── IntrospectedOAuth2Token.md ├── IsReady200Response.md ├── IsReady503Response.md ├── JsonPatch.md ├── JsonWebKey.md ├── JsonWebKeySet.md ├── JwkApi.md ├── MetadataApi.md ├── OAuth2Api.md ├── OAuth2Client.md ├── OAuth2ClientTokenLifespans.md ├── OAuth2ConsentRequest.md ├── OAuth2ConsentRequestOpenIDConnectContext.md ├── OAuth2ConsentSession.md ├── OAuth2ConsentSessionExpiresAt.md ├── OAuth2LoginRequest.md ├── OAuth2LogoutRequest.md ├── OAuth2RedirectTo.md ├── OAuth2TokenExchange.md ├── OidcApi.md ├── OidcConfiguration.md ├── OidcUserInfo.md ├── Pagination.md ├── PaginationHeaders.md ├── RFC6749ErrorJson.md ├── RejectOAuth2Request.md ├── TokenPagination.md ├── TokenPaginationHeaders.md ├── TokenPaginationRequestParameters.md ├── TokenPaginationResponseHeaders.md ├── TrustOAuth2JwtGrantIssuer.md ├── TrustedOAuth2JwtGrantIssuer.md ├── TrustedOAuth2JwtGrantJsonWebKey.md ├── VerifiableCredentialPrimingResponse.md ├── VerifiableCredentialProof.md ├── VerifiableCredentialResponse.md ├── VerifyUserCodeRequest.md ├── Version.md └── WellknownApi.md ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── pom.xml ├── settings.gradle └── src ├── main ├── AndroidManifest.xml └── java │ └── sh │ └── ory │ └── hydra │ ├── ApiCallback.java │ ├── ApiClient.java │ ├── ApiException.java │ ├── ApiResponse.java │ ├── Configuration.java │ ├── GzipRequestInterceptor.java │ ├── JSON.java │ ├── Pair.java │ ├── ProgressRequestBody.java │ ├── ProgressResponseBody.java │ ├── ServerConfiguration.java │ ├── ServerVariable.java │ ├── StringUtil.java │ ├── api │ ├── JwkApi.java │ ├── MetadataApi.java │ ├── OAuth2Api.java │ ├── OidcApi.java │ └── WellknownApi.java │ ├── auth │ ├── ApiKeyAuth.java │ ├── Authentication.java │ ├── HttpBasicAuth.java │ ├── HttpBearerAuth.java │ ├── OAuth.java │ ├── OAuthFlow.java │ ├── OAuthOkHttpClient.java │ └── RetryingOAuth.java │ └── model │ ├── AbstractOpenApiSchema.java │ ├── AcceptDeviceUserCodeRequest.java │ ├── AcceptOAuth2ConsentRequest.java │ ├── AcceptOAuth2ConsentRequestSession.java │ ├── AcceptOAuth2LoginRequest.java │ ├── CreateJsonWebKeySet.java │ ├── CreateVerifiableCredentialRequestBody.java │ ├── CredentialSupportedDraft00.java │ ├── DeviceAuthorization.java │ ├── DeviceUserAuthRequest.java │ ├── ErrorOAuth2.java │ ├── GenericError.java │ ├── GetVersion200Response.java │ ├── HealthNotReadyStatus.java │ ├── HealthStatus.java │ ├── IntrospectedOAuth2Token.java │ ├── IsReady200Response.java │ ├── IsReady503Response.java │ ├── JsonPatch.java │ ├── JsonWebKey.java │ ├── JsonWebKeySet.java │ ├── OAuth2Client.java │ ├── OAuth2ClientTokenLifespans.java │ ├── OAuth2ConsentRequest.java │ ├── OAuth2ConsentRequestOpenIDConnectContext.java │ ├── OAuth2ConsentSession.java │ ├── OAuth2ConsentSessionExpiresAt.java │ ├── OAuth2LoginRequest.java │ ├── OAuth2LogoutRequest.java │ ├── OAuth2RedirectTo.java │ ├── OAuth2TokenExchange.java │ ├── OidcConfiguration.java │ ├── OidcUserInfo.java │ ├── Pagination.java │ ├── PaginationHeaders.java │ ├── RFC6749ErrorJson.java │ ├── RejectOAuth2Request.java │ ├── TokenPagination.java │ ├── TokenPaginationHeaders.java │ ├── TokenPaginationRequestParameters.java │ ├── TokenPaginationResponseHeaders.java │ ├── TrustOAuth2JwtGrantIssuer.java │ ├── TrustedOAuth2JwtGrantIssuer.java │ ├── TrustedOAuth2JwtGrantJsonWebKey.java │ ├── VerifiableCredentialPrimingResponse.java │ ├── VerifiableCredentialProof.java │ ├── VerifiableCredentialResponse.java │ ├── VerifyUserCodeRequest.java │ └── Version.java └── test └── java └── sh └── ory └── hydra ├── api ├── JwkApiTest.java ├── MetadataApiTest.java ├── OAuth2ApiTest.java ├── OidcApiTest.java └── WellknownApiTest.java └── model ├── AcceptDeviceUserCodeRequestTest.java ├── AcceptOAuth2ConsentRequestSessionTest.java ├── AcceptOAuth2ConsentRequestTest.java ├── AcceptOAuth2LoginRequestTest.java ├── CreateJsonWebKeySetTest.java ├── CreateVerifiableCredentialRequestBodyTest.java ├── CredentialSupportedDraft00Test.java ├── DeviceAuthorizationTest.java ├── DeviceUserAuthRequestTest.java ├── ErrorOAuth2Test.java ├── GenericErrorTest.java ├── GetVersion200ResponseTest.java ├── HealthNotReadyStatusTest.java ├── HealthStatusTest.java ├── IntrospectedOAuth2TokenTest.java ├── IsReady200ResponseTest.java ├── IsReady503ResponseTest.java ├── JsonPatchTest.java ├── JsonWebKeySetTest.java ├── JsonWebKeyTest.java ├── OAuth2ClientTest.java ├── OAuth2ClientTokenLifespansTest.java ├── OAuth2ConsentRequestOpenIDConnectContextTest.java ├── OAuth2ConsentRequestTest.java ├── OAuth2ConsentSessionExpiresAtTest.java ├── OAuth2ConsentSessionTest.java ├── OAuth2LoginRequestTest.java ├── OAuth2LogoutRequestTest.java ├── OAuth2RedirectToTest.java ├── OAuth2TokenExchangeTest.java ├── OidcConfigurationTest.java ├── OidcUserInfoTest.java ├── PaginationHeadersTest.java ├── PaginationTest.java ├── RFC6749ErrorJsonTest.java ├── RejectOAuth2RequestTest.java ├── TokenPaginationHeadersTest.java ├── TokenPaginationRequestParametersTest.java ├── TokenPaginationResponseHeadersTest.java ├── TokenPaginationTest.java ├── TrustOAuth2JwtGrantIssuerTest.java ├── TrustedOAuth2JwtGrantIssuerTest.java ├── TrustedOAuth2JwtGrantJsonWebKeyTest.java ├── VerifiableCredentialPrimingResponseTest.java ├── VerifiableCredentialProofTest.java ├── VerifiableCredentialResponseTest.java ├── VerifyUserCodeRequestTest.java └── VersionTest.java /.bin/licenses: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # Get the directory where this script is located 5 | bin_dir="$(cd "$(dirname "$0")" && pwd)" 6 | 7 | { echo "Checking licenses ..."; } 2>/dev/null 8 | "${bin_dir}/list-licenses" | "${bin_dir}/license-engine.sh" 9 | -------------------------------------------------------------------------------- /.bin/list-licenses: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | bin_dir="$(cd "$(dirname "$0")" && pwd)" 5 | 6 | # list Node licenses 7 | if [ -f package.json ]; then 8 | if jq -e '.dependencies and (.dependencies | keys | length > 0)' package.json >/dev/null; then 9 | npx --yes license-checker --production --csv --excludePrivatePackages --customPath "${bin_dir}"/license-template-node.json | grep -v '^$' 10 | echo 11 | else 12 | echo "No dependencies found in package.json" >&2 13 | echo 14 | fi 15 | fi 16 | 17 | # list Go licenses 18 | if [ -f go.mod ]; then 19 | # List all direct Go module dependencies, transform their paths to root module paths 20 | # (e.g., github.com/ory/x instead of github.com/ory/x/foo/bar), and generate a license report 21 | # for each unique root module. This ensures that the license report is generated for the root 22 | # module of a repository, where licenses are typically defined. 23 | go_modules=$( 24 | go list -f "{{if not .Indirect}}{{.Path}}{{end}}" -m ... | 25 | sort -u | 26 | awk -F/ '{ if ($1 == "github.com" && NF >= 3) { print $1"/"$2"/"$3 } else { print } }' | 27 | sort -u 28 | ) 29 | if [ -z "$go_modules" ]; then 30 | echo "No Go modules found" >&2 31 | else 32 | # Workaround until https://github.com/google/go-licenses/issues/307 is fixed 33 | # .bin/go-licenses report "$module_name" --template .bin/license-template-go.tpl 2>/dev/null 34 | # 35 | echo "$go_modules" | xargs -I {} sh -c '.bin/go-licenses report --template .bin/license-template-go.tpl {}' | grep -v '^$' 36 | echo 37 | fi 38 | fi 39 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # AUTO-GENERATED, DO NOT EDIT! 2 | # Please edit the original at https://github.com/ory/meta/blob/master/templates/repository/common/.github/FUNDING.yml 3 | 4 | # These are supported funding model platforms 5 | 6 | # github: 7 | patreon: _ory 8 | open_collective: ory 9 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/FEATURE-REQUEST.yml: -------------------------------------------------------------------------------- 1 | # AUTO-GENERATED, DO NOT EDIT! 2 | # Please edit the original at https://github.com/ory/meta/blob/master/templates/repository/common/.github/ISSUE_TEMPLATE/FEATURE-REQUEST.yml 3 | 4 | description: 5 | "Suggest an idea for this project without a plan for implementation" 6 | labels: 7 | - feat 8 | name: "Feature Request" 9 | body: 10 | - attributes: 11 | value: | 12 | Thank you for suggesting an idea for this project! 13 | 14 | If you already have a plan to implement a feature or a change, please create a [design document](https://github.com/aeneasr/gh-template-test/issues/new?assignees=&labels=rfc&template=DESIGN-DOC.yml) instead if the change is non-trivial! 15 | type: markdown 16 | - attributes: 17 | label: "Preflight checklist" 18 | options: 19 | - label: 20 | "I could not find a solution in the existing issues, docs, nor 21 | discussions." 22 | required: true 23 | - label: 24 | "I agree to follow this project's [Code of 25 | Conduct](https://github.com/ory/hydra-client-java/blob/master/CODE_OF_CONDUCT.md)." 26 | required: true 27 | - label: 28 | "I have read and am following this repository's [Contribution 29 | Guidelines](https://github.com/ory/hydra-client-java/blob/master/CONTRIBUTING.md)." 30 | required: true 31 | - label: 32 | "I have joined the [Ory Community Slack](https://slack.ory.sh)." 33 | - label: 34 | "I am signed up to the [Ory Security Patch 35 | Newsletter](https://www.ory.sh/l/sign-up-newsletter)." 36 | id: checklist 37 | type: checkboxes 38 | - attributes: 39 | description: 40 | "Enter the slug or API URL of the affected Ory Network project. Leave 41 | empty when you are self-hosting." 42 | label: "Ory Network Project" 43 | placeholder: "https://.projects.oryapis.com" 44 | id: ory-network-project 45 | type: input 46 | - attributes: 47 | description: 48 | "Is your feature request related to a problem? Please describe." 49 | label: "Describe your problem" 50 | placeholder: 51 | "A clear and concise description of what the problem is. Ex. I'm always 52 | frustrated when [...]" 53 | id: problem 54 | type: textarea 55 | validations: 56 | required: true 57 | - attributes: 58 | description: | 59 | Describe the solution you'd like 60 | placeholder: | 61 | A clear and concise description of what you want to happen. 62 | label: "Describe your ideal solution" 63 | id: solution 64 | type: textarea 65 | validations: 66 | required: true 67 | - attributes: 68 | description: "Describe alternatives you've considered" 69 | label: "Workarounds or alternatives" 70 | id: alternatives 71 | type: textarea 72 | validations: 73 | required: true 74 | - attributes: 75 | description: "What version of our software are you running?" 76 | label: Version 77 | id: version 78 | type: input 79 | validations: 80 | required: true 81 | - attributes: 82 | description: 83 | "Add any other context or screenshots about the feature request here." 84 | label: Additional Context 85 | id: additional 86 | type: textarea 87 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | # AUTO-GENERATED, DO NOT EDIT! 2 | # Please edit the original at https://github.com/ory/meta/blob/master/templates/repository/common/.github/ISSUE_TEMPLATE/config.yml 3 | 4 | blank_issues_enabled: false 5 | contact_links: 6 | - name: Ory Ory Hydra Java Client Forum 7 | url: https://github.com/orgs/ory/discussions 8 | about: 9 | Please ask and answer questions here, show your implementations and 10 | discuss ideas. 11 | - name: Ory Chat 12 | url: https://www.ory.sh/chat 13 | about: 14 | Hang out with other Ory community members to ask and answer questions. 15 | -------------------------------------------------------------------------------- /.github/auto_assign.yml: -------------------------------------------------------------------------------- 1 | # AUTO-GENERATED, DO NOT EDIT! 2 | # Please edit the original at https://github.com/ory/meta/blob/master/templates/repository/common/.github/auto_assign.yml 3 | 4 | # Set to true to add reviewers to pull requests 5 | addReviewers: true 6 | 7 | # Set to true to add assignees to pull requests 8 | addAssignees: true 9 | 10 | # A list of reviewers to be added to pull requests (GitHub user name) 11 | assignees: 12 | - ory/maintainers 13 | 14 | # A number of reviewers added to the pull request 15 | # Set 0 to add all the reviewers (default: 0) 16 | numberOfReviewers: 0 17 | -------------------------------------------------------------------------------- /.github/config.yml: -------------------------------------------------------------------------------- 1 | # AUTO-GENERATED, DO NOT EDIT! 2 | # Please edit the original at https://github.com/ory/meta/blob/master/templates/repository/common/.github/config.yml 3 | 4 | todo: 5 | keyword: "@todo" 6 | label: todo 7 | -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- 1 | 12 | 13 | ## Related Issue or Design Document 14 | 15 | 29 | 30 | ## Checklist 31 | 32 | 36 | 37 | - [ ] I have read the [contributing guidelines](../blob/master/CONTRIBUTING.md) and signed the CLA. 38 | - [ ] I have referenced an issue containing the design document if my change introduces a new feature. 39 | - [ ] I have read the [security policy](../security/policy). 40 | - [ ] I confirm that this pull request does not address a security vulnerability. 41 | If this pull request addresses a security vulnerability, 42 | I confirm that I got approval (please contact [security@ory.sh](mailto:security@ory.sh)) from the maintainers to push the changes. 43 | - [ ] I have added tests that prove my fix is effective or that my feature works. 44 | - [ ] I have added the necessary documentation within the code base (if appropriate). 45 | 46 | ## Further comments 47 | 48 | 52 | -------------------------------------------------------------------------------- /.github/workflows/closed_references.yml: -------------------------------------------------------------------------------- 1 | # AUTO-GENERATED, DO NOT EDIT! 2 | # Please edit the original at https://github.com/ory/meta/blob/master/templates/repository/common/.github/workflows/closed_references.yml 3 | 4 | name: Closed Reference Notifier 5 | 6 | on: 7 | schedule: 8 | - cron: "0 0 * * *" 9 | workflow_dispatch: 10 | inputs: 11 | issueLimit: 12 | description: Max. number of issues to create 13 | required: true 14 | default: "5" 15 | 16 | jobs: 17 | find_closed_references: 18 | if: github.repository_owner == 'ory' 19 | runs-on: ubuntu-latest 20 | name: Find closed references 21 | steps: 22 | - uses: actions/checkout@v2 23 | - uses: actions/setup-node@v2-beta 24 | with: 25 | node-version: "14" 26 | - uses: ory/closed-reference-notifier@v1 27 | with: 28 | token: ${{ secrets.GITHUB_TOKEN }} 29 | issueLabels: upstream,good first issue,help wanted 30 | issueLimit: ${{ github.event.inputs.issueLimit || '5' }} 31 | -------------------------------------------------------------------------------- /.github/workflows/conventional_commits.yml: -------------------------------------------------------------------------------- 1 | # AUTO-GENERATED, DO NOT EDIT! 2 | # Please edit the original at https://github.com/ory/meta/blob/master/templates/repository/common/.github/workflows/conventional_commits.yml 3 | 4 | name: Conventional commits 5 | 6 | # This GitHub CI Action enforces that pull request titles follow conventional commits. 7 | # More info at https://www.conventionalcommits.org. 8 | # 9 | # The Ory-wide defaults for commit titles and scopes are below. 10 | # Your repository can add/replace elements via a configuration file at the path below. 11 | # More info at https://github.com/ory/ci/blob/master/conventional_commit_config/README.md 12 | 13 | on: 14 | pull_request_target: 15 | types: 16 | - edited 17 | - opened 18 | - ready_for_review 19 | - reopened 20 | # pull_request: # for debugging, uses config in local branch but supports only Pull Requests from this repo 21 | 22 | jobs: 23 | main: 24 | name: Validate PR title 25 | runs-on: ubuntu-latest 26 | steps: 27 | - uses: actions/checkout@v3 28 | - id: config 29 | uses: ory/ci/conventional_commit_config@master 30 | with: 31 | config_path: .github/conventional_commits.json 32 | default_types: | 33 | feat 34 | fix 35 | revert 36 | docs 37 | style 38 | refactor 39 | test 40 | build 41 | autogen 42 | security 43 | ci 44 | chore 45 | default_scopes: | 46 | deps 47 | docs 48 | default_require_scope: false 49 | - uses: amannn/action-semantic-pull-request@v4 50 | env: 51 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 52 | with: 53 | types: ${{ steps.config.outputs.types }} 54 | scopes: ${{ steps.config.outputs.scopes }} 55 | requireScope: ${{ steps.config.outputs.requireScope }} 56 | subjectPattern: ^(?![A-Z]).+$ 57 | subjectPatternError: | 58 | The subject should start with a lowercase letter, yours is uppercase: 59 | "{subject}" 60 | -------------------------------------------------------------------------------- /.github/workflows/labels.yml: -------------------------------------------------------------------------------- 1 | # AUTO-GENERATED, DO NOT EDIT! 2 | # Please edit the original at https://github.com/ory/meta/blob/master/templates/repository/common/.github/workflows/labels.yml 3 | 4 | name: Synchronize Issue Labels 5 | 6 | on: 7 | workflow_dispatch: 8 | push: 9 | branches: 10 | - master 11 | 12 | jobs: 13 | milestone: 14 | if: github.repository_owner == 'ory' 15 | name: Synchronize Issue Labels 16 | runs-on: ubuntu-latest 17 | steps: 18 | - name: Checkout 19 | uses: actions/checkout@v2 20 | - name: Synchronize Issue Labels 21 | uses: ory/label-sync-action@v0 22 | with: 23 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 24 | dry: false 25 | forced: true 26 | -------------------------------------------------------------------------------- /.github/workflows/licenses.yml: -------------------------------------------------------------------------------- 1 | # AUTO-GENERATED, DO NOT EDIT! 2 | # Please edit the original at https://github.com/ory/meta/blob/master/templates/repository/common/.github/workflows/licenses.yml 3 | 4 | name: Licenses 5 | 6 | on: 7 | pull_request: 8 | push: 9 | branches: 10 | - main 11 | - v3 12 | - master 13 | 14 | jobs: 15 | licenses: 16 | name: License compliance 17 | runs-on: ubuntu-latest 18 | steps: 19 | - name: Install script 20 | uses: ory/ci/licenses/setup@master 21 | with: 22 | token: ${{ secrets.ORY_BOT_PAT || secrets.GITHUB_TOKEN }} 23 | - name: Check licenses 24 | uses: ory/ci/licenses/check@master 25 | - name: Write, commit, push licenses 26 | uses: ory/ci/licenses/write@master 27 | if: 28 | ${{ github.ref == 'refs/heads/main' || github.ref == 29 | 'refs/heads/master' || github.ref == 'refs/heads/v3' }} 30 | with: 31 | author-email: 32 | ${{ secrets.ORY_BOT_PAT && 33 | '60093411+ory-bot@users.noreply.github.com' || 34 | format('{0}@users.noreply.github.com', github.actor) }} 35 | author-name: ${{ secrets.ORY_BOT_PAT && 'ory-bot' || github.actor }} 36 | -------------------------------------------------------------------------------- /.github/workflows/maven.yml: -------------------------------------------------------------------------------- 1 | # This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time 2 | # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven 3 | # 4 | # This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) 5 | 6 | name: Java CI with Maven 7 | 8 | on: 9 | push: 10 | branches: [ main, master ] 11 | pull_request: 12 | branches: [ main, master ] 13 | 14 | jobs: 15 | build: 16 | name: Build Ory Hydra API 17 | runs-on: ubuntu-latest 18 | strategy: 19 | matrix: 20 | java: [ 17, 21 ] 21 | steps: 22 | - uses: actions/checkout@v4 23 | - name: Set up JDK 24 | uses: actions/setup-java@v4 25 | with: 26 | java-version: ${{ matrix.java }} 27 | distribution: 'temurin' 28 | cache: maven 29 | - name: Build with Maven 30 | run: mvn -B package --no-transfer-progress --file pom.xml 31 | -------------------------------------------------------------------------------- /.github/workflows/stale.yml: -------------------------------------------------------------------------------- 1 | # AUTO-GENERATED, DO NOT EDIT! 2 | # Please edit the original at https://github.com/ory/meta/blob/master/templates/repository/common/.github/workflows/stale.yml 3 | 4 | name: "Close Stale Issues" 5 | on: 6 | workflow_dispatch: 7 | schedule: 8 | - cron: "0 0 * * *" 9 | 10 | jobs: 11 | stale: 12 | if: github.repository_owner == 'ory' 13 | runs-on: ubuntu-latest 14 | steps: 15 | - uses: actions/stale@v4 16 | with: 17 | repo-token: ${{ secrets.GITHUB_TOKEN }} 18 | stale-issue-message: | 19 | Hello contributors! 20 | 21 | I am marking this issue as stale as it has not received any engagement from the community or maintainers for a year. That does not imply that the issue has no merit! If you feel strongly about this issue 22 | 23 | - open a PR referencing and resolving the issue; 24 | - leave a comment on it and discuss ideas on how you could contribute towards resolving it; 25 | - leave a comment and describe in detail why this issue is critical for your use case; 26 | - open a new issue with updated details and a plan for resolving the issue. 27 | 28 | Throughout its lifetime, Ory has received over 10.000 issues and PRs. To sustain that growth, we need to prioritize and focus on issues that are important to the community. A good indication of importance, and thus priority, is activity on a topic. 29 | 30 | Unfortunately, [burnout](https://www.jeffgeerling.com/blog/2016/why-i-close-prs-oss-project-maintainer-notes) has become a [topic](https://opensource.guide/best-practices/#its-okay-to-hit-pause) of [concern](https://docs.brew.sh/Maintainers-Avoiding-Burnout) amongst open-source projects. 31 | 32 | It can lead to severe personal and health issues as well as [opening](https://haacked.com/archive/2019/05/28/maintainer-burnout/) catastrophic [attack vectors](https://www.gradiant.org/en/blog/open-source-maintainer-burnout-as-an-attack-surface/). 33 | 34 | The motivation for this automation is to help prioritize issues in the backlog and not ignore, reject, or belittle anyone. 35 | 36 | If this issue was marked as stale erroneously you can exempt it by adding the `backlog` label, assigning someone, or setting a milestone for it. 37 | 38 | Thank you for your understanding and to anyone who participated in the conversation! And as written above, please do participate in the conversation if this topic is important to you! 39 | 40 | Thank you 🙏✌️ 41 | stale-issue-label: "stale" 42 | exempt-issue-labels: "bug,blocking,docs,backlog" 43 | days-before-stale: 365 44 | days-before-close: 30 45 | exempt-milestones: true 46 | exempt-assignees: true 47 | only-pr-labels: "stale" 48 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.class 2 | 3 | # Mobile Tools for Java (J2ME) 4 | .mtj.tmp/ 5 | 6 | # Package Files # 7 | *.jar 8 | *.war 9 | *.ear 10 | 11 | # exclude jar for gradle wrapper 12 | !gradle/wrapper/*.jar 13 | 14 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 15 | hs_err_pid* 16 | 17 | # build files 18 | **/target 19 | target 20 | .gradle 21 | build 22 | -------------------------------------------------------------------------------- /.openapi-generator-ignore: -------------------------------------------------------------------------------- 1 | # OpenAPI Generator Ignore 2 | # Generated by openapi-generator https://github.com/openapitools/openapi-generator 3 | 4 | # Use this file to prevent files from being overwritten by the generator. 5 | # The patterns follow closely to .gitignore or .dockerignore. 6 | 7 | # As an example, the C# client generator defines ApiClient.cs. 8 | # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: 9 | #ApiClient.cs 10 | 11 | # You can match any string of characters against a directory, file or extension with a single asterisk (*): 12 | #foo/*/qux 13 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux 14 | 15 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**): 16 | #foo/**/qux 17 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux 18 | 19 | # You can also negate patterns with an exclamation (!). 20 | # For example, you can ignore all files in a docs folder with the file extension .md: 21 | #docs/*.md 22 | # Then explicitly reverse the ignore rule for a single file: 23 | #!docs/README.md 24 | -------------------------------------------------------------------------------- /.openapi-generator/VERSION: -------------------------------------------------------------------------------- 1 | 7.7.0 2 | -------------------------------------------------------------------------------- /.reference-ignore: -------------------------------------------------------------------------------- 1 | **/node_modules 2 | docs 3 | CHANGELOG.md 4 | -------------------------------------------------------------------------------- /.reports/dep-licenses.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ory/hydra-client-java/26b02da1ce321d0e7cae5fe950c7d269df5ec0bc/.reports/dep-licenses.csv -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ory/hydra-client-java 2 | 3 | This is the official Ory Hydra SDK for java. 4 | 5 | ## Ory Self-Hosted 6 | 7 | This SDK is for use with self-hosted Ory Hydra. 8 | If you are developing against Ory Network, please use the [Ory Network SDK](https://www.ory.sh/docs/sdk). 9 | 10 | 11 | 12 | Please do not make any pull requests against this repository! Its contents are 13 | fully auto-generated by the [ory/sdk](http://github.com/ory/sdk) repository. Any 14 | changes to this repository will be overwritten on the next CI run! 15 | 16 | ## Installation 17 | 18 | [Java (Maven Central)](https://search.maven.org/artifact/sh.ory.hydra/hydra-client) 19 | 20 | ## Documentation 21 | 22 | - [Ory Network](https://www.ory.sh/docs/sdk) 23 | - [Ory Hydra](https://www.ory.sh/hydra/docs/sdk) 24 | - [Ory Kratos](https://www.ory.sh/kratos/docs/sdk) 25 | - [Ory Keto](https://www.ory.sh/keto/docs/sdk) 26 | - [Ory Oathkeeper](https://www.ory.sh/oathkeeper/docs/sdk) 27 | 28 | ## Generation 29 | 30 | This code base, including this README, is auto-generated using 31 | [OpenAPI Generator](https://openapi-generator.tech). If you find bugs in the SDK 32 | please check if there is an open issue at 33 | [OpenAPITools/openapi-generator](https://github.com/OpenAPITools/openapi-generator) 34 | or [ory/sdk](http://github.com/ory/sdk) already before opening an issue here. 35 | 36 | ## Feedback 37 | 38 | If you have feedback on how to improve the Ory SDK or are 39 | [looking to contribute](https://www.ory.sh/docs/ecosystem/contributing), please 40 | [open an issue](https://github.com/ory/sdk/issues/new/choose) in `ory/sdk` to 41 | discuss your ideas. 42 | 43 | Thanks for being a part of the Ory community! 44 | -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | # Ory Security Policy 5 | 6 | This policy outlines Ory's security commitments and practices for users across 7 | different licensing and deployment models. 8 | 9 | To learn more about Ory's security service level agreements (SLAs) and 10 | processes, please [contact us](https://www.ory.sh/contact/). 11 | 12 | ## Ory Network Users 13 | 14 | - **Security SLA:** Ory addresses vulnerabilities in the Ory Network according 15 | to the following guidelines: 16 | - Critical: Typically addressed within 14 days. 17 | - High: Typically addressed within 30 days. 18 | - Medium: Typically addressed within 90 days. 19 | - Low: Typically addressed within 180 days. 20 | - Informational: Addressed as necessary. 21 | These timelines are targets and may vary based on specific circumstances. 22 | - **Release Schedule:** Updates are deployed to the Ory Network as 23 | vulnerabilities are resolved. 24 | - **Version Support:** The Ory Network always runs the latest version, ensuring 25 | up-to-date security fixes. 26 | 27 | ## Ory Enterprise License Customers 28 | 29 | - **Security SLA:** Ory addresses vulnerabilities based on their severity: 30 | - Critical: Typically addressed within 14 days. 31 | - High: Typically addressed within 30 days. 32 | - Medium: Typically addressed within 90 days. 33 | - Low: Typically addressed within 180 days. 34 | - Informational: Addressed as necessary. 35 | These timelines are targets and may vary based on specific circumstances. 36 | - **Release Schedule:** Updates are made available as vulnerabilities are 37 | resolved. Ory works closely with enterprise customers to ensure timely updates 38 | that align with their operational needs. 39 | - **Version Support:** Ory may provide security support for multiple versions, 40 | depending on the terms of the enterprise agreement. 41 | 42 | ## Apache 2.0 License Users 43 | 44 | - **Security SLA:** Ory does not provide a formal SLA for security issues under 45 | the Apache 2.0 License. 46 | - **Release Schedule:** Releases prioritize new functionality and include fixes 47 | for known security vulnerabilities at the time of release. While major 48 | releases typically occur one to two times per year, Ory does not guarantee a 49 | fixed release schedule. 50 | - **Version Support:** Security patches are only provided for the latest release 51 | version. 52 | 53 | ## Reporting a Vulnerability 54 | 55 | For details on how to report security vulnerabilities, visit our 56 | [security policy documentation](https://www.ory.sh/docs/ecosystem/security). 57 | -------------------------------------------------------------------------------- /build.sbt: -------------------------------------------------------------------------------- 1 | lazy val root = (project in file(".")). 2 | settings( 3 | organization := "sh.ory.hydra", 4 | name := "hydra-client", 5 | version := "v2.4.0-alpha.1", 6 | scalaVersion := "2.11.4", 7 | scalacOptions ++= Seq("-feature"), 8 | javacOptions in compile ++= Seq("-Xlint:deprecation"), 9 | publishArtifact in (Compile, packageDoc) := false, 10 | resolvers += Resolver.mavenLocal, 11 | libraryDependencies ++= Seq( 12 | "io.swagger" % "swagger-annotations" % "1.6.5", 13 | "com.squareup.okhttp3" % "okhttp" % "4.12.0", 14 | "com.squareup.okhttp3" % "logging-interceptor" % "4.12.0", 15 | "com.google.code.gson" % "gson" % "2.9.1", 16 | "org.apache.commons" % "commons-lang3" % "3.12.0", 17 | "javax.ws.rs" % "jsr311-api" % "1.1.1", 18 | "javax.ws.rs" % "javax.ws.rs-api" % "2.1.1", 19 | "org.openapitools" % "jackson-databind-nullable" % "0.2.6", 20 | "org.apache.oltu.oauth2" % "org.apache.oltu.oauth2.client" % "1.0.2", 21 | "io.gsonfire" % "gson-fire" % "1.9.0" % "compile", 22 | "jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile", 23 | "com.google.code.findbugs" % "jsr305" % "3.0.2" % "compile", 24 | "jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile", 25 | "org.junit.jupiter" % "junit-jupiter-api" % "5.10.2" % "test", 26 | "com.novocode" % "junit-interface" % "0.10" % "test", 27 | "org.mockito" % "mockito-core" % "3.12.4" % "test" 28 | ) 29 | ) 30 | -------------------------------------------------------------------------------- /docs/AcceptDeviceUserCodeRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # AcceptDeviceUserCodeRequest 4 | 5 | Contains information on an device verification 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**userCode** | **String** | | [optional] | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/AcceptOAuth2ConsentRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # AcceptOAuth2ConsentRequest 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**context** | **Object** | | [optional] | 11 | |**grantAccessTokenAudience** | **List<String>** | | [optional] | 12 | |**grantScope** | **List<String>** | | [optional] | 13 | |**handledAt** | **OffsetDateTime** | | [optional] | 14 | |**remember** | **Boolean** | Remember, if set to true, tells ORY Hydra to remember this consent authorization and reuse it if the same client asks the same user for the same, or a subset of, scope. | [optional] | 15 | |**rememberFor** | **Long** | RememberFor sets how long the consent authorization should be remembered for in seconds. If set to `0`, the authorization will be remembered indefinitely. | [optional] | 16 | |**session** | [**AcceptOAuth2ConsentRequestSession**](AcceptOAuth2ConsentRequestSession.md) | | [optional] | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /docs/AcceptOAuth2ConsentRequestSession.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # AcceptOAuth2ConsentRequestSession 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**accessToken** | **Object** | AccessToken sets session data for the access and refresh token, as well as any future tokens issued by the refresh grant. Keep in mind that this data will be available to anyone performing OAuth 2.0 Challenge Introspection. If only your services can perform OAuth 2.0 Challenge Introspection, this is usually fine. But if third parties can access that endpoint as well, sensitive data from the session might be exposed to them. Use with care! | [optional] | 11 | |**idToken** | **Object** | IDToken sets session data for the OpenID Connect ID token. Keep in mind that the session'id payloads are readable by anyone that has access to the ID Challenge. Use with care! | [optional] | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/AcceptOAuth2LoginRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # AcceptOAuth2LoginRequest 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**acr** | **String** | ACR sets the Authentication AuthorizationContext Class Reference value for this authentication session. You can use it to express that, for example, a user authenticated using two factor authentication. | [optional] | 11 | |**amr** | **List<String>** | | [optional] | 12 | |**context** | **Object** | | [optional] | 13 | |**extendSessionLifespan** | **Boolean** | Extend OAuth2 authentication session lifespan If set to `true`, the OAuth2 authentication cookie lifespan is extended. This is for example useful if you want the user to be able to use `prompt=none` continuously. This value can only be set to `true` if the user has an authentication, which is the case if the `skip` value is `true`. | [optional] | 14 | |**forceSubjectIdentifier** | **String** | ForceSubjectIdentifier forces the \"pairwise\" user ID of the end-user that authenticated. The \"pairwise\" user ID refers to the (Pairwise Identifier Algorithm)[http://openid.net/specs/openid-connect-core-1_0.html#PairwiseAlg] of the OpenID Connect specification. It allows you to set an obfuscated subject (\"user\") identifier that is unique to the client. Please note that this changes the user ID on endpoint /userinfo and sub claim of the ID Token. It does not change the sub claim in the OAuth 2.0 Introspection. Per default, ORY Hydra handles this value with its own algorithm. In case you want to set this yourself you can use this field. Please note that setting this field has no effect if `pairwise` is not configured in ORY Hydra or the OAuth 2.0 Client does not expect a pairwise identifier (set via `subject_type` key in the client's configuration). Please also be aware that ORY Hydra is unable to properly compute this value during authentication. This implies that you have to compute this value on every authentication process (probably depending on the client ID or some other unique value). If you fail to compute the proper value, then authentication processes which have id_token_hint set might fail. | [optional] | 15 | |**identityProviderSessionId** | **String** | IdentityProviderSessionID is the session ID of the end-user that authenticated. If specified, we will use this value to propagate the logout. | [optional] | 16 | |**remember** | **Boolean** | Remember, if set to true, tells ORY Hydra to remember this user by telling the user agent (browser) to store a cookie with authentication data. If the same user performs another OAuth 2.0 Authorization Request, he/she will not be asked to log in again. | [optional] | 17 | |**rememberFor** | **Long** | RememberFor sets how long the authentication should be remembered for in seconds. If set to `0`, the authorization will be remembered for the duration of the browser session (using a session cookie). | [optional] | 18 | |**subject** | **String** | Subject is the user ID of the end-user that authenticated. | | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /docs/CreateJsonWebKeySet.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CreateJsonWebKeySet 4 | 5 | Create JSON Web Key Set Request Body 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**alg** | **String** | JSON Web Key Algorithm The algorithm to be used for creating the key. Supports `RS256`, `ES256`, `ES512`, `HS512`, and `HS256`. | | 12 | |**kid** | **String** | JSON Web Key ID The Key ID of the key to be created. | | 13 | |**use** | **String** | JSON Web Key Use The \"use\" (public key use) parameter identifies the intended use of the public key. The \"use\" parameter is employed to indicate whether a public key is used for encrypting data or verifying the signature on data. Valid values are \"enc\" and \"sig\". | | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/CreateVerifiableCredentialRequestBody.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CreateVerifiableCredentialRequestBody 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**format** | **String** | | [optional] | 11 | |**proof** | [**VerifiableCredentialProof**](VerifiableCredentialProof.md) | | [optional] | 12 | |**types** | **List<String>** | | [optional] | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/CredentialSupportedDraft00.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CredentialSupportedDraft00 4 | 5 | Includes information about the supported verifiable credentials. 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**cryptographicBindingMethodsSupported** | **List<String>** | OpenID Connect Verifiable Credentials Cryptographic Binding Methods Supported Contains a list of cryptographic binding methods supported for signing the proof. | [optional] | 12 | |**cryptographicSuitesSupported** | **List<String>** | OpenID Connect Verifiable Credentials Cryptographic Suites Supported Contains a list of cryptographic suites methods supported for signing the proof. | [optional] | 13 | |**format** | **String** | OpenID Connect Verifiable Credentials Format Contains the format that is supported by this authorization server. | [optional] | 14 | |**types** | **List<String>** | OpenID Connect Verifiable Credentials Types Contains the types of verifiable credentials supported. | [optional] | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/DeviceAuthorization.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # DeviceAuthorization 4 | 5 | # Ory's OAuth 2.0 Device Authorization API 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**deviceCode** | **String** | The device verification code. | [optional] | 12 | |**expiresIn** | **Long** | The lifetime in seconds of the \"device_code\" and \"user_code\". | [optional] | 13 | |**interval** | **Long** | The minimum amount of time in seconds that the client SHOULD wait between polling requests to the token endpoint. If no value is provided, clients MUST use 5 as the default. | [optional] | 14 | |**userCode** | **String** | The end-user verification code. | [optional] | 15 | |**verificationUri** | **String** | The end-user verification URI on the authorization server. The URI should be short and easy to remember as end users will be asked to manually type it into their user agent. | [optional] | 16 | |**verificationUriComplete** | **String** | A verification URI that includes the \"user_code\" (or other information with the same function as the \"user_code\"), which is designed for non-textual transmission. | [optional] | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /docs/DeviceUserAuthRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # DeviceUserAuthRequest 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**challenge** | **String** | ID is the identifier (\"device challenge\") of the device grant request. It is used to identify the session. | | 11 | |**client** | [**OAuth2Client**](OAuth2Client.md) | | [optional] | 12 | |**handledAt** | **OffsetDateTime** | | [optional] | 13 | |**requestUrl** | **String** | RequestURL is the original Device Authorization URL requested. | [optional] | 14 | |**requestedAccessTokenAudience** | **List<String>** | | [optional] | 15 | |**requestedScope** | **List<String>** | | [optional] | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/ErrorOAuth2.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # ErrorOAuth2 4 | 5 | Error 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**error** | **String** | Error | [optional] | 12 | |**errorDebug** | **String** | Error Debug Information Only available in dev mode. | [optional] | 13 | |**errorDescription** | **String** | Error Description | [optional] | 14 | |**errorHint** | **String** | Error Hint Helps the user identify the error cause. | [optional] | 15 | |**statusCode** | **Long** | HTTP Status Code | [optional] | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/GenericError.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # GenericError 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**code** | **Long** | The status code | [optional] | 11 | |**debug** | **String** | Debug information This field is often not exposed to protect against leaking sensitive information. | [optional] | 12 | |**details** | **Object** | Further error details | [optional] | 13 | |**id** | **String** | The error ID Useful when trying to identify various errors in application logic. | [optional] | 14 | |**message** | **String** | Error message The error's message. | | 15 | |**reason** | **String** | A human-readable reason for the error | [optional] | 16 | |**request** | **String** | The request ID The request ID is often exposed internally in order to trace errors across service architectures. This is often a UUID. | [optional] | 17 | |**status** | **String** | The status description | [optional] | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /docs/GetVersion200Response.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # GetVersion200Response 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**version** | **String** | The version of Ory Hydra. | [optional] | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/HealthNotReadyStatus.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # HealthNotReadyStatus 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**errors** | **Map<String, String>** | Errors contains a list of errors that caused the not ready status. | [optional] | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/HealthStatus.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # HealthStatus 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**status** | **String** | Status always contains \"ok\". | [optional] | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/IntrospectedOAuth2Token.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # IntrospectedOAuth2Token 4 | 5 | Introspection contains an access token's session data as specified by [IETF RFC 7662](https://tools.ietf.org/html/rfc7662) 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**active** | **Boolean** | Active is a boolean indicator of whether or not the presented token is currently active. The specifics of a token's \"active\" state will vary depending on the implementation of the authorization server and the information it keeps about its tokens, but a \"true\" value return for the \"active\" property will generally indicate that a given token has been issued by this authorization server, has not been revoked by the resource owner, and is within its given time window of validity (e.g., after its issuance time and before its expiration time). | | 12 | |**aud** | **List<String>** | Audience contains a list of the token's intended audiences. | [optional] | 13 | |**clientId** | **String** | ID is aclient identifier for the OAuth 2.0 client that requested this token. | [optional] | 14 | |**exp** | **Long** | Expires at is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token will expire. | [optional] | 15 | |**ext** | **Map<String, Object>** | Extra is arbitrary data set by the session. | [optional] | 16 | |**iat** | **Long** | Issued at is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token was originally issued. | [optional] | 17 | |**iss** | **String** | IssuerURL is a string representing the issuer of this token | [optional] | 18 | |**nbf** | **Long** | NotBefore is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token is not to be used before. | [optional] | 19 | |**obfuscatedSubject** | **String** | ObfuscatedSubject is set when the subject identifier algorithm was set to \"pairwise\" during authorization. It is the `sub` value of the ID Token that was issued. | [optional] | 20 | |**scope** | **String** | Scope is a JSON string containing a space-separated list of scopes associated with this token. | [optional] | 21 | |**sub** | **String** | Subject of the token, as defined in JWT [RFC7519]. Usually a machine-readable identifier of the resource owner who authorized this token. | [optional] | 22 | |**tokenType** | **String** | TokenType is the introspected token's type, typically `Bearer`. | [optional] | 23 | |**tokenUse** | **String** | TokenUse is the introspected token's use, for example `access_token` or `refresh_token`. | [optional] | 24 | |**username** | **String** | Username is a human-readable identifier for the resource owner who authorized this token. | [optional] | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /docs/IsReady200Response.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # IsReady200Response 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**status** | **String** | Always \"ok\". | [optional] | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/IsReady503Response.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # IsReady503Response 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**errors** | **Map<String, String>** | Errors contains a list of errors that caused the not ready status. | [optional] | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/JsonPatch.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # JsonPatch 4 | 5 | A JSONPatch document as defined by RFC 6902 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**from** | **String** | This field is used together with operation \"move\" and uses JSON Pointer notation. Learn more [about JSON Pointers](https://datatracker.ietf.org/doc/html/rfc6901#section-5). | [optional] | 12 | |**op** | **String** | The operation to be performed. One of \"add\", \"remove\", \"replace\", \"move\", \"copy\", or \"test\". | | 13 | |**path** | **String** | The path to the target path. Uses JSON pointer notation. Learn more [about JSON Pointers](https://datatracker.ietf.org/doc/html/rfc6901#section-5). | | 14 | |**value** | **Object** | The value to be used within the operations. Learn more [about JSON Pointers](https://datatracker.ietf.org/doc/html/rfc6901#section-5). | [optional] | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/JsonWebKey.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # JsonWebKey 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**alg** | **String** | The \"alg\" (algorithm) parameter identifies the algorithm intended for use with the key. The values used should either be registered in the IANA \"JSON Web Signature and Encryption Algorithms\" registry established by [JWA] or be a value that contains a Collision- Resistant Name. | | 11 | |**crv** | **String** | | [optional] | 12 | |**d** | **String** | | [optional] | 13 | |**dp** | **String** | | [optional] | 14 | |**dq** | **String** | | [optional] | 15 | |**e** | **String** | | [optional] | 16 | |**k** | **String** | | [optional] | 17 | |**kid** | **String** | The \"kid\" (key ID) parameter is used to match a specific key. This is used, for instance, to choose among a set of keys within a JWK Set during key rollover. The structure of the \"kid\" value is unspecified. When \"kid\" values are used within a JWK Set, different keys within the JWK Set SHOULD use distinct \"kid\" values. (One example in which different keys might use the same \"kid\" value is if they have different \"kty\" (key type) values but are considered to be equivalent alternatives by the application using them.) The \"kid\" value is a case-sensitive string. | | 18 | |**kty** | **String** | The \"kty\" (key type) parameter identifies the cryptographic algorithm family used with the key, such as \"RSA\" or \"EC\". \"kty\" values should either be registered in the IANA \"JSON Web Key Types\" registry established by [JWA] or be a value that contains a Collision- Resistant Name. The \"kty\" value is a case-sensitive string. | | 19 | |**n** | **String** | | [optional] | 20 | |**p** | **String** | | [optional] | 21 | |**q** | **String** | | [optional] | 22 | |**qi** | **String** | | [optional] | 23 | |**use** | **String** | Use (\"public key use\") identifies the intended use of the public key. The \"use\" parameter is employed to indicate whether a public key is used for encrypting data or verifying the signature on data. Values are commonly \"sig\" (signature) or \"enc\" (encryption). | | 24 | |**x** | **String** | | [optional] | 25 | |**x5c** | **List<String>** | The \"x5c\" (X.509 certificate chain) parameter contains a chain of one or more PKIX certificates [RFC5280]. The certificate chain is represented as a JSON array of certificate value strings. Each string in the array is a base64-encoded (Section 4 of [RFC4648] -- not base64url-encoded) DER [ITU.X690.1994] PKIX certificate value. The PKIX certificate containing the key value MUST be the first certificate. | [optional] | 26 | |**y** | **String** | | [optional] | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /docs/JsonWebKeySet.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # JsonWebKeySet 4 | 5 | JSON Web Key Set 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**keys** | [**List<JsonWebKey>**](JsonWebKey.md) | List of JSON Web Keys The value of the \"keys\" parameter is an array of JSON Web Key (JWK) values. By default, the order of the JWK values within the array does not imply an order of preference among them, although applications of JWK Sets can choose to assign a meaning to the order for their purposes, if desired. | [optional] | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/OAuth2ClientTokenLifespans.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # OAuth2ClientTokenLifespans 4 | 5 | Lifespans of different token types issued for this OAuth 2.0 Client. 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**authorizationCodeGrantAccessTokenLifespan** | **String** | Specify a time duration in milliseconds, seconds, minutes, hours. | [optional] | 12 | |**authorizationCodeGrantIdTokenLifespan** | **String** | Specify a time duration in milliseconds, seconds, minutes, hours. | [optional] | 13 | |**authorizationCodeGrantRefreshTokenLifespan** | **String** | Specify a time duration in milliseconds, seconds, minutes, hours. | [optional] | 14 | |**clientCredentialsGrantAccessTokenLifespan** | **String** | Specify a time duration in milliseconds, seconds, minutes, hours. | [optional] | 15 | |**deviceAuthorizationGrantAccessTokenLifespan** | **String** | Specify a time duration in milliseconds, seconds, minutes, hours. | [optional] | 16 | |**deviceAuthorizationGrantIdTokenLifespan** | **String** | Specify a time duration in milliseconds, seconds, minutes, hours. | [optional] | 17 | |**deviceAuthorizationGrantRefreshTokenLifespan** | **String** | Specify a time duration in milliseconds, seconds, minutes, hours. | [optional] | 18 | |**implicitGrantAccessTokenLifespan** | **String** | Specify a time duration in milliseconds, seconds, minutes, hours. | [optional] | 19 | |**implicitGrantIdTokenLifespan** | **String** | Specify a time duration in milliseconds, seconds, minutes, hours. | [optional] | 20 | |**jwtBearerGrantAccessTokenLifespan** | **String** | Specify a time duration in milliseconds, seconds, minutes, hours. | [optional] | 21 | |**refreshTokenGrantAccessTokenLifespan** | **String** | Specify a time duration in milliseconds, seconds, minutes, hours. | [optional] | 22 | |**refreshTokenGrantIdTokenLifespan** | **String** | Specify a time duration in milliseconds, seconds, minutes, hours. | [optional] | 23 | |**refreshTokenGrantRefreshTokenLifespan** | **String** | Specify a time duration in milliseconds, seconds, minutes, hours. | [optional] | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/OAuth2ConsentRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # OAuth2ConsentRequest 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**acr** | **String** | ACR represents the Authentication AuthorizationContext Class Reference value for this authentication session. You can use it to express that, for example, a user authenticated using two factor authentication. | [optional] | 11 | |**amr** | **List<String>** | | [optional] | 12 | |**challenge** | **String** | ID is the identifier (\"authorization challenge\") of the consent authorization request. It is used to identify the session. | | 13 | |**client** | [**OAuth2Client**](OAuth2Client.md) | | [optional] | 14 | |**context** | **Object** | | [optional] | 15 | |**deviceChallengeId** | **String** | DeviceChallenge is the device challenge this consent challenge belongs to, if this flow was initiated by a device. | [optional] | 16 | |**loginChallenge** | **String** | LoginChallenge is the login challenge this consent challenge belongs to. It can be used to associate a login and consent request in the login & consent app. | [optional] | 17 | |**loginSessionId** | **String** | LoginSessionID is the login session ID. If the user-agent reuses a login session (via cookie / remember flag) this ID will remain the same. If the user-agent did not have an existing authentication session (e.g. remember is false) this will be a new random value. This value is used as the \"sid\" parameter in the ID Token and in OIDC Front-/Back- channel logout. It's value can generally be used to associate consecutive login requests by a certain user. | [optional] | 18 | |**oidcContext** | [**OAuth2ConsentRequestOpenIDConnectContext**](OAuth2ConsentRequestOpenIDConnectContext.md) | | [optional] | 19 | |**requestUrl** | **String** | RequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is typically not needed, but might come in handy if you want to deal with additional request parameters. | [optional] | 20 | |**requestedAccessTokenAudience** | **List<String>** | | [optional] | 21 | |**requestedScope** | **List<String>** | | [optional] | 22 | |**skip** | **Boolean** | Skip, if true, implies that the client has requested the same scopes from the same user previously. If true, you must not ask the user to grant the requested scopes. You must however either allow or deny the consent request using the usual API call. | [optional] | 23 | |**subject** | **String** | Subject is the user ID of the end-user that authenticated. Now, that end user needs to grant or deny the scope requested by the OAuth 2.0 client. | [optional] | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/OAuth2ConsentRequestOpenIDConnectContext.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # OAuth2ConsentRequestOpenIDConnectContext 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**acrValues** | **List<String>** | ACRValues is the Authentication AuthorizationContext Class Reference requested in the OAuth 2.0 Authorization request. It is a parameter defined by OpenID Connect and expresses which level of authentication (e.g. 2FA) is required. OpenID Connect defines it as follows: > Requested Authentication AuthorizationContext Class Reference values. Space-separated string that specifies the acr values that the Authorization Server is being requested to use for processing this Authentication Request, with the values appearing in order of preference. The Authentication AuthorizationContext Class satisfied by the authentication performed is returned as the acr Claim Value, as specified in Section 2. The acr Claim is requested as a Voluntary Claim by this parameter. | [optional] | 11 | |**display** | **String** | Display is a string value that specifies how the Authorization Server displays the authentication and consent user interface pages to the End-User. The defined values are: page: The Authorization Server SHOULD display the authentication and consent UI consistent with a full User Agent page view. If the display parameter is not specified, this is the default display mode. popup: The Authorization Server SHOULD display the authentication and consent UI consistent with a popup User Agent window. The popup User Agent window should be of an appropriate size for a login-focused dialog and should not obscure the entire window that it is popping up over. touch: The Authorization Server SHOULD display the authentication and consent UI consistent with a device that leverages a touch interface. wap: The Authorization Server SHOULD display the authentication and consent UI consistent with a \"feature phone\" type display. The Authorization Server MAY also attempt to detect the capabilities of the User Agent and present an appropriate display. | [optional] | 12 | |**idTokenHintClaims** | **Map<String, Object>** | IDTokenHintClaims are the claims of the ID Token previously issued by the Authorization Server being passed as a hint about the End-User's current or past authenticated session with the Client. | [optional] | 13 | |**loginHint** | **String** | LoginHint hints about the login identifier the End-User might use to log in (if necessary). This hint can be used by an RP if it first asks the End-User for their e-mail address (or other identifier) and then wants to pass that value as a hint to the discovered authorization service. This value MAY also be a phone number in the format specified for the phone_number Claim. The use of this parameter is optional. | [optional] | 14 | |**uiLocales** | **List<String>** | UILocales is the End-User'id preferred languages and scripts for the user interface, represented as a space-separated list of BCP47 [RFC5646] language tag values, ordered by preference. For instance, the value \"fr-CA fr en\" represents a preference for French as spoken in Canada, then French (without a region designation), followed by English (without a region designation). An error SHOULD NOT result if some or all of the requested locales are not supported by the OpenID Provider. | [optional] | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/OAuth2ConsentSession.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # OAuth2ConsentSession 4 | 5 | A completed OAuth 2.0 Consent Session. 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**consentRequest** | [**OAuth2ConsentRequest**](OAuth2ConsentRequest.md) | | [optional] | 12 | |**context** | **Object** | | [optional] | 13 | |**expiresAt** | [**OAuth2ConsentSessionExpiresAt**](OAuth2ConsentSessionExpiresAt.md) | | [optional] | 14 | |**grantAccessTokenAudience** | **List<String>** | | [optional] | 15 | |**grantScope** | **List<String>** | | [optional] | 16 | |**handledAt** | **OffsetDateTime** | | [optional] | 17 | |**remember** | **Boolean** | Remember Consent Remember, if set to true, tells ORY Hydra to remember this consent authorization and reuse it if the same client asks the same user for the same, or a subset of, scope. | [optional] | 18 | |**rememberFor** | **Long** | Remember Consent For RememberFor sets how long the consent authorization should be remembered for in seconds. If set to `0`, the authorization will be remembered indefinitely. | [optional] | 19 | |**session** | [**AcceptOAuth2ConsentRequestSession**](AcceptOAuth2ConsentRequestSession.md) | | [optional] | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /docs/OAuth2ConsentSessionExpiresAt.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # OAuth2ConsentSessionExpiresAt 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**accessToken** | **OffsetDateTime** | | [optional] | 11 | |**authorizeCode** | **OffsetDateTime** | | [optional] | 12 | |**idToken** | **OffsetDateTime** | | [optional] | 13 | |**parContext** | **OffsetDateTime** | | [optional] | 14 | |**refreshToken** | **OffsetDateTime** | | [optional] | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/OAuth2LoginRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # OAuth2LoginRequest 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**challenge** | **String** | ID is the identifier (\"login challenge\") of the login request. It is used to identify the session. | | 11 | |**client** | [**OAuth2Client**](OAuth2Client.md) | | | 12 | |**oidcContext** | [**OAuth2ConsentRequestOpenIDConnectContext**](OAuth2ConsentRequestOpenIDConnectContext.md) | | [optional] | 13 | |**requestUrl** | **String** | RequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is typically not needed, but might come in handy if you want to deal with additional request parameters. | | 14 | |**requestedAccessTokenAudience** | **List<String>** | | [optional] | 15 | |**requestedScope** | **List<String>** | | [optional] | 16 | |**sessionId** | **String** | SessionID is the login session ID. If the user-agent reuses a login session (via cookie / remember flag) this ID will remain the same. If the user-agent did not have an existing authentication session (e.g. remember is false) this will be a new random value. This value is used as the \"sid\" parameter in the ID Token and in OIDC Front-/Back- channel logout. It's value can generally be used to associate consecutive login requests by a certain user. | [optional] | 17 | |**skip** | **Boolean** | Skip, if true, implies that the client has requested the same scopes from the same user previously. If true, you can skip asking the user to grant the requested scopes, and simply forward the user to the redirect URL. This feature allows you to update / set session information. | | 18 | |**subject** | **String** | Subject is the user ID of the end-user that authenticated. Now, that end user needs to grant or deny the scope requested by the OAuth 2.0 client. If this value is set and `skip` is true, you MUST include this subject type when accepting the login request, or the request will fail. | | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /docs/OAuth2LogoutRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # OAuth2LogoutRequest 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**challenge** | **String** | Challenge is the identifier (\"logout challenge\") of the logout authentication request. It is used to identify the session. | [optional] | 11 | |**client** | [**OAuth2Client**](OAuth2Client.md) | | [optional] | 12 | |**expiresAt** | **OffsetDateTime** | | [optional] | 13 | |**requestUrl** | **String** | RequestURL is the original Logout URL requested. | [optional] | 14 | |**requestedAt** | **OffsetDateTime** | | [optional] | 15 | |**rpInitiated** | **Boolean** | RPInitiated is set to true if the request was initiated by a Relying Party (RP), also known as an OAuth 2.0 Client. | [optional] | 16 | |**sid** | **String** | SessionID is the login session ID that was requested to log out. | [optional] | 17 | |**subject** | **String** | Subject is the user for whom the logout was request. | [optional] | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /docs/OAuth2RedirectTo.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # OAuth2RedirectTo 4 | 5 | Contains a redirect URL used to complete a login, consent, or logout request. 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**redirectTo** | **String** | RedirectURL is the URL which you should redirect the user's browser to once the authentication process is completed. | | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/OAuth2TokenExchange.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # OAuth2TokenExchange 4 | 5 | OAuth2 Token Exchange Result 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**accessToken** | **String** | The access token issued by the authorization server. | [optional] | 12 | |**expiresIn** | **Long** | The lifetime in seconds of the access token. For example, the value \"3600\" denotes that the access token will expire in one hour from the time the response was generated. | [optional] | 13 | |**idToken** | **String** | To retrieve a refresh token request the id_token scope. | [optional] | 14 | |**refreshToken** | **String** | The refresh token, which can be used to obtain new access tokens. To retrieve it add the scope \"offline\" to your access token request. | [optional] | 15 | |**scope** | **String** | The scope of the access token | [optional] | 16 | |**tokenType** | **String** | The type of the token issued | [optional] | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /docs/Pagination.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # Pagination 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**pageSize** | **Long** | Items per page This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional] | 11 | |**pageToken** | **String** | Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional] | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/PaginationHeaders.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # PaginationHeaders 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**link** | **String** | The link header contains pagination links. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). in: header | [optional] | 11 | |**xTotalCount** | **String** | The total number of clients. in: header | [optional] | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/RFC6749ErrorJson.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # RFC6749ErrorJson 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**error** | **String** | | [optional] | 11 | |**errorDebug** | **String** | | [optional] | 12 | |**errorDescription** | **String** | | [optional] | 13 | |**errorHint** | **String** | | [optional] | 14 | |**statusCode** | **Long** | | [optional] | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/RejectOAuth2Request.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # RejectOAuth2Request 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**error** | **String** | The error should follow the OAuth2 error format (e.g. `invalid_request`, `login_required`). Defaults to `request_denied`. | [optional] | 11 | |**errorDebug** | **String** | Debug contains information to help resolve the problem as a developer. Usually not exposed to the public but only in the server logs. | [optional] | 12 | |**errorDescription** | **String** | Description of the error in a human readable format. | [optional] | 13 | |**errorHint** | **String** | Hint to help resolve the error. | [optional] | 14 | |**statusCode** | **Long** | Represents the HTTP status code of the error (e.g. 401 or 403) Defaults to 400 | [optional] | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/TokenPagination.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # TokenPagination 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**pageSize** | **Long** | Items per page This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional] | 11 | |**pageToken** | **String** | Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional] | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/TokenPaginationHeaders.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # TokenPaginationHeaders 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**link** | **String** | The link header contains pagination links. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). in: header | [optional] | 11 | |**xTotalCount** | **String** | The total number of clients. in: header | [optional] | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/TokenPaginationRequestParameters.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # TokenPaginationRequestParameters 4 | 5 | The `Link` HTTP header contains multiple links (`first`, `next`, `last`, `previous`) formatted as: `; rel=\"{page}\"` For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**pageSize** | **Long** | Items per Page This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional] | 12 | |**pageToken** | **String** | Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional] | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/TokenPaginationResponseHeaders.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # TokenPaginationResponseHeaders 4 | 5 | The `Link` HTTP header contains multiple links (`first`, `next`, `last`, `previous`) formatted as: `; rel=\"{page}\"` For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**link** | **String** | The Link HTTP Header The `Link` header contains a comma-delimited list of links to the following pages: first: The first page of results. next: The next page of results. prev: The previous page of results. last: The last page of results. Pages are omitted if they do not exist. For example, if there is no next page, the `next` link is omitted. Examples: </clients?page_size=5&page_token=0>; rel=\"first\",</clients?page_size=5&page_token=15>; rel=\"next\",</clients?page_size=5&page_token=5>; rel=\"prev\",</clients?page_size=5&page_token=20>; rel=\"last\" | [optional] | 12 | |**xTotalCount** | **Long** | The X-Total-Count HTTP Header The `X-Total-Count` header contains the total number of items in the collection. | [optional] | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/TrustOAuth2JwtGrantIssuer.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # TrustOAuth2JwtGrantIssuer 4 | 5 | Trust OAuth2 JWT Bearer Grant Type Issuer Request Body 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**allowAnySubject** | **Boolean** | The \"allow_any_subject\" indicates that the issuer is allowed to have any principal as the subject of the JWT. | [optional] | 12 | |**expiresAt** | **OffsetDateTime** | The \"expires_at\" indicates, when grant will expire, so we will reject assertion from \"issuer\" targeting \"subject\". | | 13 | |**issuer** | **String** | The \"issuer\" identifies the principal that issued the JWT assertion (same as \"iss\" claim in JWT). | | 14 | |**jwk** | [**JsonWebKey**](JsonWebKey.md) | | | 15 | |**scope** | **List<String>** | The \"scope\" contains list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) | | 16 | |**subject** | **String** | The \"subject\" identifies the principal that is the subject of the JWT. | [optional] | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /docs/TrustedOAuth2JwtGrantIssuer.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # TrustedOAuth2JwtGrantIssuer 4 | 5 | OAuth2 JWT Bearer Grant Type Issuer Trust Relationship 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**allowAnySubject** | **Boolean** | The \"allow_any_subject\" indicates that the issuer is allowed to have any principal as the subject of the JWT. | [optional] | 12 | |**createdAt** | **OffsetDateTime** | The \"created_at\" indicates, when grant was created. | [optional] | 13 | |**expiresAt** | **OffsetDateTime** | The \"expires_at\" indicates, when grant will expire, so we will reject assertion from \"issuer\" targeting \"subject\". | [optional] | 14 | |**id** | **String** | | [optional] | 15 | |**issuer** | **String** | The \"issuer\" identifies the principal that issued the JWT assertion (same as \"iss\" claim in JWT). | [optional] | 16 | |**publicKey** | [**TrustedOAuth2JwtGrantJsonWebKey**](TrustedOAuth2JwtGrantJsonWebKey.md) | | [optional] | 17 | |**scope** | **List<String>** | The \"scope\" contains list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) | [optional] | 18 | |**subject** | **String** | The \"subject\" identifies the principal that is the subject of the JWT. | [optional] | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /docs/TrustedOAuth2JwtGrantJsonWebKey.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # TrustedOAuth2JwtGrantJsonWebKey 4 | 5 | OAuth2 JWT Bearer Grant Type Issuer Trusted JSON Web Key 6 | 7 | ## Properties 8 | 9 | | Name | Type | Description | Notes | 10 | |------------ | ------------- | ------------- | -------------| 11 | |**kid** | **String** | The \"key_id\" is key unique identifier (same as kid header in jws/jwt). | [optional] | 12 | |**set** | **String** | The \"set\" is basically a name for a group(set) of keys. Will be the same as \"issuer\" in grant. | [optional] | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/VerifiableCredentialPrimingResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # VerifiableCredentialPrimingResponse 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**cNonce** | **String** | | [optional] | 11 | |**cNonceExpiresIn** | **Long** | | [optional] | 12 | |**error** | **String** | | [optional] | 13 | |**errorDebug** | **String** | | [optional] | 14 | |**errorDescription** | **String** | | [optional] | 15 | |**errorHint** | **String** | | [optional] | 16 | |**format** | **String** | | [optional] | 17 | |**statusCode** | **Long** | | [optional] | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /docs/VerifiableCredentialProof.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # VerifiableCredentialProof 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**jwt** | **String** | | [optional] | 11 | |**proofType** | **String** | | [optional] | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/VerifiableCredentialResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # VerifiableCredentialResponse 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**credentialDraft00** | **String** | | [optional] | 11 | |**format** | **String** | | [optional] | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/VerifyUserCodeRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # VerifyUserCodeRequest 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**challenge** | **String** | ID is the identifier (\"device challenge\") of the device request. It is used to identify the session. | [optional] | 11 | |**client** | [**OAuth2Client**](OAuth2Client.md) | | [optional] | 12 | |**deviceCodeRequestId** | **String** | | [optional] | 13 | |**handledAt** | **OffsetDateTime** | | [optional] | 14 | |**requestUrl** | **String** | RequestURL is the original Device Authorization URL requested. | [optional] | 15 | |**requestedAccessTokenAudience** | **List<String>** | | [optional] | 16 | |**requestedScope** | **List<String>** | | [optional] | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /docs/Version.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # Version 4 | 5 | 6 | ## Properties 7 | 8 | | Name | Type | Description | Notes | 9 | |------------ | ------------- | ------------- | -------------| 10 | |**version** | **String** | Version is the service's version. | [optional] | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/WellknownApi.md: -------------------------------------------------------------------------------- 1 | # WellknownApi 2 | 3 | All URIs are relative to *http://localhost* 4 | 5 | | Method | HTTP request | Description | 6 | |------------- | ------------- | -------------| 7 | | [**discoverJsonWebKeys**](WellknownApi.md#discoverJsonWebKeys) | **GET** /.well-known/jwks.json | Discover Well-Known JSON Web Keys | 8 | 9 | 10 | 11 | # **discoverJsonWebKeys** 12 | > JsonWebKeySet discoverJsonWebKeys() 13 | 14 | Discover Well-Known JSON Web Keys 15 | 16 | This endpoint returns JSON Web Keys required to verifying OpenID Connect ID Tokens and, if enabled, OAuth 2.0 JWT Access Tokens. This endpoint can be used with client libraries like [node-jwks-rsa](https://github.com/auth0/node-jwks-rsa) among others. Adding custom keys requires first creating a keyset via the createJsonWebKeySet operation, and then configuring the webfinger.jwks.broadcast_keys configuration value to include the keyset name. 17 | 18 | ### Example 19 | ```java 20 | // Import classes: 21 | import sh.ory.hydra.ApiClient; 22 | import sh.ory.hydra.ApiException; 23 | import sh.ory.hydra.Configuration; 24 | import sh.ory.hydra.models.*; 25 | import sh.ory.hydra.api.WellknownApi; 26 | 27 | public class Example { 28 | public static void main(String[] args) { 29 | ApiClient defaultClient = Configuration.getDefaultApiClient(); 30 | defaultClient.setBasePath("http://localhost"); 31 | 32 | WellknownApi apiInstance = new WellknownApi(defaultClient); 33 | try { 34 | JsonWebKeySet result = apiInstance.discoverJsonWebKeys(); 35 | System.out.println(result); 36 | } catch (ApiException e) { 37 | System.err.println("Exception when calling WellknownApi#discoverJsonWebKeys"); 38 | System.err.println("Status code: " + e.getCode()); 39 | System.err.println("Reason: " + e.getResponseBody()); 40 | System.err.println("Response headers: " + e.getResponseHeaders()); 41 | e.printStackTrace(); 42 | } 43 | } 44 | } 45 | ``` 46 | 47 | ### Parameters 48 | This endpoint does not need any parameter. 49 | 50 | ### Return type 51 | 52 | [**JsonWebKeySet**](JsonWebKeySet.md) 53 | 54 | ### Authorization 55 | 56 | No authorization required 57 | 58 | ### HTTP request headers 59 | 60 | - **Content-Type**: Not defined 61 | - **Accept**: application/json 62 | 63 | ### HTTP response details 64 | | Status code | Description | Response headers | 65 | |-------------|-------------|------------------| 66 | | **200** | jsonWebKeySet | - | 67 | | **0** | errorOAuth2 | - | 68 | 69 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by OpenAPI Generator (https://github.com/openAPITools/openapi-generator). 2 | # To include other gradle properties as part of the code generation process, please use the `gradleProperties` option. 3 | # 4 | # Gradle properties reference: https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties 5 | # For example, uncomment below to build for Android 6 | #target = android 7 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ory/hydra-client-java/26b02da1ce321d0e7cae5fe950c7d269df5ec0bc/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip 4 | networkTimeout=10000 5 | validateDistributionUrl=true 6 | zipStoreBase=GRADLE_USER_HOME 7 | zipStorePath=wrapper/dists 8 | -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem Copyright 2015 the original author or authors. 3 | @rem 4 | @rem Licensed under the Apache License, Version 2.0 (the "License"); 5 | @rem you may not use this file except in compliance with the License. 6 | @rem You may obtain a copy of the License at 7 | @rem 8 | @rem https://www.apache.org/licenses/LICENSE-2.0 9 | @rem 10 | @rem Unless required by applicable law or agreed to in writing, software 11 | @rem distributed under the License is distributed on an "AS IS" BASIS, 12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | @rem See the License for the specific language governing permissions and 14 | @rem limitations under the License. 15 | @rem 16 | 17 | @if "%DEBUG%"=="" @echo off 18 | @rem ########################################################################## 19 | @rem 20 | @rem Gradle startup script for Windows 21 | @rem 22 | @rem ########################################################################## 23 | 24 | @rem Set local scope for the variables with windows NT shell 25 | if "%OS%"=="Windows_NT" setlocal 26 | 27 | set DIRNAME=%~dp0 28 | if "%DIRNAME%"=="" set DIRNAME=. 29 | @rem This is normally unused 30 | set APP_BASE_NAME=%~n0 31 | set APP_HOME=%DIRNAME% 32 | 33 | @rem Resolve any "." and ".." in APP_HOME to make it shorter. 34 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi 35 | 36 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 37 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 38 | 39 | @rem Find java.exe 40 | if defined JAVA_HOME goto findJavaFromJavaHome 41 | 42 | set JAVA_EXE=java.exe 43 | %JAVA_EXE% -version >NUL 2>&1 44 | if %ERRORLEVEL% equ 0 goto execute 45 | 46 | echo. 1>&2 47 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 48 | echo. 1>&2 49 | echo Please set the JAVA_HOME variable in your environment to match the 1>&2 50 | echo location of your Java installation. 1>&2 51 | 52 | goto fail 53 | 54 | :findJavaFromJavaHome 55 | set JAVA_HOME=%JAVA_HOME:"=% 56 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 57 | 58 | if exist "%JAVA_EXE%" goto execute 59 | 60 | echo. 1>&2 61 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 62 | echo. 1>&2 63 | echo Please set the JAVA_HOME variable in your environment to match the 1>&2 64 | echo location of your Java installation. 1>&2 65 | 66 | goto fail 67 | 68 | :execute 69 | @rem Setup the command line 70 | 71 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 72 | 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if %ERRORLEVEL% equ 0 goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | set EXIT_CODE=%ERRORLEVEL% 85 | if %EXIT_CODE% equ 0 set EXIT_CODE=1 86 | if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% 87 | exit /b %EXIT_CODE% 88 | 89 | :mainEnd 90 | if "%OS%"=="Windows_NT" endlocal 91 | 92 | :omega 93 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = "hydra-client" -------------------------------------------------------------------------------- /src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/main/java/sh/ory/hydra/ApiCallback.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra; 15 | 16 | import java.io.IOException; 17 | 18 | import java.util.Map; 19 | import java.util.List; 20 | 21 | /** 22 | * Callback for asynchronous API call. 23 | * 24 | * @param The return type 25 | */ 26 | public interface ApiCallback { 27 | /** 28 | * This is called when the API call fails. 29 | * 30 | * @param e The exception causing the failure 31 | * @param statusCode Status code of the response if available, otherwise it would be 0 32 | * @param responseHeaders Headers of the response if available, otherwise it would be null 33 | */ 34 | void onFailure(ApiException e, int statusCode, Map> responseHeaders); 35 | 36 | /** 37 | * This is called when the API call succeeded. 38 | * 39 | * @param result The result deserialized from response 40 | * @param statusCode Status code of the response 41 | * @param responseHeaders Headers of the response 42 | */ 43 | void onSuccess(T result, int statusCode, Map> responseHeaders); 44 | 45 | /** 46 | * This is called when the API upload processing. 47 | * 48 | * @param bytesWritten bytes Written 49 | * @param contentLength content length of request body 50 | * @param done write end 51 | */ 52 | void onUploadProgress(long bytesWritten, long contentLength, boolean done); 53 | 54 | /** 55 | * This is called when the API download processing. 56 | * 57 | * @param bytesRead bytes Read 58 | * @param contentLength content length of the response 59 | * @param done Read end 60 | */ 61 | void onDownloadProgress(long bytesRead, long contentLength, boolean done); 62 | } 63 | -------------------------------------------------------------------------------- /src/main/java/sh/ory/hydra/ApiResponse.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra; 15 | 16 | import java.util.List; 17 | import java.util.Map; 18 | 19 | /** 20 | * API response returned by API call. 21 | */ 22 | public class ApiResponse { 23 | final private int statusCode; 24 | final private Map> headers; 25 | final private T data; 26 | 27 | /** 28 | *

Constructor for ApiResponse.

29 | * 30 | * @param statusCode The status code of HTTP response 31 | * @param headers The headers of HTTP response 32 | */ 33 | public ApiResponse(int statusCode, Map> headers) { 34 | this(statusCode, headers, null); 35 | } 36 | 37 | /** 38 | *

Constructor for ApiResponse.

39 | * 40 | * @param statusCode The status code of HTTP response 41 | * @param headers The headers of HTTP response 42 | * @param data The object deserialized from response bod 43 | */ 44 | public ApiResponse(int statusCode, Map> headers, T data) { 45 | this.statusCode = statusCode; 46 | this.headers = headers; 47 | this.data = data; 48 | } 49 | 50 | /** 51 | *

Get the status code.

52 | * 53 | * @return the status code 54 | */ 55 | public int getStatusCode() { 56 | return statusCode; 57 | } 58 | 59 | /** 60 | *

Get the headers.

61 | * 62 | * @return a {@link java.util.Map} of headers 63 | */ 64 | public Map> getHeaders() { 65 | return headers; 66 | } 67 | 68 | /** 69 | *

Get the data.

70 | * 71 | * @return the data 72 | */ 73 | public T getData() { 74 | return data; 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /src/main/java/sh/ory/hydra/Configuration.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra; 15 | 16 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-09T15:15:46.432729038Z[Etc/UTC]", comments = "Generator version: 7.7.0") 17 | public class Configuration { 18 | public static final String VERSION = "v2.4.0-alpha.1"; 19 | 20 | private static ApiClient defaultApiClient = new ApiClient(); 21 | 22 | /** 23 | * Get the default API client, which would be used when creating API 24 | * instances without providing an API client. 25 | * 26 | * @return Default API client 27 | */ 28 | public static ApiClient getDefaultApiClient() { 29 | return defaultApiClient; 30 | } 31 | 32 | /** 33 | * Set the default API client, which would be used when creating API 34 | * instances without providing an API client. 35 | * 36 | * @param apiClient API client 37 | */ 38 | public static void setDefaultApiClient(ApiClient apiClient) { 39 | defaultApiClient = apiClient; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/sh/ory/hydra/GzipRequestInterceptor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra; 15 | 16 | import okhttp3.*; 17 | import okio.Buffer; 18 | import okio.BufferedSink; 19 | import okio.GzipSink; 20 | import okio.Okio; 21 | 22 | import java.io.IOException; 23 | 24 | /** 25 | * Encodes request bodies using gzip. 26 | * 27 | * Taken from https://github.com/square/okhttp/issues/350 28 | */ 29 | class GzipRequestInterceptor implements Interceptor { 30 | @Override 31 | public Response intercept(Chain chain) throws IOException { 32 | Request originalRequest = chain.request(); 33 | if (originalRequest.body() == null || originalRequest.header("Content-Encoding") != null) { 34 | return chain.proceed(originalRequest); 35 | } 36 | 37 | Request compressedRequest = originalRequest.newBuilder() 38 | .header("Content-Encoding", "gzip") 39 | .method(originalRequest.method(), forceContentLength(gzip(originalRequest.body()))) 40 | .build(); 41 | return chain.proceed(compressedRequest); 42 | } 43 | 44 | private RequestBody forceContentLength(final RequestBody requestBody) throws IOException { 45 | final Buffer buffer = new Buffer(); 46 | requestBody.writeTo(buffer); 47 | return new RequestBody() { 48 | @Override 49 | public MediaType contentType() { 50 | return requestBody.contentType(); 51 | } 52 | 53 | @Override 54 | public long contentLength() { 55 | return buffer.size(); 56 | } 57 | 58 | @Override 59 | public void writeTo(BufferedSink sink) throws IOException { 60 | sink.write(buffer.snapshot()); 61 | } 62 | }; 63 | } 64 | 65 | private RequestBody gzip(final RequestBody body) { 66 | return new RequestBody() { 67 | @Override 68 | public MediaType contentType() { 69 | return body.contentType(); 70 | } 71 | 72 | @Override 73 | public long contentLength() { 74 | return -1; // We don't know the compressed length in advance! 75 | } 76 | 77 | @Override 78 | public void writeTo(BufferedSink sink) throws IOException { 79 | BufferedSink gzipSink = Okio.buffer(new GzipSink(sink)); 80 | body.writeTo(gzipSink); 81 | gzipSink.close(); 82 | } 83 | }; 84 | } 85 | } 86 | -------------------------------------------------------------------------------- /src/main/java/sh/ory/hydra/Pair.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra; 15 | 16 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-09T15:15:46.432729038Z[Etc/UTC]", comments = "Generator version: 7.7.0") 17 | public class Pair { 18 | private String name = ""; 19 | private String value = ""; 20 | 21 | public Pair (String name, String value) { 22 | setName(name); 23 | setValue(value); 24 | } 25 | 26 | private void setName(String name) { 27 | if (!isValidString(name)) { 28 | return; 29 | } 30 | 31 | this.name = name; 32 | } 33 | 34 | private void setValue(String value) { 35 | if (!isValidString(value)) { 36 | return; 37 | } 38 | 39 | this.value = value; 40 | } 41 | 42 | public String getName() { 43 | return this.name; 44 | } 45 | 46 | public String getValue() { 47 | return this.value; 48 | } 49 | 50 | private boolean isValidString(String arg) { 51 | if (arg == null) { 52 | return false; 53 | } 54 | 55 | return true; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/main/java/sh/ory/hydra/ProgressRequestBody.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra; 15 | 16 | import okhttp3.MediaType; 17 | import okhttp3.RequestBody; 18 | 19 | import java.io.IOException; 20 | 21 | import okio.Buffer; 22 | import okio.BufferedSink; 23 | import okio.ForwardingSink; 24 | import okio.Okio; 25 | import okio.Sink; 26 | 27 | public class ProgressRequestBody extends RequestBody { 28 | 29 | private final RequestBody requestBody; 30 | 31 | private final ApiCallback callback; 32 | 33 | public ProgressRequestBody(RequestBody requestBody, ApiCallback callback) { 34 | this.requestBody = requestBody; 35 | this.callback = callback; 36 | } 37 | 38 | @Override 39 | public MediaType contentType() { 40 | return requestBody.contentType(); 41 | } 42 | 43 | @Override 44 | public long contentLength() throws IOException { 45 | return requestBody.contentLength(); 46 | } 47 | 48 | @Override 49 | public void writeTo(BufferedSink sink) throws IOException { 50 | BufferedSink bufferedSink = Okio.buffer(sink(sink)); 51 | requestBody.writeTo(bufferedSink); 52 | bufferedSink.flush(); 53 | } 54 | 55 | private Sink sink(Sink sink) { 56 | return new ForwardingSink(sink) { 57 | 58 | long bytesWritten = 0L; 59 | long contentLength = 0L; 60 | 61 | @Override 62 | public void write(Buffer source, long byteCount) throws IOException { 63 | super.write(source, byteCount); 64 | if (contentLength == 0) { 65 | contentLength = contentLength(); 66 | } 67 | 68 | bytesWritten += byteCount; 69 | callback.onUploadProgress(bytesWritten, contentLength, bytesWritten == contentLength); 70 | } 71 | }; 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /src/main/java/sh/ory/hydra/ProgressResponseBody.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra; 15 | 16 | import okhttp3.MediaType; 17 | import okhttp3.ResponseBody; 18 | 19 | import java.io.IOException; 20 | 21 | import okio.Buffer; 22 | import okio.BufferedSource; 23 | import okio.ForwardingSource; 24 | import okio.Okio; 25 | import okio.Source; 26 | 27 | public class ProgressResponseBody extends ResponseBody { 28 | 29 | private final ResponseBody responseBody; 30 | private final ApiCallback callback; 31 | private BufferedSource bufferedSource; 32 | 33 | public ProgressResponseBody(ResponseBody responseBody, ApiCallback callback) { 34 | this.responseBody = responseBody; 35 | this.callback = callback; 36 | } 37 | 38 | @Override 39 | public MediaType contentType() { 40 | return responseBody.contentType(); 41 | } 42 | 43 | @Override 44 | public long contentLength() { 45 | return responseBody.contentLength(); 46 | } 47 | 48 | @Override 49 | public BufferedSource source() { 50 | if (bufferedSource == null) { 51 | bufferedSource = Okio.buffer(source(responseBody.source())); 52 | } 53 | return bufferedSource; 54 | } 55 | 56 | private Source source(Source source) { 57 | return new ForwardingSource(source) { 58 | long totalBytesRead = 0L; 59 | 60 | @Override 61 | public long read(Buffer sink, long byteCount) throws IOException { 62 | long bytesRead = super.read(sink, byteCount); 63 | // read() returns the number of bytes read, or -1 if this source is exhausted. 64 | totalBytesRead += bytesRead != -1 ? bytesRead : 0; 65 | callback.onDownloadProgress(totalBytesRead, responseBody.contentLength(), bytesRead == -1); 66 | return bytesRead; 67 | } 68 | }; 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /src/main/java/sh/ory/hydra/ServerConfiguration.java: -------------------------------------------------------------------------------- 1 | package sh.ory.hydra; 2 | 3 | import java.util.Map; 4 | 5 | /** 6 | * Representing a Server configuration. 7 | */ 8 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-09T15:15:46.432729038Z[Etc/UTC]", comments = "Generator version: 7.7.0") 9 | public class ServerConfiguration { 10 | public String URL; 11 | public String description; 12 | public Map variables; 13 | 14 | /** 15 | * @param URL A URL to the target host. 16 | * @param description A description of the host designated by the URL. 17 | * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. 18 | */ 19 | public ServerConfiguration(String URL, String description, Map variables) { 20 | this.URL = URL; 21 | this.description = description; 22 | this.variables = variables; 23 | } 24 | 25 | /** 26 | * Format URL template using given variables. 27 | * 28 | * @param variables A map between a variable name and its value. 29 | * @return Formatted URL. 30 | */ 31 | public String URL(Map variables) { 32 | String url = this.URL; 33 | 34 | // go through variables and replace placeholders 35 | for (Map.Entry variable: this.variables.entrySet()) { 36 | String name = variable.getKey(); 37 | ServerVariable serverVariable = variable.getValue(); 38 | String value = serverVariable.defaultValue; 39 | 40 | if (variables != null && variables.containsKey(name)) { 41 | value = variables.get(name); 42 | if (serverVariable.enumValues.size() > 0 && !serverVariable.enumValues.contains(value)) { 43 | throw new IllegalArgumentException("The variable " + name + " in the server URL has invalid value " + value + "."); 44 | } 45 | } 46 | url = url.replace("{" + name + "}", value); 47 | } 48 | return url; 49 | } 50 | 51 | /** 52 | * Format URL template using default server variables. 53 | * 54 | * @return Formatted URL. 55 | */ 56 | public String URL() { 57 | return URL(null); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/main/java/sh/ory/hydra/ServerVariable.java: -------------------------------------------------------------------------------- 1 | package sh.ory.hydra; 2 | 3 | import java.util.HashSet; 4 | 5 | /** 6 | * Representing a Server Variable for server URL template substitution. 7 | */ 8 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-09T15:15:46.432729038Z[Etc/UTC]", comments = "Generator version: 7.7.0") 9 | public class ServerVariable { 10 | public String description; 11 | public String defaultValue; 12 | public HashSet enumValues = null; 13 | 14 | /** 15 | * @param description A description for the server variable. 16 | * @param defaultValue The default value to use for substitution. 17 | * @param enumValues An enumeration of string values to be used if the substitution options are from a limited set. 18 | */ 19 | public ServerVariable(String description, String defaultValue, HashSet enumValues) { 20 | this.description = description; 21 | this.defaultValue = defaultValue; 22 | this.enumValues = enumValues; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/main/java/sh/ory/hydra/StringUtil.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra; 15 | 16 | import java.util.Collection; 17 | import java.util.Iterator; 18 | 19 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-09T15:15:46.432729038Z[Etc/UTC]", comments = "Generator version: 7.7.0") 20 | public class StringUtil { 21 | /** 22 | * Check if the given array contains the given value (with case-insensitive comparison). 23 | * 24 | * @param array The array 25 | * @param value The value to search 26 | * @return true if the array contains the value 27 | */ 28 | public static boolean containsIgnoreCase(String[] array, String value) { 29 | for (String str : array) { 30 | if (value == null && str == null) { 31 | return true; 32 | } 33 | if (value != null && value.equalsIgnoreCase(str)) { 34 | return true; 35 | } 36 | } 37 | return false; 38 | } 39 | 40 | /** 41 | * Join an array of strings with the given separator. 42 | *

43 | * Note: This might be replaced by utility method from commons-lang or guava someday 44 | * if one of those libraries is added as dependency. 45 | *

46 | * 47 | * @param array The array of strings 48 | * @param separator The separator 49 | * @return the resulting string 50 | */ 51 | public static String join(String[] array, String separator) { 52 | int len = array.length; 53 | if (len == 0) { 54 | return ""; 55 | } 56 | 57 | StringBuilder out = new StringBuilder(); 58 | out.append(array[0]); 59 | for (int i = 1; i < len; i++) { 60 | out.append(separator).append(array[i]); 61 | } 62 | return out.toString(); 63 | } 64 | 65 | /** 66 | * Join a list of strings with the given separator. 67 | * 68 | * @param list The list of strings 69 | * @param separator The separator 70 | * @return the resulting string 71 | */ 72 | public static String join(Collection list, String separator) { 73 | Iterator iterator = list.iterator(); 74 | StringBuilder out = new StringBuilder(); 75 | if (iterator.hasNext()) { 76 | out.append(iterator.next()); 77 | } 78 | while (iterator.hasNext()) { 79 | out.append(separator).append(iterator.next()); 80 | } 81 | return out.toString(); 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /src/main/java/sh/ory/hydra/auth/ApiKeyAuth.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.auth; 15 | 16 | import sh.ory.hydra.ApiException; 17 | import sh.ory.hydra.Pair; 18 | 19 | import java.net.URI; 20 | import java.util.Map; 21 | import java.util.List; 22 | 23 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-09T15:15:46.432729038Z[Etc/UTC]", comments = "Generator version: 7.7.0") 24 | public class ApiKeyAuth implements Authentication { 25 | private final String location; 26 | private final String paramName; 27 | 28 | private String apiKey; 29 | private String apiKeyPrefix; 30 | 31 | public ApiKeyAuth(String location, String paramName) { 32 | this.location = location; 33 | this.paramName = paramName; 34 | } 35 | 36 | public String getLocation() { 37 | return location; 38 | } 39 | 40 | public String getParamName() { 41 | return paramName; 42 | } 43 | 44 | public String getApiKey() { 45 | return apiKey; 46 | } 47 | 48 | public void setApiKey(String apiKey) { 49 | this.apiKey = apiKey; 50 | } 51 | 52 | public String getApiKeyPrefix() { 53 | return apiKeyPrefix; 54 | } 55 | 56 | public void setApiKeyPrefix(String apiKeyPrefix) { 57 | this.apiKeyPrefix = apiKeyPrefix; 58 | } 59 | 60 | @Override 61 | public void applyToParams(List queryParams, Map headerParams, Map cookieParams, 62 | String payload, String method, URI uri) throws ApiException { 63 | if (apiKey == null) { 64 | return; 65 | } 66 | String value; 67 | if (apiKeyPrefix != null) { 68 | value = apiKeyPrefix + " " + apiKey; 69 | } else { 70 | value = apiKey; 71 | } 72 | if ("query".equals(location)) { 73 | queryParams.add(new Pair(paramName, value)); 74 | } else if ("header".equals(location)) { 75 | headerParams.put(paramName, value); 76 | } else if ("cookie".equals(location)) { 77 | cookieParams.put(paramName, value); 78 | } 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /src/main/java/sh/ory/hydra/auth/Authentication.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.auth; 15 | 16 | import sh.ory.hydra.Pair; 17 | import sh.ory.hydra.ApiException; 18 | 19 | import java.net.URI; 20 | import java.util.Map; 21 | import java.util.List; 22 | 23 | public interface Authentication { 24 | /** 25 | * Apply authentication settings to header and query params. 26 | * 27 | * @param queryParams List of query parameters 28 | * @param headerParams Map of header parameters 29 | * @param cookieParams Map of cookie parameters 30 | * @param payload HTTP request body 31 | * @param method HTTP method 32 | * @param uri URI 33 | * @throws ApiException if failed to update the parameters 34 | */ 35 | void applyToParams(List queryParams, Map headerParams, Map cookieParams, String payload, String method, URI uri) throws ApiException; 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/sh/ory/hydra/auth/HttpBasicAuth.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.auth; 15 | 16 | import sh.ory.hydra.Pair; 17 | import sh.ory.hydra.ApiException; 18 | 19 | import okhttp3.Credentials; 20 | 21 | import java.net.URI; 22 | import java.util.Map; 23 | import java.util.List; 24 | 25 | public class HttpBasicAuth implements Authentication { 26 | private String username; 27 | private String password; 28 | 29 | public String getUsername() { 30 | return username; 31 | } 32 | 33 | public void setUsername(String username) { 34 | this.username = username; 35 | } 36 | 37 | public String getPassword() { 38 | return password; 39 | } 40 | 41 | public void setPassword(String password) { 42 | this.password = password; 43 | } 44 | 45 | @Override 46 | public void applyToParams(List queryParams, Map headerParams, Map cookieParams, 47 | String payload, String method, URI uri) throws ApiException { 48 | if (username == null && password == null) { 49 | return; 50 | } 51 | headerParams.put("Authorization", Credentials.basic( 52 | username == null ? "" : username, 53 | password == null ? "" : password)); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/main/java/sh/ory/hydra/auth/HttpBearerAuth.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.auth; 15 | 16 | import sh.ory.hydra.ApiException; 17 | import sh.ory.hydra.Pair; 18 | 19 | import java.net.URI; 20 | import java.util.List; 21 | import java.util.Map; 22 | import java.util.Optional; 23 | import java.util.function.Supplier; 24 | 25 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-09T15:15:46.432729038Z[Etc/UTC]", comments = "Generator version: 7.7.0") 26 | public class HttpBearerAuth implements Authentication { 27 | private final String scheme; 28 | private Supplier tokenSupplier; 29 | 30 | public HttpBearerAuth(String scheme) { 31 | this.scheme = scheme; 32 | } 33 | 34 | /** 35 | * Gets the token, which together with the scheme, will be sent as the value of the Authorization header. 36 | * 37 | * @return The bearer token 38 | */ 39 | public String getBearerToken() { 40 | return tokenSupplier.get(); 41 | } 42 | 43 | /** 44 | * Sets the token, which together with the scheme, will be sent as the value of the Authorization header. 45 | * 46 | * @param bearerToken The bearer token to send in the Authorization header 47 | */ 48 | public void setBearerToken(String bearerToken) { 49 | this.tokenSupplier = () -> bearerToken; 50 | } 51 | 52 | /** 53 | * Sets the supplier of tokens, which together with the scheme, will be sent as the value of the Authorization header. 54 | * 55 | * @param tokenSupplier The supplier of bearer tokens to send in the Authorization header 56 | */ 57 | public void setBearerToken(Supplier tokenSupplier) { 58 | this.tokenSupplier = tokenSupplier; 59 | } 60 | 61 | @Override 62 | public void applyToParams(List queryParams, Map headerParams, Map cookieParams, 63 | String payload, String method, URI uri) throws ApiException { 64 | String bearerToken = Optional.ofNullable(tokenSupplier).map(Supplier::get).orElse(null); 65 | if (bearerToken == null) { 66 | return; 67 | } 68 | 69 | headerParams.put("Authorization", (scheme != null ? upperCaseBearer(scheme) + " " : "") + bearerToken); 70 | } 71 | 72 | private static String upperCaseBearer(String scheme) { 73 | return ("bearer".equalsIgnoreCase(scheme)) ? "Bearer" : scheme; 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /src/main/java/sh/ory/hydra/auth/OAuth.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.auth; 15 | 16 | import sh.ory.hydra.Pair; 17 | import sh.ory.hydra.ApiException; 18 | 19 | import java.net.URI; 20 | import java.util.Map; 21 | import java.util.List; 22 | 23 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-09T15:15:46.432729038Z[Etc/UTC]", comments = "Generator version: 7.7.0") 24 | public class OAuth implements Authentication { 25 | private String accessToken; 26 | 27 | public String getAccessToken() { 28 | return accessToken; 29 | } 30 | 31 | public void setAccessToken(String accessToken) { 32 | this.accessToken = accessToken; 33 | } 34 | 35 | @Override 36 | public void applyToParams(List queryParams, Map headerParams, Map cookieParams, 37 | String payload, String method, URI uri) throws ApiException { 38 | if (accessToken != null) { 39 | headerParams.put("Authorization", "Bearer " + accessToken); 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/sh/ory/hydra/auth/OAuthFlow.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.auth; 15 | 16 | /** 17 | * OAuth flows that are supported by this client 18 | */ 19 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-09T15:15:46.432729038Z[Etc/UTC]", comments = "Generator version: 7.7.0") 20 | public enum OAuthFlow { 21 | ACCESS_CODE, //called authorizationCode in OpenAPI 3.0 22 | IMPLICIT, 23 | PASSWORD, 24 | APPLICATION //called clientCredentials in OpenAPI 3.0 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/sh/ory/hydra/auth/OAuthOkHttpClient.java: -------------------------------------------------------------------------------- 1 | package sh.ory.hydra.auth; 2 | 3 | import okhttp3.OkHttpClient; 4 | import okhttp3.MediaType; 5 | import okhttp3.Request; 6 | import okhttp3.RequestBody; 7 | import okhttp3.Response; 8 | 9 | import org.apache.oltu.oauth2.client.HttpClient; 10 | import org.apache.oltu.oauth2.client.request.OAuthClientRequest; 11 | import org.apache.oltu.oauth2.client.response.OAuthClientResponse; 12 | import org.apache.oltu.oauth2.client.response.OAuthClientResponseFactory; 13 | import org.apache.oltu.oauth2.common.exception.OAuthProblemException; 14 | import org.apache.oltu.oauth2.common.exception.OAuthSystemException; 15 | 16 | import java.io.IOException; 17 | import java.util.Map; 18 | import java.util.Map.Entry; 19 | 20 | public class OAuthOkHttpClient implements HttpClient { 21 | private OkHttpClient client; 22 | 23 | public OAuthOkHttpClient() { 24 | this.client = new OkHttpClient(); 25 | } 26 | 27 | public OAuthOkHttpClient(OkHttpClient client) { 28 | this.client = client; 29 | } 30 | 31 | @Override 32 | public T execute(OAuthClientRequest request, Map headers, 33 | String requestMethod, Class responseClass) 34 | throws OAuthSystemException, OAuthProblemException { 35 | 36 | MediaType mediaType = MediaType.parse("application/json"); 37 | Request.Builder requestBuilder = new Request.Builder().url(request.getLocationUri()); 38 | 39 | if(headers != null) { 40 | for (Entry entry : headers.entrySet()) { 41 | if (entry.getKey().equalsIgnoreCase("Content-Type")) { 42 | mediaType = MediaType.parse(entry.getValue()); 43 | } else { 44 | requestBuilder.addHeader(entry.getKey(), entry.getValue()); 45 | } 46 | } 47 | } 48 | 49 | RequestBody body = request.getBody() != null ? RequestBody.create(request.getBody(), mediaType) : null; 50 | requestBuilder.method(requestMethod, body); 51 | 52 | try { 53 | Response response = client.newCall(requestBuilder.build()).execute(); 54 | return OAuthClientResponseFactory.createCustomResponse( 55 | response.body().string(), 56 | response.body().contentType().toString(), 57 | response.code(), 58 | response.headers().toMultimap(), 59 | responseClass); 60 | } catch (IOException e) { 61 | throw new OAuthSystemException(e); 62 | } 63 | } 64 | 65 | @Override 66 | public void shutdown() { 67 | // Nothing to do here 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/api/MetadataApiTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.api; 15 | 16 | import sh.ory.hydra.ApiException; 17 | import sh.ory.hydra.model.GenericError; 18 | import sh.ory.hydra.model.GetVersion200Response; 19 | import sh.ory.hydra.model.HealthStatus; 20 | import sh.ory.hydra.model.IsReady200Response; 21 | import sh.ory.hydra.model.IsReady503Response; 22 | import org.junit.jupiter.api.Disabled; 23 | import org.junit.jupiter.api.Test; 24 | 25 | import java.util.ArrayList; 26 | import java.util.HashMap; 27 | import java.util.List; 28 | import java.util.Map; 29 | 30 | /** 31 | * API tests for MetadataApi 32 | */ 33 | @Disabled 34 | public class MetadataApiTest { 35 | 36 | private final MetadataApi api = new MetadataApi(); 37 | 38 | /** 39 | * Return Running Software Version. 40 | * 41 | * This endpoint returns the version of Ory Hydra. If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` header to be set. Be aware that if you are running multiple nodes of this service, the version will never refer to the cluster state, only to a single instance. 42 | * 43 | * @throws ApiException if the Api call fails 44 | */ 45 | @Test 46 | public void getVersionTest() throws ApiException { 47 | GetVersion200Response response = api.getVersion(); 48 | // TODO: test validations 49 | } 50 | 51 | /** 52 | * Check HTTP Server Status 53 | * 54 | * This endpoint returns a HTTP 200 status code when Ory Hydra is accepting incoming HTTP requests. This status does currently not include checks whether the database connection is working. If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` header to be set. Be aware that if you are running multiple nodes of this service, the health status will never refer to the cluster state, only to a single instance. 55 | * 56 | * @throws ApiException if the Api call fails 57 | */ 58 | @Test 59 | public void isAliveTest() throws ApiException { 60 | HealthStatus response = api.isAlive(); 61 | // TODO: test validations 62 | } 63 | 64 | /** 65 | * Check HTTP Server and Database Status 66 | * 67 | * This endpoint returns a HTTP 200 status code when Ory Hydra is up running and the environment dependencies (e.g. the database) are responsive as well. If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` header to be set. Be aware that if you are running multiple nodes of Ory Hydra, the health status will never refer to the cluster state, only to a single instance. 68 | * 69 | * @throws ApiException if the Api call fails 70 | */ 71 | @Test 72 | public void isReadyTest() throws ApiException { 73 | IsReady200Response response = api.isReady(); 74 | // TODO: test validations 75 | } 76 | 77 | } 78 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/api/WellknownApiTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.api; 15 | 16 | import sh.ory.hydra.ApiException; 17 | import sh.ory.hydra.model.ErrorOAuth2; 18 | import sh.ory.hydra.model.JsonWebKeySet; 19 | import org.junit.jupiter.api.Disabled; 20 | import org.junit.jupiter.api.Test; 21 | 22 | import java.util.ArrayList; 23 | import java.util.HashMap; 24 | import java.util.List; 25 | import java.util.Map; 26 | 27 | /** 28 | * API tests for WellknownApi 29 | */ 30 | @Disabled 31 | public class WellknownApiTest { 32 | 33 | private final WellknownApi api = new WellknownApi(); 34 | 35 | /** 36 | * Discover Well-Known JSON Web Keys 37 | * 38 | * This endpoint returns JSON Web Keys required to verifying OpenID Connect ID Tokens and, if enabled, OAuth 2.0 JWT Access Tokens. This endpoint can be used with client libraries like [node-jwks-rsa](https://github.com/auth0/node-jwks-rsa) among others. Adding custom keys requires first creating a keyset via the createJsonWebKeySet operation, and then configuring the webfinger.jwks.broadcast_keys configuration value to include the keyset name. 39 | * 40 | * @throws ApiException if the Api call fails 41 | */ 42 | @Test 43 | public void discoverJsonWebKeysTest() throws ApiException { 44 | JsonWebKeySet response = api.discoverJsonWebKeys(); 45 | // TODO: test validations 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/AcceptDeviceUserCodeRequestTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.util.Arrays; 23 | import org.junit.jupiter.api.Disabled; 24 | import org.junit.jupiter.api.Test; 25 | 26 | /** 27 | * Model tests for AcceptDeviceUserCodeRequest 28 | */ 29 | public class AcceptDeviceUserCodeRequestTest { 30 | private final AcceptDeviceUserCodeRequest model = new AcceptDeviceUserCodeRequest(); 31 | 32 | /** 33 | * Model tests for AcceptDeviceUserCodeRequest 34 | */ 35 | @Test 36 | public void testAcceptDeviceUserCodeRequest() { 37 | // TODO: test AcceptDeviceUserCodeRequest 38 | } 39 | 40 | /** 41 | * Test the property 'userCode' 42 | */ 43 | @Test 44 | public void userCodeTest() { 45 | // TODO: test userCode 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/AcceptOAuth2ConsentRequestSessionTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.util.Arrays; 23 | import org.openapitools.jackson.nullable.JsonNullable; 24 | import org.junit.jupiter.api.Disabled; 25 | import org.junit.jupiter.api.Test; 26 | 27 | /** 28 | * Model tests for AcceptOAuth2ConsentRequestSession 29 | */ 30 | public class AcceptOAuth2ConsentRequestSessionTest { 31 | private final AcceptOAuth2ConsentRequestSession model = new AcceptOAuth2ConsentRequestSession(); 32 | 33 | /** 34 | * Model tests for AcceptOAuth2ConsentRequestSession 35 | */ 36 | @Test 37 | public void testAcceptOAuth2ConsentRequestSession() { 38 | // TODO: test AcceptOAuth2ConsentRequestSession 39 | } 40 | 41 | /** 42 | * Test the property 'accessToken' 43 | */ 44 | @Test 45 | public void accessTokenTest() { 46 | // TODO: test accessToken 47 | } 48 | 49 | /** 50 | * Test the property 'idToken' 51 | */ 52 | @Test 53 | public void idTokenTest() { 54 | // TODO: test idToken 55 | } 56 | 57 | } 58 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/AcceptOAuth2ConsentRequestTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.time.OffsetDateTime; 23 | import java.util.ArrayList; 24 | import java.util.Arrays; 25 | import java.util.List; 26 | import org.openapitools.jackson.nullable.JsonNullable; 27 | import sh.ory.hydra.model.AcceptOAuth2ConsentRequestSession; 28 | import org.junit.jupiter.api.Disabled; 29 | import org.junit.jupiter.api.Test; 30 | 31 | /** 32 | * Model tests for AcceptOAuth2ConsentRequest 33 | */ 34 | public class AcceptOAuth2ConsentRequestTest { 35 | private final AcceptOAuth2ConsentRequest model = new AcceptOAuth2ConsentRequest(); 36 | 37 | /** 38 | * Model tests for AcceptOAuth2ConsentRequest 39 | */ 40 | @Test 41 | public void testAcceptOAuth2ConsentRequest() { 42 | // TODO: test AcceptOAuth2ConsentRequest 43 | } 44 | 45 | /** 46 | * Test the property 'context' 47 | */ 48 | @Test 49 | public void contextTest() { 50 | // TODO: test context 51 | } 52 | 53 | /** 54 | * Test the property 'grantAccessTokenAudience' 55 | */ 56 | @Test 57 | public void grantAccessTokenAudienceTest() { 58 | // TODO: test grantAccessTokenAudience 59 | } 60 | 61 | /** 62 | * Test the property 'grantScope' 63 | */ 64 | @Test 65 | public void grantScopeTest() { 66 | // TODO: test grantScope 67 | } 68 | 69 | /** 70 | * Test the property 'handledAt' 71 | */ 72 | @Test 73 | public void handledAtTest() { 74 | // TODO: test handledAt 75 | } 76 | 77 | /** 78 | * Test the property 'remember' 79 | */ 80 | @Test 81 | public void rememberTest() { 82 | // TODO: test remember 83 | } 84 | 85 | /** 86 | * Test the property 'rememberFor' 87 | */ 88 | @Test 89 | public void rememberForTest() { 90 | // TODO: test rememberFor 91 | } 92 | 93 | /** 94 | * Test the property 'session' 95 | */ 96 | @Test 97 | public void sessionTest() { 98 | // TODO: test session 99 | } 100 | 101 | } 102 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/AcceptOAuth2LoginRequestTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.util.ArrayList; 23 | import java.util.Arrays; 24 | import java.util.List; 25 | import org.openapitools.jackson.nullable.JsonNullable; 26 | import org.junit.jupiter.api.Disabled; 27 | import org.junit.jupiter.api.Test; 28 | 29 | /** 30 | * Model tests for AcceptOAuth2LoginRequest 31 | */ 32 | public class AcceptOAuth2LoginRequestTest { 33 | private final AcceptOAuth2LoginRequest model = new AcceptOAuth2LoginRequest(); 34 | 35 | /** 36 | * Model tests for AcceptOAuth2LoginRequest 37 | */ 38 | @Test 39 | public void testAcceptOAuth2LoginRequest() { 40 | // TODO: test AcceptOAuth2LoginRequest 41 | } 42 | 43 | /** 44 | * Test the property 'acr' 45 | */ 46 | @Test 47 | public void acrTest() { 48 | // TODO: test acr 49 | } 50 | 51 | /** 52 | * Test the property 'amr' 53 | */ 54 | @Test 55 | public void amrTest() { 56 | // TODO: test amr 57 | } 58 | 59 | /** 60 | * Test the property 'context' 61 | */ 62 | @Test 63 | public void contextTest() { 64 | // TODO: test context 65 | } 66 | 67 | /** 68 | * Test the property 'extendSessionLifespan' 69 | */ 70 | @Test 71 | public void extendSessionLifespanTest() { 72 | // TODO: test extendSessionLifespan 73 | } 74 | 75 | /** 76 | * Test the property 'forceSubjectIdentifier' 77 | */ 78 | @Test 79 | public void forceSubjectIdentifierTest() { 80 | // TODO: test forceSubjectIdentifier 81 | } 82 | 83 | /** 84 | * Test the property 'identityProviderSessionId' 85 | */ 86 | @Test 87 | public void identityProviderSessionIdTest() { 88 | // TODO: test identityProviderSessionId 89 | } 90 | 91 | /** 92 | * Test the property 'remember' 93 | */ 94 | @Test 95 | public void rememberTest() { 96 | // TODO: test remember 97 | } 98 | 99 | /** 100 | * Test the property 'rememberFor' 101 | */ 102 | @Test 103 | public void rememberForTest() { 104 | // TODO: test rememberFor 105 | } 106 | 107 | /** 108 | * Test the property 'subject' 109 | */ 110 | @Test 111 | public void subjectTest() { 112 | // TODO: test subject 113 | } 114 | 115 | } 116 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/CreateJsonWebKeySetTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.util.Arrays; 23 | import org.junit.jupiter.api.Disabled; 24 | import org.junit.jupiter.api.Test; 25 | 26 | /** 27 | * Model tests for CreateJsonWebKeySet 28 | */ 29 | public class CreateJsonWebKeySetTest { 30 | private final CreateJsonWebKeySet model = new CreateJsonWebKeySet(); 31 | 32 | /** 33 | * Model tests for CreateJsonWebKeySet 34 | */ 35 | @Test 36 | public void testCreateJsonWebKeySet() { 37 | // TODO: test CreateJsonWebKeySet 38 | } 39 | 40 | /** 41 | * Test the property 'alg' 42 | */ 43 | @Test 44 | public void algTest() { 45 | // TODO: test alg 46 | } 47 | 48 | /** 49 | * Test the property 'kid' 50 | */ 51 | @Test 52 | public void kidTest() { 53 | // TODO: test kid 54 | } 55 | 56 | /** 57 | * Test the property 'use' 58 | */ 59 | @Test 60 | public void useTest() { 61 | // TODO: test use 62 | } 63 | 64 | } 65 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/CreateVerifiableCredentialRequestBodyTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.util.ArrayList; 23 | import java.util.Arrays; 24 | import java.util.List; 25 | import sh.ory.hydra.model.VerifiableCredentialProof; 26 | import org.junit.jupiter.api.Disabled; 27 | import org.junit.jupiter.api.Test; 28 | 29 | /** 30 | * Model tests for CreateVerifiableCredentialRequestBody 31 | */ 32 | public class CreateVerifiableCredentialRequestBodyTest { 33 | private final CreateVerifiableCredentialRequestBody model = new CreateVerifiableCredentialRequestBody(); 34 | 35 | /** 36 | * Model tests for CreateVerifiableCredentialRequestBody 37 | */ 38 | @Test 39 | public void testCreateVerifiableCredentialRequestBody() { 40 | // TODO: test CreateVerifiableCredentialRequestBody 41 | } 42 | 43 | /** 44 | * Test the property 'format' 45 | */ 46 | @Test 47 | public void formatTest() { 48 | // TODO: test format 49 | } 50 | 51 | /** 52 | * Test the property 'proof' 53 | */ 54 | @Test 55 | public void proofTest() { 56 | // TODO: test proof 57 | } 58 | 59 | /** 60 | * Test the property 'types' 61 | */ 62 | @Test 63 | public void typesTest() { 64 | // TODO: test types 65 | } 66 | 67 | } 68 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/CredentialSupportedDraft00Test.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.util.ArrayList; 23 | import java.util.Arrays; 24 | import java.util.List; 25 | import org.junit.jupiter.api.Disabled; 26 | import org.junit.jupiter.api.Test; 27 | 28 | /** 29 | * Model tests for CredentialSupportedDraft00 30 | */ 31 | public class CredentialSupportedDraft00Test { 32 | private final CredentialSupportedDraft00 model = new CredentialSupportedDraft00(); 33 | 34 | /** 35 | * Model tests for CredentialSupportedDraft00 36 | */ 37 | @Test 38 | public void testCredentialSupportedDraft00() { 39 | // TODO: test CredentialSupportedDraft00 40 | } 41 | 42 | /** 43 | * Test the property 'cryptographicBindingMethodsSupported' 44 | */ 45 | @Test 46 | public void cryptographicBindingMethodsSupportedTest() { 47 | // TODO: test cryptographicBindingMethodsSupported 48 | } 49 | 50 | /** 51 | * Test the property 'cryptographicSuitesSupported' 52 | */ 53 | @Test 54 | public void cryptographicSuitesSupportedTest() { 55 | // TODO: test cryptographicSuitesSupported 56 | } 57 | 58 | /** 59 | * Test the property 'format' 60 | */ 61 | @Test 62 | public void formatTest() { 63 | // TODO: test format 64 | } 65 | 66 | /** 67 | * Test the property 'types' 68 | */ 69 | @Test 70 | public void typesTest() { 71 | // TODO: test types 72 | } 73 | 74 | } 75 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/DeviceAuthorizationTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.util.Arrays; 23 | import org.junit.jupiter.api.Disabled; 24 | import org.junit.jupiter.api.Test; 25 | 26 | /** 27 | * Model tests for DeviceAuthorization 28 | */ 29 | public class DeviceAuthorizationTest { 30 | private final DeviceAuthorization model = new DeviceAuthorization(); 31 | 32 | /** 33 | * Model tests for DeviceAuthorization 34 | */ 35 | @Test 36 | public void testDeviceAuthorization() { 37 | // TODO: test DeviceAuthorization 38 | } 39 | 40 | /** 41 | * Test the property 'deviceCode' 42 | */ 43 | @Test 44 | public void deviceCodeTest() { 45 | // TODO: test deviceCode 46 | } 47 | 48 | /** 49 | * Test the property 'expiresIn' 50 | */ 51 | @Test 52 | public void expiresInTest() { 53 | // TODO: test expiresIn 54 | } 55 | 56 | /** 57 | * Test the property 'interval' 58 | */ 59 | @Test 60 | public void intervalTest() { 61 | // TODO: test interval 62 | } 63 | 64 | /** 65 | * Test the property 'userCode' 66 | */ 67 | @Test 68 | public void userCodeTest() { 69 | // TODO: test userCode 70 | } 71 | 72 | /** 73 | * Test the property 'verificationUri' 74 | */ 75 | @Test 76 | public void verificationUriTest() { 77 | // TODO: test verificationUri 78 | } 79 | 80 | /** 81 | * Test the property 'verificationUriComplete' 82 | */ 83 | @Test 84 | public void verificationUriCompleteTest() { 85 | // TODO: test verificationUriComplete 86 | } 87 | 88 | } 89 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/DeviceUserAuthRequestTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.time.OffsetDateTime; 23 | import java.util.ArrayList; 24 | import java.util.Arrays; 25 | import java.util.List; 26 | import sh.ory.hydra.model.OAuth2Client; 27 | import org.junit.jupiter.api.Disabled; 28 | import org.junit.jupiter.api.Test; 29 | 30 | /** 31 | * Model tests for DeviceUserAuthRequest 32 | */ 33 | public class DeviceUserAuthRequestTest { 34 | private final DeviceUserAuthRequest model = new DeviceUserAuthRequest(); 35 | 36 | /** 37 | * Model tests for DeviceUserAuthRequest 38 | */ 39 | @Test 40 | public void testDeviceUserAuthRequest() { 41 | // TODO: test DeviceUserAuthRequest 42 | } 43 | 44 | /** 45 | * Test the property 'challenge' 46 | */ 47 | @Test 48 | public void challengeTest() { 49 | // TODO: test challenge 50 | } 51 | 52 | /** 53 | * Test the property 'client' 54 | */ 55 | @Test 56 | public void clientTest() { 57 | // TODO: test client 58 | } 59 | 60 | /** 61 | * Test the property 'handledAt' 62 | */ 63 | @Test 64 | public void handledAtTest() { 65 | // TODO: test handledAt 66 | } 67 | 68 | /** 69 | * Test the property 'requestUrl' 70 | */ 71 | @Test 72 | public void requestUrlTest() { 73 | // TODO: test requestUrl 74 | } 75 | 76 | /** 77 | * Test the property 'requestedAccessTokenAudience' 78 | */ 79 | @Test 80 | public void requestedAccessTokenAudienceTest() { 81 | // TODO: test requestedAccessTokenAudience 82 | } 83 | 84 | /** 85 | * Test the property 'requestedScope' 86 | */ 87 | @Test 88 | public void requestedScopeTest() { 89 | // TODO: test requestedScope 90 | } 91 | 92 | } 93 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/ErrorOAuth2Test.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.util.Arrays; 23 | import org.junit.jupiter.api.Disabled; 24 | import org.junit.jupiter.api.Test; 25 | 26 | /** 27 | * Model tests for ErrorOAuth2 28 | */ 29 | public class ErrorOAuth2Test { 30 | private final ErrorOAuth2 model = new ErrorOAuth2(); 31 | 32 | /** 33 | * Model tests for ErrorOAuth2 34 | */ 35 | @Test 36 | public void testErrorOAuth2() { 37 | // TODO: test ErrorOAuth2 38 | } 39 | 40 | /** 41 | * Test the property 'error' 42 | */ 43 | @Test 44 | public void errorTest() { 45 | // TODO: test error 46 | } 47 | 48 | /** 49 | * Test the property 'errorDebug' 50 | */ 51 | @Test 52 | public void errorDebugTest() { 53 | // TODO: test errorDebug 54 | } 55 | 56 | /** 57 | * Test the property 'errorDescription' 58 | */ 59 | @Test 60 | public void errorDescriptionTest() { 61 | // TODO: test errorDescription 62 | } 63 | 64 | /** 65 | * Test the property 'errorHint' 66 | */ 67 | @Test 68 | public void errorHintTest() { 69 | // TODO: test errorHint 70 | } 71 | 72 | /** 73 | * Test the property 'statusCode' 74 | */ 75 | @Test 76 | public void statusCodeTest() { 77 | // TODO: test statusCode 78 | } 79 | 80 | } 81 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/GenericErrorTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.util.Arrays; 23 | import org.openapitools.jackson.nullable.JsonNullable; 24 | import org.junit.jupiter.api.Disabled; 25 | import org.junit.jupiter.api.Test; 26 | 27 | /** 28 | * Model tests for GenericError 29 | */ 30 | public class GenericErrorTest { 31 | private final GenericError model = new GenericError(); 32 | 33 | /** 34 | * Model tests for GenericError 35 | */ 36 | @Test 37 | public void testGenericError() { 38 | // TODO: test GenericError 39 | } 40 | 41 | /** 42 | * Test the property 'code' 43 | */ 44 | @Test 45 | public void codeTest() { 46 | // TODO: test code 47 | } 48 | 49 | /** 50 | * Test the property 'debug' 51 | */ 52 | @Test 53 | public void debugTest() { 54 | // TODO: test debug 55 | } 56 | 57 | /** 58 | * Test the property 'details' 59 | */ 60 | @Test 61 | public void detailsTest() { 62 | // TODO: test details 63 | } 64 | 65 | /** 66 | * Test the property 'id' 67 | */ 68 | @Test 69 | public void idTest() { 70 | // TODO: test id 71 | } 72 | 73 | /** 74 | * Test the property 'message' 75 | */ 76 | @Test 77 | public void messageTest() { 78 | // TODO: test message 79 | } 80 | 81 | /** 82 | * Test the property 'reason' 83 | */ 84 | @Test 85 | public void reasonTest() { 86 | // TODO: test reason 87 | } 88 | 89 | /** 90 | * Test the property 'request' 91 | */ 92 | @Test 93 | public void requestTest() { 94 | // TODO: test request 95 | } 96 | 97 | /** 98 | * Test the property 'status' 99 | */ 100 | @Test 101 | public void statusTest() { 102 | // TODO: test status 103 | } 104 | 105 | } 106 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/GetVersion200ResponseTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.util.Arrays; 23 | import org.junit.jupiter.api.Disabled; 24 | import org.junit.jupiter.api.Test; 25 | 26 | /** 27 | * Model tests for GetVersion200Response 28 | */ 29 | public class GetVersion200ResponseTest { 30 | private final GetVersion200Response model = new GetVersion200Response(); 31 | 32 | /** 33 | * Model tests for GetVersion200Response 34 | */ 35 | @Test 36 | public void testGetVersion200Response() { 37 | // TODO: test GetVersion200Response 38 | } 39 | 40 | /** 41 | * Test the property 'version' 42 | */ 43 | @Test 44 | public void versionTest() { 45 | // TODO: test version 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/HealthNotReadyStatusTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.util.Arrays; 23 | import java.util.HashMap; 24 | import java.util.Map; 25 | import org.junit.jupiter.api.Disabled; 26 | import org.junit.jupiter.api.Test; 27 | 28 | /** 29 | * Model tests for HealthNotReadyStatus 30 | */ 31 | public class HealthNotReadyStatusTest { 32 | private final HealthNotReadyStatus model = new HealthNotReadyStatus(); 33 | 34 | /** 35 | * Model tests for HealthNotReadyStatus 36 | */ 37 | @Test 38 | public void testHealthNotReadyStatus() { 39 | // TODO: test HealthNotReadyStatus 40 | } 41 | 42 | /** 43 | * Test the property 'errors' 44 | */ 45 | @Test 46 | public void errorsTest() { 47 | // TODO: test errors 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/HealthStatusTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.util.Arrays; 23 | import org.junit.jupiter.api.Disabled; 24 | import org.junit.jupiter.api.Test; 25 | 26 | /** 27 | * Model tests for HealthStatus 28 | */ 29 | public class HealthStatusTest { 30 | private final HealthStatus model = new HealthStatus(); 31 | 32 | /** 33 | * Model tests for HealthStatus 34 | */ 35 | @Test 36 | public void testHealthStatus() { 37 | // TODO: test HealthStatus 38 | } 39 | 40 | /** 41 | * Test the property 'status' 42 | */ 43 | @Test 44 | public void statusTest() { 45 | // TODO: test status 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/IntrospectedOAuth2TokenTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.util.ArrayList; 23 | import java.util.Arrays; 24 | import java.util.HashMap; 25 | import java.util.List; 26 | import java.util.Map; 27 | import org.junit.jupiter.api.Disabled; 28 | import org.junit.jupiter.api.Test; 29 | 30 | /** 31 | * Model tests for IntrospectedOAuth2Token 32 | */ 33 | public class IntrospectedOAuth2TokenTest { 34 | private final IntrospectedOAuth2Token model = new IntrospectedOAuth2Token(); 35 | 36 | /** 37 | * Model tests for IntrospectedOAuth2Token 38 | */ 39 | @Test 40 | public void testIntrospectedOAuth2Token() { 41 | // TODO: test IntrospectedOAuth2Token 42 | } 43 | 44 | /** 45 | * Test the property 'active' 46 | */ 47 | @Test 48 | public void activeTest() { 49 | // TODO: test active 50 | } 51 | 52 | /** 53 | * Test the property 'aud' 54 | */ 55 | @Test 56 | public void audTest() { 57 | // TODO: test aud 58 | } 59 | 60 | /** 61 | * Test the property 'clientId' 62 | */ 63 | @Test 64 | public void clientIdTest() { 65 | // TODO: test clientId 66 | } 67 | 68 | /** 69 | * Test the property 'exp' 70 | */ 71 | @Test 72 | public void expTest() { 73 | // TODO: test exp 74 | } 75 | 76 | /** 77 | * Test the property 'ext' 78 | */ 79 | @Test 80 | public void extTest() { 81 | // TODO: test ext 82 | } 83 | 84 | /** 85 | * Test the property 'iat' 86 | */ 87 | @Test 88 | public void iatTest() { 89 | // TODO: test iat 90 | } 91 | 92 | /** 93 | * Test the property 'iss' 94 | */ 95 | @Test 96 | public void issTest() { 97 | // TODO: test iss 98 | } 99 | 100 | /** 101 | * Test the property 'nbf' 102 | */ 103 | @Test 104 | public void nbfTest() { 105 | // TODO: test nbf 106 | } 107 | 108 | /** 109 | * Test the property 'obfuscatedSubject' 110 | */ 111 | @Test 112 | public void obfuscatedSubjectTest() { 113 | // TODO: test obfuscatedSubject 114 | } 115 | 116 | /** 117 | * Test the property 'scope' 118 | */ 119 | @Test 120 | public void scopeTest() { 121 | // TODO: test scope 122 | } 123 | 124 | /** 125 | * Test the property 'sub' 126 | */ 127 | @Test 128 | public void subTest() { 129 | // TODO: test sub 130 | } 131 | 132 | /** 133 | * Test the property 'tokenType' 134 | */ 135 | @Test 136 | public void tokenTypeTest() { 137 | // TODO: test tokenType 138 | } 139 | 140 | /** 141 | * Test the property 'tokenUse' 142 | */ 143 | @Test 144 | public void tokenUseTest() { 145 | // TODO: test tokenUse 146 | } 147 | 148 | /** 149 | * Test the property 'username' 150 | */ 151 | @Test 152 | public void usernameTest() { 153 | // TODO: test username 154 | } 155 | 156 | } 157 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/IsReady200ResponseTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.util.Arrays; 23 | import org.junit.jupiter.api.Disabled; 24 | import org.junit.jupiter.api.Test; 25 | 26 | /** 27 | * Model tests for IsReady200Response 28 | */ 29 | public class IsReady200ResponseTest { 30 | private final IsReady200Response model = new IsReady200Response(); 31 | 32 | /** 33 | * Model tests for IsReady200Response 34 | */ 35 | @Test 36 | public void testIsReady200Response() { 37 | // TODO: test IsReady200Response 38 | } 39 | 40 | /** 41 | * Test the property 'status' 42 | */ 43 | @Test 44 | public void statusTest() { 45 | // TODO: test status 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/IsReady503ResponseTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.util.Arrays; 23 | import java.util.HashMap; 24 | import java.util.Map; 25 | import org.junit.jupiter.api.Disabled; 26 | import org.junit.jupiter.api.Test; 27 | 28 | /** 29 | * Model tests for IsReady503Response 30 | */ 31 | public class IsReady503ResponseTest { 32 | private final IsReady503Response model = new IsReady503Response(); 33 | 34 | /** 35 | * Model tests for IsReady503Response 36 | */ 37 | @Test 38 | public void testIsReady503Response() { 39 | // TODO: test IsReady503Response 40 | } 41 | 42 | /** 43 | * Test the property 'errors' 44 | */ 45 | @Test 46 | public void errorsTest() { 47 | // TODO: test errors 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/JsonPatchTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.util.Arrays; 23 | import org.openapitools.jackson.nullable.JsonNullable; 24 | import org.junit.jupiter.api.Disabled; 25 | import org.junit.jupiter.api.Test; 26 | 27 | /** 28 | * Model tests for JsonPatch 29 | */ 30 | public class JsonPatchTest { 31 | private final JsonPatch model = new JsonPatch(); 32 | 33 | /** 34 | * Model tests for JsonPatch 35 | */ 36 | @Test 37 | public void testJsonPatch() { 38 | // TODO: test JsonPatch 39 | } 40 | 41 | /** 42 | * Test the property 'from' 43 | */ 44 | @Test 45 | public void fromTest() { 46 | // TODO: test from 47 | } 48 | 49 | /** 50 | * Test the property 'op' 51 | */ 52 | @Test 53 | public void opTest() { 54 | // TODO: test op 55 | } 56 | 57 | /** 58 | * Test the property 'path' 59 | */ 60 | @Test 61 | public void pathTest() { 62 | // TODO: test path 63 | } 64 | 65 | /** 66 | * Test the property 'value' 67 | */ 68 | @Test 69 | public void valueTest() { 70 | // TODO: test value 71 | } 72 | 73 | } 74 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/JsonWebKeySetTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.util.ArrayList; 23 | import java.util.Arrays; 24 | import java.util.List; 25 | import sh.ory.hydra.model.JsonWebKey; 26 | import org.junit.jupiter.api.Disabled; 27 | import org.junit.jupiter.api.Test; 28 | 29 | /** 30 | * Model tests for JsonWebKeySet 31 | */ 32 | public class JsonWebKeySetTest { 33 | private final JsonWebKeySet model = new JsonWebKeySet(); 34 | 35 | /** 36 | * Model tests for JsonWebKeySet 37 | */ 38 | @Test 39 | public void testJsonWebKeySet() { 40 | // TODO: test JsonWebKeySet 41 | } 42 | 43 | /** 44 | * Test the property 'keys' 45 | */ 46 | @Test 47 | public void keysTest() { 48 | // TODO: test keys 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/JsonWebKeyTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.util.ArrayList; 23 | import java.util.Arrays; 24 | import java.util.List; 25 | import org.junit.jupiter.api.Disabled; 26 | import org.junit.jupiter.api.Test; 27 | 28 | /** 29 | * Model tests for JsonWebKey 30 | */ 31 | public class JsonWebKeyTest { 32 | private final JsonWebKey model = new JsonWebKey(); 33 | 34 | /** 35 | * Model tests for JsonWebKey 36 | */ 37 | @Test 38 | public void testJsonWebKey() { 39 | // TODO: test JsonWebKey 40 | } 41 | 42 | /** 43 | * Test the property 'alg' 44 | */ 45 | @Test 46 | public void algTest() { 47 | // TODO: test alg 48 | } 49 | 50 | /** 51 | * Test the property 'crv' 52 | */ 53 | @Test 54 | public void crvTest() { 55 | // TODO: test crv 56 | } 57 | 58 | /** 59 | * Test the property 'd' 60 | */ 61 | @Test 62 | public void dTest() { 63 | // TODO: test d 64 | } 65 | 66 | /** 67 | * Test the property 'dp' 68 | */ 69 | @Test 70 | public void dpTest() { 71 | // TODO: test dp 72 | } 73 | 74 | /** 75 | * Test the property 'dq' 76 | */ 77 | @Test 78 | public void dqTest() { 79 | // TODO: test dq 80 | } 81 | 82 | /** 83 | * Test the property 'e' 84 | */ 85 | @Test 86 | public void eTest() { 87 | // TODO: test e 88 | } 89 | 90 | /** 91 | * Test the property 'k' 92 | */ 93 | @Test 94 | public void kTest() { 95 | // TODO: test k 96 | } 97 | 98 | /** 99 | * Test the property 'kid' 100 | */ 101 | @Test 102 | public void kidTest() { 103 | // TODO: test kid 104 | } 105 | 106 | /** 107 | * Test the property 'kty' 108 | */ 109 | @Test 110 | public void ktyTest() { 111 | // TODO: test kty 112 | } 113 | 114 | /** 115 | * Test the property 'n' 116 | */ 117 | @Test 118 | public void nTest() { 119 | // TODO: test n 120 | } 121 | 122 | /** 123 | * Test the property 'p' 124 | */ 125 | @Test 126 | public void pTest() { 127 | // TODO: test p 128 | } 129 | 130 | /** 131 | * Test the property 'q' 132 | */ 133 | @Test 134 | public void qTest() { 135 | // TODO: test q 136 | } 137 | 138 | /** 139 | * Test the property 'qi' 140 | */ 141 | @Test 142 | public void qiTest() { 143 | // TODO: test qi 144 | } 145 | 146 | /** 147 | * Test the property 'use' 148 | */ 149 | @Test 150 | public void useTest() { 151 | // TODO: test use 152 | } 153 | 154 | /** 155 | * Test the property 'x' 156 | */ 157 | @Test 158 | public void xTest() { 159 | // TODO: test x 160 | } 161 | 162 | /** 163 | * Test the property 'x5c' 164 | */ 165 | @Test 166 | public void x5cTest() { 167 | // TODO: test x5c 168 | } 169 | 170 | /** 171 | * Test the property 'y' 172 | */ 173 | @Test 174 | public void yTest() { 175 | // TODO: test y 176 | } 177 | 178 | } 179 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/OAuth2ConsentRequestOpenIDConnectContextTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.util.ArrayList; 23 | import java.util.Arrays; 24 | import java.util.HashMap; 25 | import java.util.List; 26 | import java.util.Map; 27 | import org.junit.jupiter.api.Disabled; 28 | import org.junit.jupiter.api.Test; 29 | 30 | /** 31 | * Model tests for OAuth2ConsentRequestOpenIDConnectContext 32 | */ 33 | public class OAuth2ConsentRequestOpenIDConnectContextTest { 34 | private final OAuth2ConsentRequestOpenIDConnectContext model = new OAuth2ConsentRequestOpenIDConnectContext(); 35 | 36 | /** 37 | * Model tests for OAuth2ConsentRequestOpenIDConnectContext 38 | */ 39 | @Test 40 | public void testOAuth2ConsentRequestOpenIDConnectContext() { 41 | // TODO: test OAuth2ConsentRequestOpenIDConnectContext 42 | } 43 | 44 | /** 45 | * Test the property 'acrValues' 46 | */ 47 | @Test 48 | public void acrValuesTest() { 49 | // TODO: test acrValues 50 | } 51 | 52 | /** 53 | * Test the property 'display' 54 | */ 55 | @Test 56 | public void displayTest() { 57 | // TODO: test display 58 | } 59 | 60 | /** 61 | * Test the property 'idTokenHintClaims' 62 | */ 63 | @Test 64 | public void idTokenHintClaimsTest() { 65 | // TODO: test idTokenHintClaims 66 | } 67 | 68 | /** 69 | * Test the property 'loginHint' 70 | */ 71 | @Test 72 | public void loginHintTest() { 73 | // TODO: test loginHint 74 | } 75 | 76 | /** 77 | * Test the property 'uiLocales' 78 | */ 79 | @Test 80 | public void uiLocalesTest() { 81 | // TODO: test uiLocales 82 | } 83 | 84 | } 85 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/OAuth2ConsentRequestTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.util.ArrayList; 23 | import java.util.Arrays; 24 | import java.util.List; 25 | import org.openapitools.jackson.nullable.JsonNullable; 26 | import sh.ory.hydra.model.OAuth2Client; 27 | import sh.ory.hydra.model.OAuth2ConsentRequestOpenIDConnectContext; 28 | import org.junit.jupiter.api.Disabled; 29 | import org.junit.jupiter.api.Test; 30 | 31 | /** 32 | * Model tests for OAuth2ConsentRequest 33 | */ 34 | public class OAuth2ConsentRequestTest { 35 | private final OAuth2ConsentRequest model = new OAuth2ConsentRequest(); 36 | 37 | /** 38 | * Model tests for OAuth2ConsentRequest 39 | */ 40 | @Test 41 | public void testOAuth2ConsentRequest() { 42 | // TODO: test OAuth2ConsentRequest 43 | } 44 | 45 | /** 46 | * Test the property 'acr' 47 | */ 48 | @Test 49 | public void acrTest() { 50 | // TODO: test acr 51 | } 52 | 53 | /** 54 | * Test the property 'amr' 55 | */ 56 | @Test 57 | public void amrTest() { 58 | // TODO: test amr 59 | } 60 | 61 | /** 62 | * Test the property 'challenge' 63 | */ 64 | @Test 65 | public void challengeTest() { 66 | // TODO: test challenge 67 | } 68 | 69 | /** 70 | * Test the property 'client' 71 | */ 72 | @Test 73 | public void clientTest() { 74 | // TODO: test client 75 | } 76 | 77 | /** 78 | * Test the property 'context' 79 | */ 80 | @Test 81 | public void contextTest() { 82 | // TODO: test context 83 | } 84 | 85 | /** 86 | * Test the property 'deviceChallengeId' 87 | */ 88 | @Test 89 | public void deviceChallengeIdTest() { 90 | // TODO: test deviceChallengeId 91 | } 92 | 93 | /** 94 | * Test the property 'loginChallenge' 95 | */ 96 | @Test 97 | public void loginChallengeTest() { 98 | // TODO: test loginChallenge 99 | } 100 | 101 | /** 102 | * Test the property 'loginSessionId' 103 | */ 104 | @Test 105 | public void loginSessionIdTest() { 106 | // TODO: test loginSessionId 107 | } 108 | 109 | /** 110 | * Test the property 'oidcContext' 111 | */ 112 | @Test 113 | public void oidcContextTest() { 114 | // TODO: test oidcContext 115 | } 116 | 117 | /** 118 | * Test the property 'requestUrl' 119 | */ 120 | @Test 121 | public void requestUrlTest() { 122 | // TODO: test requestUrl 123 | } 124 | 125 | /** 126 | * Test the property 'requestedAccessTokenAudience' 127 | */ 128 | @Test 129 | public void requestedAccessTokenAudienceTest() { 130 | // TODO: test requestedAccessTokenAudience 131 | } 132 | 133 | /** 134 | * Test the property 'requestedScope' 135 | */ 136 | @Test 137 | public void requestedScopeTest() { 138 | // TODO: test requestedScope 139 | } 140 | 141 | /** 142 | * Test the property 'skip' 143 | */ 144 | @Test 145 | public void skipTest() { 146 | // TODO: test skip 147 | } 148 | 149 | /** 150 | * Test the property 'subject' 151 | */ 152 | @Test 153 | public void subjectTest() { 154 | // TODO: test subject 155 | } 156 | 157 | } 158 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/OAuth2ConsentSessionExpiresAtTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.time.OffsetDateTime; 23 | import java.util.Arrays; 24 | import org.junit.jupiter.api.Disabled; 25 | import org.junit.jupiter.api.Test; 26 | 27 | /** 28 | * Model tests for OAuth2ConsentSessionExpiresAt 29 | */ 30 | public class OAuth2ConsentSessionExpiresAtTest { 31 | private final OAuth2ConsentSessionExpiresAt model = new OAuth2ConsentSessionExpiresAt(); 32 | 33 | /** 34 | * Model tests for OAuth2ConsentSessionExpiresAt 35 | */ 36 | @Test 37 | public void testOAuth2ConsentSessionExpiresAt() { 38 | // TODO: test OAuth2ConsentSessionExpiresAt 39 | } 40 | 41 | /** 42 | * Test the property 'accessToken' 43 | */ 44 | @Test 45 | public void accessTokenTest() { 46 | // TODO: test accessToken 47 | } 48 | 49 | /** 50 | * Test the property 'authorizeCode' 51 | */ 52 | @Test 53 | public void authorizeCodeTest() { 54 | // TODO: test authorizeCode 55 | } 56 | 57 | /** 58 | * Test the property 'idToken' 59 | */ 60 | @Test 61 | public void idTokenTest() { 62 | // TODO: test idToken 63 | } 64 | 65 | /** 66 | * Test the property 'parContext' 67 | */ 68 | @Test 69 | public void parContextTest() { 70 | // TODO: test parContext 71 | } 72 | 73 | /** 74 | * Test the property 'refreshToken' 75 | */ 76 | @Test 77 | public void refreshTokenTest() { 78 | // TODO: test refreshToken 79 | } 80 | 81 | } 82 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/OAuth2ConsentSessionTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.time.OffsetDateTime; 23 | import java.util.ArrayList; 24 | import java.util.Arrays; 25 | import java.util.List; 26 | import org.openapitools.jackson.nullable.JsonNullable; 27 | import sh.ory.hydra.model.AcceptOAuth2ConsentRequestSession; 28 | import sh.ory.hydra.model.OAuth2ConsentRequest; 29 | import sh.ory.hydra.model.OAuth2ConsentSessionExpiresAt; 30 | import org.junit.jupiter.api.Disabled; 31 | import org.junit.jupiter.api.Test; 32 | 33 | /** 34 | * Model tests for OAuth2ConsentSession 35 | */ 36 | public class OAuth2ConsentSessionTest { 37 | private final OAuth2ConsentSession model = new OAuth2ConsentSession(); 38 | 39 | /** 40 | * Model tests for OAuth2ConsentSession 41 | */ 42 | @Test 43 | public void testOAuth2ConsentSession() { 44 | // TODO: test OAuth2ConsentSession 45 | } 46 | 47 | /** 48 | * Test the property 'consentRequest' 49 | */ 50 | @Test 51 | public void consentRequestTest() { 52 | // TODO: test consentRequest 53 | } 54 | 55 | /** 56 | * Test the property 'context' 57 | */ 58 | @Test 59 | public void contextTest() { 60 | // TODO: test context 61 | } 62 | 63 | /** 64 | * Test the property 'expiresAt' 65 | */ 66 | @Test 67 | public void expiresAtTest() { 68 | // TODO: test expiresAt 69 | } 70 | 71 | /** 72 | * Test the property 'grantAccessTokenAudience' 73 | */ 74 | @Test 75 | public void grantAccessTokenAudienceTest() { 76 | // TODO: test grantAccessTokenAudience 77 | } 78 | 79 | /** 80 | * Test the property 'grantScope' 81 | */ 82 | @Test 83 | public void grantScopeTest() { 84 | // TODO: test grantScope 85 | } 86 | 87 | /** 88 | * Test the property 'handledAt' 89 | */ 90 | @Test 91 | public void handledAtTest() { 92 | // TODO: test handledAt 93 | } 94 | 95 | /** 96 | * Test the property 'remember' 97 | */ 98 | @Test 99 | public void rememberTest() { 100 | // TODO: test remember 101 | } 102 | 103 | /** 104 | * Test the property 'rememberFor' 105 | */ 106 | @Test 107 | public void rememberForTest() { 108 | // TODO: test rememberFor 109 | } 110 | 111 | /** 112 | * Test the property 'session' 113 | */ 114 | @Test 115 | public void sessionTest() { 116 | // TODO: test session 117 | } 118 | 119 | } 120 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/OAuth2LoginRequestTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.util.ArrayList; 23 | import java.util.Arrays; 24 | import java.util.List; 25 | import sh.ory.hydra.model.OAuth2Client; 26 | import sh.ory.hydra.model.OAuth2ConsentRequestOpenIDConnectContext; 27 | import org.junit.jupiter.api.Disabled; 28 | import org.junit.jupiter.api.Test; 29 | 30 | /** 31 | * Model tests for OAuth2LoginRequest 32 | */ 33 | public class OAuth2LoginRequestTest { 34 | private final OAuth2LoginRequest model = new OAuth2LoginRequest(); 35 | 36 | /** 37 | * Model tests for OAuth2LoginRequest 38 | */ 39 | @Test 40 | public void testOAuth2LoginRequest() { 41 | // TODO: test OAuth2LoginRequest 42 | } 43 | 44 | /** 45 | * Test the property 'challenge' 46 | */ 47 | @Test 48 | public void challengeTest() { 49 | // TODO: test challenge 50 | } 51 | 52 | /** 53 | * Test the property 'client' 54 | */ 55 | @Test 56 | public void clientTest() { 57 | // TODO: test client 58 | } 59 | 60 | /** 61 | * Test the property 'oidcContext' 62 | */ 63 | @Test 64 | public void oidcContextTest() { 65 | // TODO: test oidcContext 66 | } 67 | 68 | /** 69 | * Test the property 'requestUrl' 70 | */ 71 | @Test 72 | public void requestUrlTest() { 73 | // TODO: test requestUrl 74 | } 75 | 76 | /** 77 | * Test the property 'requestedAccessTokenAudience' 78 | */ 79 | @Test 80 | public void requestedAccessTokenAudienceTest() { 81 | // TODO: test requestedAccessTokenAudience 82 | } 83 | 84 | /** 85 | * Test the property 'requestedScope' 86 | */ 87 | @Test 88 | public void requestedScopeTest() { 89 | // TODO: test requestedScope 90 | } 91 | 92 | /** 93 | * Test the property 'sessionId' 94 | */ 95 | @Test 96 | public void sessionIdTest() { 97 | // TODO: test sessionId 98 | } 99 | 100 | /** 101 | * Test the property 'skip' 102 | */ 103 | @Test 104 | public void skipTest() { 105 | // TODO: test skip 106 | } 107 | 108 | /** 109 | * Test the property 'subject' 110 | */ 111 | @Test 112 | public void subjectTest() { 113 | // TODO: test subject 114 | } 115 | 116 | } 117 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/OAuth2LogoutRequestTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.time.OffsetDateTime; 23 | import java.util.Arrays; 24 | import sh.ory.hydra.model.OAuth2Client; 25 | import org.junit.jupiter.api.Disabled; 26 | import org.junit.jupiter.api.Test; 27 | 28 | /** 29 | * Model tests for OAuth2LogoutRequest 30 | */ 31 | public class OAuth2LogoutRequestTest { 32 | private final OAuth2LogoutRequest model = new OAuth2LogoutRequest(); 33 | 34 | /** 35 | * Model tests for OAuth2LogoutRequest 36 | */ 37 | @Test 38 | public void testOAuth2LogoutRequest() { 39 | // TODO: test OAuth2LogoutRequest 40 | } 41 | 42 | /** 43 | * Test the property 'challenge' 44 | */ 45 | @Test 46 | public void challengeTest() { 47 | // TODO: test challenge 48 | } 49 | 50 | /** 51 | * Test the property 'client' 52 | */ 53 | @Test 54 | public void clientTest() { 55 | // TODO: test client 56 | } 57 | 58 | /** 59 | * Test the property 'expiresAt' 60 | */ 61 | @Test 62 | public void expiresAtTest() { 63 | // TODO: test expiresAt 64 | } 65 | 66 | /** 67 | * Test the property 'requestUrl' 68 | */ 69 | @Test 70 | public void requestUrlTest() { 71 | // TODO: test requestUrl 72 | } 73 | 74 | /** 75 | * Test the property 'requestedAt' 76 | */ 77 | @Test 78 | public void requestedAtTest() { 79 | // TODO: test requestedAt 80 | } 81 | 82 | /** 83 | * Test the property 'rpInitiated' 84 | */ 85 | @Test 86 | public void rpInitiatedTest() { 87 | // TODO: test rpInitiated 88 | } 89 | 90 | /** 91 | * Test the property 'sid' 92 | */ 93 | @Test 94 | public void sidTest() { 95 | // TODO: test sid 96 | } 97 | 98 | /** 99 | * Test the property 'subject' 100 | */ 101 | @Test 102 | public void subjectTest() { 103 | // TODO: test subject 104 | } 105 | 106 | } 107 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/OAuth2RedirectToTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.util.Arrays; 23 | import org.junit.jupiter.api.Disabled; 24 | import org.junit.jupiter.api.Test; 25 | 26 | /** 27 | * Model tests for OAuth2RedirectTo 28 | */ 29 | public class OAuth2RedirectToTest { 30 | private final OAuth2RedirectTo model = new OAuth2RedirectTo(); 31 | 32 | /** 33 | * Model tests for OAuth2RedirectTo 34 | */ 35 | @Test 36 | public void testOAuth2RedirectTo() { 37 | // TODO: test OAuth2RedirectTo 38 | } 39 | 40 | /** 41 | * Test the property 'redirectTo' 42 | */ 43 | @Test 44 | public void redirectToTest() { 45 | // TODO: test redirectTo 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/OAuth2TokenExchangeTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.util.Arrays; 23 | import org.junit.jupiter.api.Disabled; 24 | import org.junit.jupiter.api.Test; 25 | 26 | /** 27 | * Model tests for OAuth2TokenExchange 28 | */ 29 | public class OAuth2TokenExchangeTest { 30 | private final OAuth2TokenExchange model = new OAuth2TokenExchange(); 31 | 32 | /** 33 | * Model tests for OAuth2TokenExchange 34 | */ 35 | @Test 36 | public void testOAuth2TokenExchange() { 37 | // TODO: test OAuth2TokenExchange 38 | } 39 | 40 | /** 41 | * Test the property 'accessToken' 42 | */ 43 | @Test 44 | public void accessTokenTest() { 45 | // TODO: test accessToken 46 | } 47 | 48 | /** 49 | * Test the property 'expiresIn' 50 | */ 51 | @Test 52 | public void expiresInTest() { 53 | // TODO: test expiresIn 54 | } 55 | 56 | /** 57 | * Test the property 'idToken' 58 | */ 59 | @Test 60 | public void idTokenTest() { 61 | // TODO: test idToken 62 | } 63 | 64 | /** 65 | * Test the property 'refreshToken' 66 | */ 67 | @Test 68 | public void refreshTokenTest() { 69 | // TODO: test refreshToken 70 | } 71 | 72 | /** 73 | * Test the property 'scope' 74 | */ 75 | @Test 76 | public void scopeTest() { 77 | // TODO: test scope 78 | } 79 | 80 | /** 81 | * Test the property 'tokenType' 82 | */ 83 | @Test 84 | public void tokenTypeTest() { 85 | // TODO: test tokenType 86 | } 87 | 88 | } 89 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/PaginationHeadersTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.util.Arrays; 23 | import org.junit.jupiter.api.Disabled; 24 | import org.junit.jupiter.api.Test; 25 | 26 | /** 27 | * Model tests for PaginationHeaders 28 | */ 29 | public class PaginationHeadersTest { 30 | private final PaginationHeaders model = new PaginationHeaders(); 31 | 32 | /** 33 | * Model tests for PaginationHeaders 34 | */ 35 | @Test 36 | public void testPaginationHeaders() { 37 | // TODO: test PaginationHeaders 38 | } 39 | 40 | /** 41 | * Test the property 'link' 42 | */ 43 | @Test 44 | public void linkTest() { 45 | // TODO: test link 46 | } 47 | 48 | /** 49 | * Test the property 'xTotalCount' 50 | */ 51 | @Test 52 | public void xTotalCountTest() { 53 | // TODO: test xTotalCount 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/PaginationTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.util.Arrays; 23 | import org.junit.jupiter.api.Disabled; 24 | import org.junit.jupiter.api.Test; 25 | 26 | /** 27 | * Model tests for Pagination 28 | */ 29 | public class PaginationTest { 30 | private final Pagination model = new Pagination(); 31 | 32 | /** 33 | * Model tests for Pagination 34 | */ 35 | @Test 36 | public void testPagination() { 37 | // TODO: test Pagination 38 | } 39 | 40 | /** 41 | * Test the property 'pageSize' 42 | */ 43 | @Test 44 | public void pageSizeTest() { 45 | // TODO: test pageSize 46 | } 47 | 48 | /** 49 | * Test the property 'pageToken' 50 | */ 51 | @Test 52 | public void pageTokenTest() { 53 | // TODO: test pageToken 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/RFC6749ErrorJsonTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.util.Arrays; 23 | import org.junit.jupiter.api.Disabled; 24 | import org.junit.jupiter.api.Test; 25 | 26 | /** 27 | * Model tests for RFC6749ErrorJson 28 | */ 29 | public class RFC6749ErrorJsonTest { 30 | private final RFC6749ErrorJson model = new RFC6749ErrorJson(); 31 | 32 | /** 33 | * Model tests for RFC6749ErrorJson 34 | */ 35 | @Test 36 | public void testRFC6749ErrorJson() { 37 | // TODO: test RFC6749ErrorJson 38 | } 39 | 40 | /** 41 | * Test the property 'error' 42 | */ 43 | @Test 44 | public void errorTest() { 45 | // TODO: test error 46 | } 47 | 48 | /** 49 | * Test the property 'errorDebug' 50 | */ 51 | @Test 52 | public void errorDebugTest() { 53 | // TODO: test errorDebug 54 | } 55 | 56 | /** 57 | * Test the property 'errorDescription' 58 | */ 59 | @Test 60 | public void errorDescriptionTest() { 61 | // TODO: test errorDescription 62 | } 63 | 64 | /** 65 | * Test the property 'errorHint' 66 | */ 67 | @Test 68 | public void errorHintTest() { 69 | // TODO: test errorHint 70 | } 71 | 72 | /** 73 | * Test the property 'statusCode' 74 | */ 75 | @Test 76 | public void statusCodeTest() { 77 | // TODO: test statusCode 78 | } 79 | 80 | } 81 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/RejectOAuth2RequestTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.util.Arrays; 23 | import org.junit.jupiter.api.Disabled; 24 | import org.junit.jupiter.api.Test; 25 | 26 | /** 27 | * Model tests for RejectOAuth2Request 28 | */ 29 | public class RejectOAuth2RequestTest { 30 | private final RejectOAuth2Request model = new RejectOAuth2Request(); 31 | 32 | /** 33 | * Model tests for RejectOAuth2Request 34 | */ 35 | @Test 36 | public void testRejectOAuth2Request() { 37 | // TODO: test RejectOAuth2Request 38 | } 39 | 40 | /** 41 | * Test the property 'error' 42 | */ 43 | @Test 44 | public void errorTest() { 45 | // TODO: test error 46 | } 47 | 48 | /** 49 | * Test the property 'errorDebug' 50 | */ 51 | @Test 52 | public void errorDebugTest() { 53 | // TODO: test errorDebug 54 | } 55 | 56 | /** 57 | * Test the property 'errorDescription' 58 | */ 59 | @Test 60 | public void errorDescriptionTest() { 61 | // TODO: test errorDescription 62 | } 63 | 64 | /** 65 | * Test the property 'errorHint' 66 | */ 67 | @Test 68 | public void errorHintTest() { 69 | // TODO: test errorHint 70 | } 71 | 72 | /** 73 | * Test the property 'statusCode' 74 | */ 75 | @Test 76 | public void statusCodeTest() { 77 | // TODO: test statusCode 78 | } 79 | 80 | } 81 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/TokenPaginationHeadersTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.util.Arrays; 23 | import org.junit.jupiter.api.Disabled; 24 | import org.junit.jupiter.api.Test; 25 | 26 | /** 27 | * Model tests for TokenPaginationHeaders 28 | */ 29 | public class TokenPaginationHeadersTest { 30 | private final TokenPaginationHeaders model = new TokenPaginationHeaders(); 31 | 32 | /** 33 | * Model tests for TokenPaginationHeaders 34 | */ 35 | @Test 36 | public void testTokenPaginationHeaders() { 37 | // TODO: test TokenPaginationHeaders 38 | } 39 | 40 | /** 41 | * Test the property 'link' 42 | */ 43 | @Test 44 | public void linkTest() { 45 | // TODO: test link 46 | } 47 | 48 | /** 49 | * Test the property 'xTotalCount' 50 | */ 51 | @Test 52 | public void xTotalCountTest() { 53 | // TODO: test xTotalCount 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/TokenPaginationRequestParametersTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.util.Arrays; 23 | import org.junit.jupiter.api.Disabled; 24 | import org.junit.jupiter.api.Test; 25 | 26 | /** 27 | * Model tests for TokenPaginationRequestParameters 28 | */ 29 | public class TokenPaginationRequestParametersTest { 30 | private final TokenPaginationRequestParameters model = new TokenPaginationRequestParameters(); 31 | 32 | /** 33 | * Model tests for TokenPaginationRequestParameters 34 | */ 35 | @Test 36 | public void testTokenPaginationRequestParameters() { 37 | // TODO: test TokenPaginationRequestParameters 38 | } 39 | 40 | /** 41 | * Test the property 'pageSize' 42 | */ 43 | @Test 44 | public void pageSizeTest() { 45 | // TODO: test pageSize 46 | } 47 | 48 | /** 49 | * Test the property 'pageToken' 50 | */ 51 | @Test 52 | public void pageTokenTest() { 53 | // TODO: test pageToken 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/TokenPaginationResponseHeadersTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.util.Arrays; 23 | import org.junit.jupiter.api.Disabled; 24 | import org.junit.jupiter.api.Test; 25 | 26 | /** 27 | * Model tests for TokenPaginationResponseHeaders 28 | */ 29 | public class TokenPaginationResponseHeadersTest { 30 | private final TokenPaginationResponseHeaders model = new TokenPaginationResponseHeaders(); 31 | 32 | /** 33 | * Model tests for TokenPaginationResponseHeaders 34 | */ 35 | @Test 36 | public void testTokenPaginationResponseHeaders() { 37 | // TODO: test TokenPaginationResponseHeaders 38 | } 39 | 40 | /** 41 | * Test the property 'link' 42 | */ 43 | @Test 44 | public void linkTest() { 45 | // TODO: test link 46 | } 47 | 48 | /** 49 | * Test the property 'xTotalCount' 50 | */ 51 | @Test 52 | public void xTotalCountTest() { 53 | // TODO: test xTotalCount 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/TokenPaginationTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.util.Arrays; 23 | import org.junit.jupiter.api.Disabled; 24 | import org.junit.jupiter.api.Test; 25 | 26 | /** 27 | * Model tests for TokenPagination 28 | */ 29 | public class TokenPaginationTest { 30 | private final TokenPagination model = new TokenPagination(); 31 | 32 | /** 33 | * Model tests for TokenPagination 34 | */ 35 | @Test 36 | public void testTokenPagination() { 37 | // TODO: test TokenPagination 38 | } 39 | 40 | /** 41 | * Test the property 'pageSize' 42 | */ 43 | @Test 44 | public void pageSizeTest() { 45 | // TODO: test pageSize 46 | } 47 | 48 | /** 49 | * Test the property 'pageToken' 50 | */ 51 | @Test 52 | public void pageTokenTest() { 53 | // TODO: test pageToken 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/TrustOAuth2JwtGrantIssuerTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.time.OffsetDateTime; 23 | import java.util.ArrayList; 24 | import java.util.Arrays; 25 | import java.util.List; 26 | import sh.ory.hydra.model.JsonWebKey; 27 | import org.junit.jupiter.api.Disabled; 28 | import org.junit.jupiter.api.Test; 29 | 30 | /** 31 | * Model tests for TrustOAuth2JwtGrantIssuer 32 | */ 33 | public class TrustOAuth2JwtGrantIssuerTest { 34 | private final TrustOAuth2JwtGrantIssuer model = new TrustOAuth2JwtGrantIssuer(); 35 | 36 | /** 37 | * Model tests for TrustOAuth2JwtGrantIssuer 38 | */ 39 | @Test 40 | public void testTrustOAuth2JwtGrantIssuer() { 41 | // TODO: test TrustOAuth2JwtGrantIssuer 42 | } 43 | 44 | /** 45 | * Test the property 'allowAnySubject' 46 | */ 47 | @Test 48 | public void allowAnySubjectTest() { 49 | // TODO: test allowAnySubject 50 | } 51 | 52 | /** 53 | * Test the property 'expiresAt' 54 | */ 55 | @Test 56 | public void expiresAtTest() { 57 | // TODO: test expiresAt 58 | } 59 | 60 | /** 61 | * Test the property 'issuer' 62 | */ 63 | @Test 64 | public void issuerTest() { 65 | // TODO: test issuer 66 | } 67 | 68 | /** 69 | * Test the property 'jwk' 70 | */ 71 | @Test 72 | public void jwkTest() { 73 | // TODO: test jwk 74 | } 75 | 76 | /** 77 | * Test the property 'scope' 78 | */ 79 | @Test 80 | public void scopeTest() { 81 | // TODO: test scope 82 | } 83 | 84 | /** 85 | * Test the property 'subject' 86 | */ 87 | @Test 88 | public void subjectTest() { 89 | // TODO: test subject 90 | } 91 | 92 | } 93 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/TrustedOAuth2JwtGrantIssuerTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.time.OffsetDateTime; 23 | import java.util.ArrayList; 24 | import java.util.Arrays; 25 | import java.util.List; 26 | import sh.ory.hydra.model.TrustedOAuth2JwtGrantJsonWebKey; 27 | import org.junit.jupiter.api.Disabled; 28 | import org.junit.jupiter.api.Test; 29 | 30 | /** 31 | * Model tests for TrustedOAuth2JwtGrantIssuer 32 | */ 33 | public class TrustedOAuth2JwtGrantIssuerTest { 34 | private final TrustedOAuth2JwtGrantIssuer model = new TrustedOAuth2JwtGrantIssuer(); 35 | 36 | /** 37 | * Model tests for TrustedOAuth2JwtGrantIssuer 38 | */ 39 | @Test 40 | public void testTrustedOAuth2JwtGrantIssuer() { 41 | // TODO: test TrustedOAuth2JwtGrantIssuer 42 | } 43 | 44 | /** 45 | * Test the property 'allowAnySubject' 46 | */ 47 | @Test 48 | public void allowAnySubjectTest() { 49 | // TODO: test allowAnySubject 50 | } 51 | 52 | /** 53 | * Test the property 'createdAt' 54 | */ 55 | @Test 56 | public void createdAtTest() { 57 | // TODO: test createdAt 58 | } 59 | 60 | /** 61 | * Test the property 'expiresAt' 62 | */ 63 | @Test 64 | public void expiresAtTest() { 65 | // TODO: test expiresAt 66 | } 67 | 68 | /** 69 | * Test the property 'id' 70 | */ 71 | @Test 72 | public void idTest() { 73 | // TODO: test id 74 | } 75 | 76 | /** 77 | * Test the property 'issuer' 78 | */ 79 | @Test 80 | public void issuerTest() { 81 | // TODO: test issuer 82 | } 83 | 84 | /** 85 | * Test the property 'publicKey' 86 | */ 87 | @Test 88 | public void publicKeyTest() { 89 | // TODO: test publicKey 90 | } 91 | 92 | /** 93 | * Test the property 'scope' 94 | */ 95 | @Test 96 | public void scopeTest() { 97 | // TODO: test scope 98 | } 99 | 100 | /** 101 | * Test the property 'subject' 102 | */ 103 | @Test 104 | public void subjectTest() { 105 | // TODO: test subject 106 | } 107 | 108 | } 109 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/TrustedOAuth2JwtGrantJsonWebKeyTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.util.Arrays; 23 | import org.junit.jupiter.api.Disabled; 24 | import org.junit.jupiter.api.Test; 25 | 26 | /** 27 | * Model tests for TrustedOAuth2JwtGrantJsonWebKey 28 | */ 29 | public class TrustedOAuth2JwtGrantJsonWebKeyTest { 30 | private final TrustedOAuth2JwtGrantJsonWebKey model = new TrustedOAuth2JwtGrantJsonWebKey(); 31 | 32 | /** 33 | * Model tests for TrustedOAuth2JwtGrantJsonWebKey 34 | */ 35 | @Test 36 | public void testTrustedOAuth2JwtGrantJsonWebKey() { 37 | // TODO: test TrustedOAuth2JwtGrantJsonWebKey 38 | } 39 | 40 | /** 41 | * Test the property 'kid' 42 | */ 43 | @Test 44 | public void kidTest() { 45 | // TODO: test kid 46 | } 47 | 48 | /** 49 | * Test the property 'set' 50 | */ 51 | @Test 52 | public void setTest() { 53 | // TODO: test set 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/VerifiableCredentialPrimingResponseTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.util.Arrays; 23 | import org.junit.jupiter.api.Disabled; 24 | import org.junit.jupiter.api.Test; 25 | 26 | /** 27 | * Model tests for VerifiableCredentialPrimingResponse 28 | */ 29 | public class VerifiableCredentialPrimingResponseTest { 30 | private final VerifiableCredentialPrimingResponse model = new VerifiableCredentialPrimingResponse(); 31 | 32 | /** 33 | * Model tests for VerifiableCredentialPrimingResponse 34 | */ 35 | @Test 36 | public void testVerifiableCredentialPrimingResponse() { 37 | // TODO: test VerifiableCredentialPrimingResponse 38 | } 39 | 40 | /** 41 | * Test the property 'cNonce' 42 | */ 43 | @Test 44 | public void cNonceTest() { 45 | // TODO: test cNonce 46 | } 47 | 48 | /** 49 | * Test the property 'cNonceExpiresIn' 50 | */ 51 | @Test 52 | public void cNonceExpiresInTest() { 53 | // TODO: test cNonceExpiresIn 54 | } 55 | 56 | /** 57 | * Test the property 'error' 58 | */ 59 | @Test 60 | public void errorTest() { 61 | // TODO: test error 62 | } 63 | 64 | /** 65 | * Test the property 'errorDebug' 66 | */ 67 | @Test 68 | public void errorDebugTest() { 69 | // TODO: test errorDebug 70 | } 71 | 72 | /** 73 | * Test the property 'errorDescription' 74 | */ 75 | @Test 76 | public void errorDescriptionTest() { 77 | // TODO: test errorDescription 78 | } 79 | 80 | /** 81 | * Test the property 'errorHint' 82 | */ 83 | @Test 84 | public void errorHintTest() { 85 | // TODO: test errorHint 86 | } 87 | 88 | /** 89 | * Test the property 'format' 90 | */ 91 | @Test 92 | public void formatTest() { 93 | // TODO: test format 94 | } 95 | 96 | /** 97 | * Test the property 'statusCode' 98 | */ 99 | @Test 100 | public void statusCodeTest() { 101 | // TODO: test statusCode 102 | } 103 | 104 | } 105 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/VerifiableCredentialProofTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.util.Arrays; 23 | import org.junit.jupiter.api.Disabled; 24 | import org.junit.jupiter.api.Test; 25 | 26 | /** 27 | * Model tests for VerifiableCredentialProof 28 | */ 29 | public class VerifiableCredentialProofTest { 30 | private final VerifiableCredentialProof model = new VerifiableCredentialProof(); 31 | 32 | /** 33 | * Model tests for VerifiableCredentialProof 34 | */ 35 | @Test 36 | public void testVerifiableCredentialProof() { 37 | // TODO: test VerifiableCredentialProof 38 | } 39 | 40 | /** 41 | * Test the property 'jwt' 42 | */ 43 | @Test 44 | public void jwtTest() { 45 | // TODO: test jwt 46 | } 47 | 48 | /** 49 | * Test the property 'proofType' 50 | */ 51 | @Test 52 | public void proofTypeTest() { 53 | // TODO: test proofType 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/VerifiableCredentialResponseTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.util.Arrays; 23 | import org.junit.jupiter.api.Disabled; 24 | import org.junit.jupiter.api.Test; 25 | 26 | /** 27 | * Model tests for VerifiableCredentialResponse 28 | */ 29 | public class VerifiableCredentialResponseTest { 30 | private final VerifiableCredentialResponse model = new VerifiableCredentialResponse(); 31 | 32 | /** 33 | * Model tests for VerifiableCredentialResponse 34 | */ 35 | @Test 36 | public void testVerifiableCredentialResponse() { 37 | // TODO: test VerifiableCredentialResponse 38 | } 39 | 40 | /** 41 | * Test the property 'credentialDraft00' 42 | */ 43 | @Test 44 | public void credentialDraft00Test() { 45 | // TODO: test credentialDraft00 46 | } 47 | 48 | /** 49 | * Test the property 'format' 50 | */ 51 | @Test 52 | public void formatTest() { 53 | // TODO: test format 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/VerifyUserCodeRequestTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.time.OffsetDateTime; 23 | import java.util.ArrayList; 24 | import java.util.Arrays; 25 | import java.util.List; 26 | import sh.ory.hydra.model.OAuth2Client; 27 | import org.junit.jupiter.api.Disabled; 28 | import org.junit.jupiter.api.Test; 29 | 30 | /** 31 | * Model tests for VerifyUserCodeRequest 32 | */ 33 | public class VerifyUserCodeRequestTest { 34 | private final VerifyUserCodeRequest model = new VerifyUserCodeRequest(); 35 | 36 | /** 37 | * Model tests for VerifyUserCodeRequest 38 | */ 39 | @Test 40 | public void testVerifyUserCodeRequest() { 41 | // TODO: test VerifyUserCodeRequest 42 | } 43 | 44 | /** 45 | * Test the property 'challenge' 46 | */ 47 | @Test 48 | public void challengeTest() { 49 | // TODO: test challenge 50 | } 51 | 52 | /** 53 | * Test the property 'client' 54 | */ 55 | @Test 56 | public void clientTest() { 57 | // TODO: test client 58 | } 59 | 60 | /** 61 | * Test the property 'deviceCodeRequestId' 62 | */ 63 | @Test 64 | public void deviceCodeRequestIdTest() { 65 | // TODO: test deviceCodeRequestId 66 | } 67 | 68 | /** 69 | * Test the property 'handledAt' 70 | */ 71 | @Test 72 | public void handledAtTest() { 73 | // TODO: test handledAt 74 | } 75 | 76 | /** 77 | * Test the property 'requestUrl' 78 | */ 79 | @Test 80 | public void requestUrlTest() { 81 | // TODO: test requestUrl 82 | } 83 | 84 | /** 85 | * Test the property 'requestedAccessTokenAudience' 86 | */ 87 | @Test 88 | public void requestedAccessTokenAudienceTest() { 89 | // TODO: test requestedAccessTokenAudience 90 | } 91 | 92 | /** 93 | * Test the property 'requestedScope' 94 | */ 95 | @Test 96 | public void requestedScopeTest() { 97 | // TODO: test requestedScope 98 | } 99 | 100 | } 101 | -------------------------------------------------------------------------------- /src/test/java/sh/ory/hydra/model/VersionTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Ory Hydra API 3 | * Documentation for all of Ory Hydra's APIs. 4 | * 5 | * The version of the OpenAPI document: v2.4.0-alpha.1 6 | * Contact: hi@ory.sh 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package sh.ory.hydra.model; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import java.io.IOException; 22 | import java.util.Arrays; 23 | import org.junit.jupiter.api.Disabled; 24 | import org.junit.jupiter.api.Test; 25 | 26 | /** 27 | * Model tests for Version 28 | */ 29 | public class VersionTest { 30 | private final Version model = new Version(); 31 | 32 | /** 33 | * Model tests for Version 34 | */ 35 | @Test 36 | public void testVersion() { 37 | // TODO: test Version 38 | } 39 | 40 | /** 41 | * Test the property 'version' 42 | */ 43 | @Test 44 | public void versionTest() { 45 | // TODO: test version 46 | } 47 | 48 | } 49 | --------------------------------------------------------------------------------