Skip to content

Commit

Permalink
.cobra.yaml .codeclimate.yml FUNDING.yml BUG-REPORT.yml DESIGN-DOC.ym…
Browse files Browse the repository at this point in the history
…l FEATURE-REQUEST.yml config.yml auto_assign.yml config.yml ci.yaml closed_references.yml codeql-analysis.yml conventional_commits.yml cve-scan.yaml labels.yml milestone.yml stale.yml .golangci.yml .goreleaser.yml .orycli.yml gen.go.yml gen.typescript.yml health.yaml meta.yaml oauth2.yaml .travis.yml client.go client_test.go doc.go error.go handler.go handler_test.go manager.go manager_test_helpers.go registry.go sdk_test.go validator.go validator_test.go error.go handler.go handler_client.go handler_helper.go handler_import_jwk_test.go handler_introspection.go handler_janitor.go handler_janitor_test.go handler_jwk.go handler_jwk_test.go handler_migrate.go handler_token.go main.go clients.go clients_create.go clients_delete.go clients_get.go clients_import.go clients_list.go clients_update.go cmd_delete_tokens.go cmd_perform_authorization_code.go helper.go helper_test.go janitor.go keys.go keys_create.go keys_delete.go keys_get.go keys_import.go migrate.go migrate_sql.go root.go root_test.go serve.go serve_admin.go serve_all.go serve_public.go banner.go handler.go helper_cert.go helper_cert_test.go token.go token_client.go token_delete.go token_introspect.go token_revoke.go version.go codecov.yml doc.go handler.go handler_test.go helper.go helper_test.go janitor_consent_test_helper.go manager.go manager_test_helpers.go registry.go sdk_test.go strategy.go strategy_default.go strategy_default_test.go strategy_logout_test.go strategy_oauth_test.go subject_identifier_algorithm.go subject_identifier_algorithm_pairwise.go subject_identifier_algorithm_public.go types.go types_test.go hydra.yml gitlab.rb quickstart-gitlab.yml index.js client_create.js grant_jwtbearer.js authorize_code.js authorize_error.js client_creds.js consent.js grant_jwtbearer.js introspect.js jwt.js refresh_token.js authorize_code.js dynamic_client_registration.js logout.js prompt.js revoke.js userinfo.js index.js commands.js index.js doc.go buildinfo.go helper.go provider.go provider_test.go serve.go tls.go factory.go registry.go registry_base.go registry_base_test.go registry_nosqlite.go registry_sql.go registry_sql_test.go registry_sqlite.go go_mod_indirect_pins.go doc.go crypto11_mock_test.go hsm.go hsm_mock_test.go manager_hsm.go manager_hsm_test.go manager_nohsm.go .hydra.yaml config.yaml driver.go fosite_store.go api_admin.go api_public.go model_completed_request.go model_default_session.go model_flush_inactive_o_auth2_tokens_request.go model_flush_login_consent_request.go model_oauth2_token_response.go model_request_was_handled_response.go .travis.yml openapi.yaml api_metadata.go client.go accept_consent_request_parameters.go accept_consent_request_responses.go accept_login_request_parameters.go accept_login_request_responses.go accept_logout_request_parameters.go accept_logout_request_responses.go admin_client.go create_json_web_key_set_parameters.go create_json_web_key_set_responses.go create_o_auth2_client_parameters.go create_o_auth2_client_responses.go delete_json_web_key_parameters.go delete_json_web_key_responses.go delete_json_web_key_set_parameters.go delete_json_web_key_set_responses.go delete_o_auth2_client_parameters.go delete_o_auth2_client_responses.go delete_o_auth2_token_parameters.go delete_o_auth2_token_responses.go delete_trusted_jwt_grant_issuer_parameters.go delete_trusted_jwt_grant_issuer_responses.go flush_inactive_o_auth2_tokens_parameters.go flush_inactive_o_auth2_tokens_responses.go get_consent_request_parameters.go get_consent_request_responses.go get_json_web_key_parameters.go get_json_web_key_responses.go get_json_web_key_set_parameters.go get_json_web_key_set_responses.go get_login_request_parameters.go get_login_request_responses.go get_logout_request_parameters.go get_logout_request_responses.go get_o_auth2_client_parameters.go get_o_auth2_client_responses.go get_trusted_jwt_grant_issuer_parameters.go get_trusted_jwt_grant_issuer_responses.go get_version_parameters.go get_version_responses.go introspect_o_auth2_token_parameters.go introspect_o_auth2_token_responses.go is_instance_alive_parameters.go is_instance_alive_responses.go list_o_auth2_clients_parameters.go list_o_auth2_clients_responses.go list_subject_consent_sessions_parameters.go list_subject_consent_sessions_responses.go list_trusted_jwt_grant_issuers_parameters.go list_trusted_jwt_grant_issuers_responses.go patch_o_auth2_client_parameters.go patch_o_auth2_client_responses.go reject_consent_request_parameters.go reject_consent_request_responses.go reject_login_request_parameters.go reject_login_request_responses.go reject_logout_request_parameters.go reject_logout_request_responses.go revoke_authentication_session_parameters.go revoke_authentication_session_responses.go revoke_consent_sessions_parameters.go revoke_consent_sessions_responses.go trust_jwt_grant_issuer_parameters.go trust_jwt_grant_issuer_responses.go update_json_web_key_parameters.go update_json_web_key_responses.go update_json_web_key_set_parameters.go update_json_web_key_set_responses.go update_o_auth2_client_lifespans_parameters.go update_o_auth2_client_lifespans_responses.go update_o_auth2_client_parameters.go update_o_auth2_client_responses.go ory_hydra_client.go disconnect_user_parameters.go disconnect_user_responses.go discover_open_id_configuration_parameters.go discover_open_id_configuration_responses.go dynamic_client_registration_create_o_auth2_client_parameters.go dynamic_client_registration_create_o_auth2_client_responses.go dynamic_client_registration_delete_o_auth2_client_parameters.go dynamic_client_registration_delete_o_auth2_client_responses.go dynamic_client_registration_get_o_auth2_client_parameters.go dynamic_client_registration_get_o_auth2_client_responses.go dynamic_client_registration_update_o_auth2_client_parameters.go dynamic_client_registration_update_o_auth2_client_responses.go is_instance_ready_parameters.go is_instance_ready_responses.go oauth2_token_parameters.go oauth2_token_responses.go oauth_auth_parameters.go oauth_auth_responses.go public_client.go revoke_o_auth2_token_parameters.go revoke_o_auth2_token_responses.go userinfo_parameters.go userinfo_responses.go well_known_parameters.go well_known_responses.go configuration.go model_accept_o_auth2_consent_request.go model_accept_o_auth2_consent_request_session.go model_accept_o_auth2_login_request.go model_admin_create_json_web_key_set_body.go model_admin_trust_o_auth2_jwt_grant_issuer_body.go model_generic_error.go model_get_version_200_response.go model_headers.go model_health_not_ready_status.go model_health_status.go model_id_token_claims.go model_introspected_o_auth2_token.go model_is_ready_200_response.go model_is_ready_503_response.go model_json_patch.go model_json_web_key.go model_json_web_key_set.go model_o_auth2_access_request.go model_o_auth2_api_error.go model_o_auth2_client.go model_o_auth2_consent_request.go model_o_auth2_consent_request_open_id_connect_context.go model_o_auth2_consent_session.go model_o_auth2_login_request.go model_o_auth2_logout_request.go model_o_auth2_token_response.go model_oidc_configuration.go model_oidc_user_info.go model_previous_o_auth2_consent_session.go model_refresh_token_hook_request.go model_refresh_token_hook_response.go model_reject_o_auth2_request.go model_trusted_o_auth2_jwt_grant_issuer.go model_trusted_o_auth2_jwt_grant_json_web_key.go model_update_o_auth2_client_lifespans.go model_version.go accept_consent_request.go accept_login_request.go completed_request.go consent_request.go consent_request_session.go default_session.go flush_inactive_o_auth2_tokens_request.go flush_login_consent_request.go generic_error.go headers.go health_not_ready_status.go health_status.go id_token_claims.go jose_json_web_key_set.go json_error.go json_raw_message.go json_web_key.go json_web_key_set.go json_web_key_set_generator_request.go login_request.go logout_request.go null_duration.go null_time.go o_auth2_access_request.go o_auth2_client.go o_auth2_token_introspection.go oauth2_token_response.go oauth_token_response.go open_id_connect_context.go patch_document.go patch_request.go previous_consent_session.go refresh_token_hook_request.go refresh_token_hook_response.go reject_request.go request_was_handled_response.go session.go string_slice_pipe_delimiter.go trust_jwt_grant_issuer_body.go trusted_json_web_key.go trusted_jwt_grant_issuer.go trusted_jwt_grant_issuers.go update_o_auth2_client_lifespans.go userinfo_response.go uuid.go version.go well_known.go response.go utils.go mock_generator_rs256.go janitor_test_helper.go lifespans.go oauth2.go server.go time.go aead.go aead_test.go cast.go cast_test.go doc.go generator.go generator_ecdsa256.go generator_ecdsa521.go generator_eddsa.go generator_hs256.go generator_hs512.go generator_rs256.go generator_test.go handler.go handler_test.go helper.go helper_test.go jwt_strategy.go jwt_strategy_test.go manager.go manager_mock_test.go manager_strategy.go manager_strategy_test.go manager_test_helpers.go registry.go registry_mock_test.go sdk_test.go main.go doc.go equalKeys.go equalKeys_test.go fosite_store_helpers.go fosite_store_test.go handler.go handler_fallback_endpoints.go handler_fallback_endpoints_test.go handler_test.go helper_test.go hook.go introspector.go introspector_test.go oauth2_auth_code_test.go oauth2_client_credentials_test.go oauth2_helper_test.go oauth2_provider_mock_test.go oauth2_refresh_token_test.go registry.go revocator_test.go session.go session_custom_claims_test.go doc.go error.go grant.go handler.go handler_test.go manager.go manager_test_helpers.go registry.go request.go validator.go validator_test.go definitions.go assertion_helpers.go exptected_data.go migration_test.go persister.go persister_client.go persister_consent.go persister_grant_jwk.go persister_jwk.go persister_migration.go persister_oauth2.go persister_test.go quickstart-cockroach.yml quickstart-cors.yml quickstart-debug.yml quickstart-hsm.yml quickstart-jwt.yml quickstart-mysql.yml quickstart-postgres.yml quickstart-prometheus-config.yml quickstart-prometheus.yml quickstart-tracing.yml quickstart.yml api.go config.go docker-compose.yml hydra.yml run_test.go docker-compose.cockroach.yml docker-compose.jwt.yml docker-compose.mysql.yml docker-compose.postgres.yml docker-compose.yml index.js main.go main.go main.go audit.go audit_test.go authenticator.go basic_auth.go clean_sql.go const.go doc.go doc_swagger.go error_enhancer.go error_enhancer_test.go errors.go errors_test.go fosite_storer.go hasher.go hasher_test.go jwt.go cors.go cors_test.go redirect_uri.go redirect_uri_test.go registry.go router.go router_test.go secret.go sqlx.go swagger.go test_helpers.go tls_termination.go tls_termination_test.go
  • Loading branch information
kevgo committed Sep 9, 2022
1 parent c16ffb4 commit 016abc7
Show file tree
Hide file tree
Showing 485 changed files with 34,926 additions and 39 deletions.
2 changes: 2 additions & 0 deletions .cobra.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# Copyright © 2022 Ory Corp Inc.

author: Aeneas Rekkas <aeneas@ory.am>
license: Apache License Version 2.0
2 changes: 2 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright © 2022 Ory Corp Inc.

engines:
govet:
enabled: true
Expand Down
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright © 2022 Ory Corp Inc.

# These are supported funding model platforms

# github:
Expand Down
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/BUG-REPORT.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright © 2022 Ory Corp Inc.

description: "Create a bug report"
labels:
- bug
Expand Down
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/DESIGN-DOC.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright © 2022 Ory Corp Inc.

description:
"A design document is needed for non-trivial changes to the code base."
labels:
Expand Down
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/FEATURE-REQUEST.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright © 2022 Ory Corp Inc.

description:
"Suggest an idea for this project without a plan for implementation"
labels:
Expand Down
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright © 2022 Ory Corp Inc.

blank_issues_enabled: false
contact_links:
- name: Ory Hydra Forum
Expand Down
2 changes: 2 additions & 0 deletions .github/auto_assign.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright © 2022 Ory Corp Inc.

# Set to true to add reviewers to pull requests
addReviewers: true

Expand Down
2 changes: 2 additions & 0 deletions .github/config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright © 2022 Ory Corp Inc.

todo:
keyword: "@todo"
label: todo
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright © 2022 Ory Corp Inc.

name: CI Tasks for Ory Hydra
on:
push:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/closed_references.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright © 2022 Ory Corp Inc.

name: Closed Reference Notifier

on:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright © 2022 Ory Corp Inc.

# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/conventional_commits.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright © 2022 Ory Corp Inc.

name: Conventional commits

# This GitHub CI Action enforces that pull request titles follow conventional commits.
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/cve-scan.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright © 2022 Ory Corp Inc.

name: Docker Image Scanners
on:
push:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/labels.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright © 2022 Ory Corp Inc.

name: Synchronize Issue Labels

on:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/milestone.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright © 2022 Ory Corp Inc.

name: Generate and Publish Milestone Document

on:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright © 2022 Ory Corp Inc.

name: "Close Stale Issues"
on:
workflow_dispatch:
Expand Down
2 changes: 2 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright © 2022 Ory Corp Inc.

linters:
enable:
- gosec
Expand Down
2 changes: 2 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright © 2022 Ory Corp Inc.

includes:
- from_url:
url: https://raw.githubusercontent.com/ory/xgoreleaser/master/build.tmpl.yml
Expand Down
2 changes: 2 additions & 0 deletions .orycli.yml
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# Copyright © 2022 Ory Corp Inc.

project: hydra
2 changes: 2 additions & 0 deletions .schema/openapi/gen.go.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright © 2022 Ory Corp Inc.

disallowAdditionalPropertiesIfNotPresent: true
packageName: client
generateInterfaces: true
Expand Down
2 changes: 2 additions & 0 deletions .schema/openapi/gen.typescript.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright © 2022 Ory Corp Inc.

npmName: "@ory/kratos-client"
npmVersion: 0.0.0
# typescriptThreePlus: true
Expand Down
2 changes: 2 additions & 0 deletions .schema/openapi/patches/health.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright © 2022 Ory Corp Inc.

- op: replace
path: /paths/~1health~1alive
value:
Expand Down
2 changes: 2 additions & 0 deletions .schema/openapi/patches/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright © 2022 Ory Corp Inc.

- op: replace
path: /info
value:
Expand Down
2 changes: 2 additions & 0 deletions .schema/openapi/patches/oauth2.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright © 2022 Ory Corp Inc.

- op: remove
path: /components/schemas/acceptOAuth2ConsentRequestSession/properties/access_token/additionalProperties
- op: remove
Expand Down
10 changes: 10 additions & 0 deletions .schema/openapi/templates/go/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright © 2022 Ory Corp Inc.

language: go

install:
- go get -d -v .

script:
- go build -v ./

2 changes: 2 additions & 0 deletions client/client.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright © 2022 Ory Corp Inc.

/*
* Copyright © 2015-2018 Aeneas Rekkas <aeneas+oss@aeneas.io>
*
Expand Down
2 changes: 2 additions & 0 deletions client/client_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright © 2022 Ory Corp Inc.

/*
* Copyright © 2015-2018 Aeneas Rekkas <aeneas+oss@aeneas.io>
*
Expand Down
201 changes: 201 additions & 0 deletions client/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
// Copyright © 2022 Ory Corp Inc.

/*
* Copyright © 2015-2018 Aeneas Rekkas <aeneas+oss@aeneas.io>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* @author Aeneas Rekkas <aeneas+oss@aeneas.io>
* @copyright 2015-2018 Aeneas Rekkas <aeneas+oss@aeneas.io>
* @license Apache-2.0
*/

// Package client implements OAuth 2.0 client management capabilities
//
// OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are granted
// to applications that want to use OAuth 2.0 access and refresh tokens.
//
// In ORY Hydra, OAuth 2.0 clients are used to manage ORY Hydra itself. These clients may gain highly privileged access
// if configured that way. This endpoint should be well protected and only called by code you trust.
//

package client

import (
"github.com/ory/hydra/x"
)

// swagger:parameters createOAuth2Client dynamicClientRegistrationCreateOAuth2Client
type dynamicClientRegistrationCreateOAuth2Client struct {
// in: body
// required: true
Body Client
}

// swagger:parameters updateOAuth2Client
type swaggerUpdateClientPayload struct {
// The id of the OAuth 2.0 Client.
//
// in: path
// required: true
ID string `json:"id"`

// in: body
// required: true
Body Client
}

// swagger:parameters dynamicClientRegistrationUpdateOAuth2Client
type dynamicClientRegistrationUpdateOAuth2Client struct {
// The id of the OAuth 2.0 Client.
//
// in: path
// required: true
ID string `json:"id"`

// in: body
// required: true
Body Client
}

// swagger:parameters patchOAuth2Client
type swaggerPatchClientPayload struct {
// The id of the OAuth 2.0 Client.
//
// in: path
// required: true
ID string `json:"id"`

// in: body
// required: true
Body patchRequest
}

// A JSONPatch request
//
// swagger:model patchRequest
type patchRequest []patchDocument

// A JSONPatch document as defined by RFC 6902
//
// swagger:model patchDocument
type patchDocument struct {
// The operation to be performed
//
// required: true
// example: "replace"
Op string `json:"op"`

// A JSON-pointer
//
// required: true
// example: "/name"
Path string `json:"path"`

// The value to be used within the operations
Value interface{} `json:"value"`

// A JSON-pointer
From string `json:"from"`
}

// A list of clients.
// swagger:response oAuth2ClientList
type swaggerListClientsResult struct {
// in: body
// type: array
Body []Client
}

// swagger:parameters getOAuth2Client
type swaggerGetOAuth2Client struct {
// The id of the OAuth 2.0 Client.
//
// in: path
// required: true
ID string `json:"id"`
}

// swagger:parameters dynamicClientRegistrationGetOAuth2Client
type dynamicClientRegistrationGetOAuth2Client struct {
// The id of the OAuth 2.0 Client.
//
// in: path
// required: true
ID string `json:"id"`
}

// swagger:parameters deleteOAuth2Client
type swaggerDeleteOAuth2Client struct {
// The id of the OAuth 2.0 Client.
//
// in: path
// required: true
ID string `json:"id"`
}

// swagger:parameters UpdateOAuth2ClientLifespans
type swaggerUpdateOAuth2ClientLifespans struct {
// The id of the OAuth 2.0 Client.
//
// in: path
// required: true
ID string `json:"id"`

// in: body
Body UpdateOAuth2ClientLifespans
}

// UpdateOAuth2ClientLifespans holds default lifespan configuration for the different
// token types that may be issued for the client. This configuration takes
// precedence over fosite's instance-wide default lifespan, but it may be
// overridden by a session's expires_at claim.
//
// The OIDC Hybrid grant type inherits token lifespan configuration from the implicit grant.
//
// swagger:model UpdateOAuth2ClientLifespans
type UpdateOAuth2ClientLifespans struct {
// AuthorizationCodeGrantAccessTokenLifespan configures this client's lifespan and takes precedence over instance-wide configuration
AuthorizationCodeGrantAccessTokenLifespan x.NullDuration `json:"authorization_code_grant_access_token_lifespan"`
// AuthorizationCodeGrantIDTokenLifespan configures this client's lifespan and takes precedence over instance-wide configuration
AuthorizationCodeGrantIDTokenLifespan x.NullDuration `json:"authorization_code_grant_id_token_lifespan"`
// AuthorizationCodeGrantRefreshTokenLifespan configures this client's lifespan and takes precedence over instance-wide configuration
AuthorizationCodeGrantRefreshTokenLifespan x.NullDuration `json:"authorization_code_grant_refresh_token_lifespan"`
// ClientCredentialsGrantAccessTokenLifespan configures this client's lifespan and takes precedence over instance-wide configuration
ClientCredentialsGrantAccessTokenLifespan x.NullDuration `json:"client_credentials_grant_access_token_lifespan"`
// ImplicitGrantAccessTokenLifespan configures this client's lifespan and takes precedence over instance-wide configuration
ImplicitGrantAccessTokenLifespan x.NullDuration `json:"implicit_grant_access_token_lifespan"`
// ImplicitGrantIDTokenLifespan configures this client's lifespan and takes precedence over instance-wide configuration
ImplicitGrantIDTokenLifespan x.NullDuration `json:"implicit_grant_id_token_lifespan"`
// JwtBearerGrantAccessTokenLifespan configures this client's lifespan and takes precedence over instance-wide configuration
JwtBearerGrantAccessTokenLifespan x.NullDuration `json:"jwt_bearer_grant_access_token_lifespan"`
// PasswordGrantAccessTokenLifespan configures this client's lifespan and takes precedence over instance-wide configuration
PasswordGrantAccessTokenLifespan x.NullDuration `json:"password_grant_access_token_lifespan"`
// PasswordGrantRefreshTokenLifespan configures this client's lifespan and takes precedence over instance-wide configuration
PasswordGrantRefreshTokenLifespan x.NullDuration `json:"password_grant_refresh_token_lifespan"`
// RefreshTokenGrantIDTokenLifespan configures this client's lifespan and takes precedence over instance-wide configuration
RefreshTokenGrantIDTokenLifespan x.NullDuration `json:"refresh_token_grant_id_token_lifespan"`
// RefreshTokenGrantAccessTokenLifespan configures this client's lifespan and takes precedence over instance-wide configuration
RefreshTokenGrantAccessTokenLifespan x.NullDuration `json:"refresh_token_grant_access_token_lifespan"`
// RefreshTokenGrantRefreshTokenLifespan configures this client's lifespan and takes precedence over instance-wide configuration
RefreshTokenGrantRefreshTokenLifespan x.NullDuration `json:"refresh_token_grant_refresh_token_lifespan"`
}

// swagger:parameters dynamicClientRegistrationDeleteOAuth2Client
type dynamicClientRegistrationDeleteOAuth2Client struct {
// The id of the OAuth 2.0 Client.
//
// in: path
// required: true
ID string `json:"id"`
}
2 changes: 2 additions & 0 deletions client/error.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright © 2022 Ory Corp Inc.

package client

import (
Expand Down
2 changes: 2 additions & 0 deletions client/handler.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright © 2022 Ory Corp Inc.

/*
* Copyright © 2015-2018 Aeneas Rekkas <aeneas+oss@aeneas.io>
*
Expand Down
2 changes: 2 additions & 0 deletions client/handler_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright © 2022 Ory Corp Inc.

package client_test

import (
Expand Down
2 changes: 2 additions & 0 deletions client/manager.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright © 2022 Ory Corp Inc.

/*
* Copyright © 2015-2018 Aeneas Rekkas <aeneas+oss@aeneas.io>
*
Expand Down
Loading

0 comments on commit 016abc7

Please sign in to comment.