language stringlengths 0 24 | filename stringlengths 9 214 | code stringlengths 99 9.93M |
|---|---|---|
Go | hydra/internal/httpclient/model_o_auth2_redirect_to.go | /*
Ory Hydra API
Documentation for all of Ory Hydra's APIs.
API version:
Contact: hi@ory.sh
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
)
// OAuth2RedirectTo Contains a redirect URL used to complete a login, consent, or logout ... |
Go | hydra/internal/httpclient/model_o_auth2_token_exchange.go | /*
Ory Hydra API
Documentation for all of Ory Hydra's APIs.
API version:
Contact: hi@ory.sh
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
)
// OAuth2TokenExchange OAuth2 Token Exchange Result
type OAuth2TokenExchange struct {
//... |
Go | hydra/internal/httpclient/model_pagination.go | /*
Ory Hydra API
Documentation for all of Ory Hydra's APIs.
API version:
Contact: hi@ory.sh
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
)
// Pagination struct for Pagination
type Pagination struct {
// Items per page This is ... |
Go | hydra/internal/httpclient/model_pagination_headers.go | /*
Ory Hydra API
Documentation for all of Ory Hydra's APIs.
API version:
Contact: hi@ory.sh
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
)
// PaginationHeaders struct for PaginationHeaders
type PaginationHeaders struct {
// The... |
Go | hydra/internal/httpclient/model_reject_o_auth2_request.go | /*
Ory Hydra API
Documentation for all of Ory Hydra's APIs.
API version:
Contact: hi@ory.sh
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
)
// RejectOAuth2Request struct for RejectOAuth2Request
type RejectOAuth2Request struct {
... |
Go | hydra/internal/httpclient/model_rfc6749_error_json.go | /*
Ory Hydra API
Documentation for all of Ory Hydra's APIs.
API version:
Contact: hi@ory.sh
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
)
// RFC6749ErrorJson struct for RFC6749ErrorJson
type RFC6749ErrorJson struct {
Error ... |
Go | hydra/internal/httpclient/model_token_pagination.go | /*
Ory Hydra API
Documentation for all of Ory Hydra's APIs.
API version:
Contact: hi@ory.sh
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
)
// TokenPagination struct for TokenPagination
type TokenPagination struct {
// Items per... |
Go | hydra/internal/httpclient/model_token_pagination_headers.go | /*
Ory Hydra API
Documentation for all of Ory Hydra's APIs.
API version:
Contact: hi@ory.sh
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
)
// TokenPaginationHeaders struct for TokenPaginationHeaders
type TokenPaginationHeaders s... |
Go | hydra/internal/httpclient/model_token_pagination_request_parameters.go | /*
Ory Hydra API
Documentation for all of Ory Hydra's APIs.
API version:
Contact: hi@ory.sh
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
)
// TokenPaginationRequestParameters The `Link` HTTP header contains multiple links (`firs... |
Go | hydra/internal/httpclient/model_token_pagination_response_headers.go | /*
Ory Hydra API
Documentation for all of Ory Hydra's APIs.
API version:
Contact: hi@ory.sh
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
)
// TokenPaginationResponseHeaders The `Link` HTTP header contains multiple links (`first`... |
Go | hydra/internal/httpclient/model_trusted_o_auth2_jwt_grant_issuer.go | /*
Ory Hydra API
Documentation for all of Ory Hydra's APIs.
API version:
Contact: hi@ory.sh
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
"time"
)
// TrustedOAuth2JwtGrantIssuer OAuth2 JWT Bearer Grant Type Issuer Trust Relation... |
Go | hydra/internal/httpclient/model_trusted_o_auth2_jwt_grant_json_web_key.go | /*
Ory Hydra API
Documentation for all of Ory Hydra's APIs.
API version:
Contact: hi@ory.sh
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
)
// TrustedOAuth2JwtGrantJsonWebKey OAuth2 JWT Bearer Grant Type Issuer Trusted JSON Web K... |
Go | hydra/internal/httpclient/model_trust_o_auth2_jwt_grant_issuer.go | /*
Ory Hydra API
Documentation for all of Ory Hydra's APIs.
API version:
Contact: hi@ory.sh
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
"time"
)
// TrustOAuth2JwtGrantIssuer Trust OAuth2 JWT Bearer Grant Type Issuer Request Bo... |
Go | hydra/internal/httpclient/model_verifiable_credential_priming_response.go | /*
Ory Hydra API
Documentation for all of Ory Hydra's APIs.
API version:
Contact: hi@ory.sh
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
)
// VerifiableCredentialPrimingResponse struct for VerifiableCredentialPrimingResponse
typ... |
Go | hydra/internal/httpclient/model_verifiable_credential_proof.go | /*
Ory Hydra API
Documentation for all of Ory Hydra's APIs.
API version:
Contact: hi@ory.sh
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
)
// VerifiableCredentialProof struct for VerifiableCredentialProof
type VerifiableCredenti... |
Go | hydra/internal/httpclient/model_verifiable_credential_response.go | /*
Ory Hydra API
Documentation for all of Ory Hydra's APIs.
API version:
Contact: hi@ory.sh
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
)
// VerifiableCredentialResponse struct for VerifiableCredentialResponse
type VerifiableCr... |
Go | hydra/internal/httpclient/model_version.go | /*
Ory Hydra API
Documentation for all of Ory Hydra's APIs.
API version:
Contact: hi@ory.sh
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
)
// Version struct for Version
type Version struct {
// Version is the service's version.... |
Markdown | hydra/internal/httpclient/README.md | # Go API client for openapi
Documentation for all of Ory Hydra's APIs.
## Overview
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.
- API version:
- ... |
Go | hydra/internal/httpclient/response.go | /*
Ory Hydra API
Documentation for all of Ory Hydra's APIs.
API version:
Contact: hi@ory.sh
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"net/http"
)
// APIResponse stores the API response returned by the server.
type APIResponse struct {
*htt... |
Go | hydra/internal/httpclient/utils.go | /*
Ory Hydra API
Documentation for all of Ory Hydra's APIs.
API version:
Contact: hi@ory.sh
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
"time"
)
// PtrBool is a helper routine that returns a pointer to given boolean value.
fun... |
hydra/internal/httpclient/.openapi-generator/FILES | .gitignore
.openapi-generator-ignore
.travis.yml
README.md
api/openapi.yaml
api_jwk.go
api_metadata.go
api_o_auth2.go
api_oidc.go
api_wellknown.go
client.go
configuration.go
docs/AcceptOAuth2ConsentRequest.md
docs/AcceptOAuth2ConsentRequestSession.md
docs/AcceptOAuth2LoginRequest.md
docs/CreateJsonWebKeySet.md
docs/Cre... | |
YAML | hydra/internal/httpclient/api/openapi.yaml | openapi: 3.0.3
info:
contact:
email: hi@ory.sh
description: |
Documentation for all of Ory Hydra's APIs.
license:
name: Apache 2.0
title: Ory Hydra API
version: ""
servers:
- url: /
tags:
- description: OAuth 2.0
name: oAuth2
- description: OpenID Connect
name: oidc
- description: JSON Web Key... |
Markdown | hydra/internal/httpclient/docs/AcceptOAuth2ConsentRequest.md | # AcceptOAuth2ConsentRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**GrantAccessTokenAudience** | Pointer to **[]string** | | [optional]
**GrantScope** | Pointer to **[]string** | | [optional]
**HandledAt** | Pointer to **time.Time** | | [opt... |
Markdown | hydra/internal/httpclient/docs/AcceptOAuth2ConsentRequestSession.md | # AcceptOAuth2ConsentRequestSession
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**AccessToken** | Pointer to **interface{}** | AccessToken sets session data for the access and refresh token, as well as any future tokens issued by the refresh grant. Keep... |
Markdown | hydra/internal/httpclient/docs/AcceptOAuth2LoginRequest.md | # AcceptOAuth2LoginRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Acr** | Pointer to **string** | ACR sets the Authentication AuthorizationContext Class Reference value for this authentication session. You can use it to express that, for example,... |
Markdown | hydra/internal/httpclient/docs/CreateJsonWebKeySet.md | # CreateJsonWebKeySet
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Alg** | **string** | JSON Web Key Algorithm The algorithm to be used for creating the key. Supports `RS256`, `ES256`, `ES512`, `HS512`, and ... |
Markdown | hydra/internal/httpclient/docs/CreateVerifiableCredentialRequestBody.md | # CreateVerifiableCredentialRequestBody
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Format** | Pointer to **string** | | [optional]
**Proof** | Pointer to [**VerifiableCredentialProof**](VerifiableCredentialProof.md) | | [optional]
**Types** | Poi... |
Markdown | hydra/internal/httpclient/docs/CredentialSupportedDraft00.md | # CredentialSupportedDraft00
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**CryptographicBindingMethodsSupported** | Pointer to **[]string** | OpenID Connect Verifiable Credentials Cryptographic Binding Methods Supported Contains a list of cryptographic... |
Markdown | hydra/internal/httpclient/docs/ErrorOAuth2.md | # ErrorOAuth2
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Error** | Pointer to **string** | Error | [optional]
**ErrorDebug** | Pointer to **string** | Error Debug Information Only available in dev mode. | [optional]
**ErrorDescription** | Pointer ... |
Markdown | hydra/internal/httpclient/docs/GenericError.md | # GenericError
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Code** | Pointer to **int64** | The status code | [optional]
**Debug** | Pointer to **string** | Debug information This field is often not exposed to protect against leaking sensitive inform... |
Markdown | hydra/internal/httpclient/docs/GetVersion200Response.md | # GetVersion200Response
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Version** | Pointer to **string** | The version of Ory Hydra. | [optional]
## Methods
### NewGetVersion200Response
`func NewGetVersion200Response() *GetVersion200Response`
NewGet... |
Markdown | hydra/internal/httpclient/docs/HealthNotReadyStatus.md | # HealthNotReadyStatus
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Errors** | Pointer to **map[string]string** | Errors contains a list of errors that caused the not ready status. | [optional]
## Methods
### NewHealthNotReadyStatus
`func NewHealth... |
Markdown | hydra/internal/httpclient/docs/HealthStatus.md | # HealthStatus
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Status** | Pointer to **string** | Status always contains \"ok\". | [optional]
## Methods
### NewHealthStatus
`func NewHealthStatus() *HealthStatus`
NewHealthStatus instantiates... |
Markdown | hydra/internal/httpclient/docs/IntrospectedOAuth2Token.md | # IntrospectedOAuth2Token
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Active** | **bool** | 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 d... |
Markdown | hydra/internal/httpclient/docs/IsReady200Response.md | # IsReady200Response
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Status** | Pointer to **string** | Always \"ok\". | [optional]
## Methods
### NewIsReady200Response
`func NewIsReady200Response() *IsReady200Response`
NewIsReady200Respons... |
Markdown | hydra/internal/httpclient/docs/IsReady503Response.md | # IsReady503Response
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Errors** | Pointer to **map[string]string** | Errors contains a list of errors that caused the not ready status. | [optional]
## Methods
### NewIsReady503Response
`func NewIsReady503... |
Markdown | hydra/internal/httpclient/docs/JsonPatch.md | # JsonPatch
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**From** | Pointer to **string** | This field is used together with operation \"move\" and uses JSON Pointer notation. Learn more [about JSON Pointers](https://datatracker.ietf.org/doc/h... |
Markdown | hydra/internal/httpclient/docs/JsonWebKey.md | # JsonWebKey
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**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 ... |
Markdown | hydra/internal/httpclient/docs/JsonWebKeySet.md | # JsonWebKeySet
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Keys** | Pointer to [**[]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... |
Markdown | hydra/internal/httpclient/docs/JwkApi.md | # \JwkApi
All URIs are relative to *http://localhost*
Method | HTTP request | Description
------------- | ------------- | -------------
[**CreateJsonWebKeySet**](JwkApi.md#CreateJsonWebKeySet) | **Post** /admin/keys/{set} | Create JSON Web Key
[**DeleteJsonWebKey**](JwkApi.md#DeleteJsonWebKey) | **Delete** /admin/key... |
Markdown | hydra/internal/httpclient/docs/MetadataApi.md | # \MetadataApi
All URIs are relative to *http://localhost*
Method | HTTP request | Description
------------- | ------------- | -------------
[**GetVersion**](MetadataApi.md#GetVersion) | **Get** /version | Return Running Software Version.
[**IsAlive**](MetadataApi.md#IsAlive) | **Get** /health/alive | Check HTTP Serv... |
Markdown | hydra/internal/httpclient/docs/OAuth2Api.md | # \OAuth2Api
All URIs are relative to *http://localhost*
Method | HTTP request | Description
------------- | ------------- | -------------
[**AcceptOAuth2ConsentRequest**](OAuth2Api.md#AcceptOAuth2ConsentRequest) | **Put** /admin/oauth2/auth/requests/consent/accept | Accept OAuth 2.0 Consent Request
[**AcceptOAuth2Lo... |
Markdown | hydra/internal/httpclient/docs/OAuth2Client.md | # OAuth2Client
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**AccessTokenStrategy** | Pointer to **string** | OAuth 2.0 Access Token Strategy AccessTokenStrategy is the strategy used to generate access tokens. Valid options are `jwt` and `... |
Markdown | hydra/internal/httpclient/docs/OAuth2ClientTokenLifespans.md | # OAuth2ClientTokenLifespans
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**AuthorizationCodeGrantAccessTokenLifespan** | Pointer to **string** | Specify a time duration in milliseconds, seconds, minutes, hours. | [optional]
**AuthorizationCodeGrantIdTo... |
Markdown | hydra/internal/httpclient/docs/OAuth2ConsentRequest.md | # OAuth2ConsentRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Acr** | Pointer to **string** | ACR represents the Authentication AuthorizationContext Class Reference value for this authentication session. You can use it to express that, for exampl... |
Markdown | hydra/internal/httpclient/docs/OAuth2ConsentRequestOpenIDConnectContext.md | # OAuth2ConsentRequestOpenIDConnectContext
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**AcrValues** | Pointer to **[]string** | ACRValues is the Authentication AuthorizationContext Class Reference requested in the OAuth 2.0 Authorization request. It is... |
Markdown | hydra/internal/httpclient/docs/OAuth2ConsentSession.md | # OAuth2ConsentSession
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ConsentRequest** | Pointer to [**OAuth2ConsentRequest**](OAuth2ConsentRequest.md) | | [optional]
**ExpiresAt** | Pointer to [**OAuth2ConsentSessionExpiresAt**](OAuth2ConsentSessionEx... |
Markdown | hydra/internal/httpclient/docs/OAuth2ConsentSessionExpiresAt.md | # OAuth2ConsentSessionExpiresAt
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**AccessToken** | Pointer to **time.Time** | | [optional]
**AuthorizeCode** | Pointer to **time.Time** | | [optional]
**IdToken** | Pointer to **time.Time** | | [optional] ... |
Markdown | hydra/internal/httpclient/docs/OAuth2LoginRequest.md | # OAuth2LoginRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Challenge** | **string** | ID is the identifier (\"login challenge\") of the login request. It is used to identify the session. |
**Client** | [**OAuth2Client**](OAuth2Client.... |
Markdown | hydra/internal/httpclient/docs/OAuth2LogoutRequest.md | # OAuth2LogoutRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Challenge** | Pointer to **string** | Challenge is the identifier (\"logout challenge\") of the logout authentication request. It is used to identify the session. | [optional]... |
Markdown | hydra/internal/httpclient/docs/OAuth2RedirectTo.md | # OAuth2RedirectTo
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**RedirectTo** | **string** | RedirectURL is the URL which you should redirect the user's browser to once the authentication process is completed. |
## Methods
### NewOAuth2RedirectTo... |
Markdown | hydra/internal/httpclient/docs/OAuth2TokenExchange.md | # OAuth2TokenExchange
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**AccessToken** | Pointer to **string** | The access token issued by the authorization server. | [optional]
**ExpiresIn** | Pointer to **int64** | The lifetime in seconds of the access t... |
Markdown | hydra/internal/httpclient/docs/OidcApi.md | # \OidcApi
All URIs are relative to *http://localhost*
Method | HTTP request | Description
------------- | ------------- | -------------
[**CreateOidcDynamicClient**](OidcApi.md#CreateOidcDynamicClient) | **Post** /oauth2/register | Register OAuth2 Client using OpenID Dynamic Client Registration
[**CreateVerifiableCr... |
Markdown | hydra/internal/httpclient/docs/OidcConfiguration.md | # OidcConfiguration
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**AuthorizationEndpoint** | **string** | OAuth 2.0 Authorization Endpoint URL |
**BackchannelLogoutSessionSupported** | Pointer to **bool** | OpenID Connect Back-Channel Logout Session Req... |
Markdown | hydra/internal/httpclient/docs/OidcUserInfo.md | # OidcUserInfo
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Birthdate** | Pointer to **string** | End-User's birthday, represented as an ISO 8601:2004 [ISO8601‑2004] YYYY-MM-DD format. The year MAY be 0000, indicating that it is omitted. To represe... |
Markdown | hydra/internal/httpclient/docs/Pagination.md | # Pagination
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**PageSize** | Pointer to **int64** | 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.s... |
Markdown | hydra/internal/httpclient/docs/PaginationHeaders.md | # PaginationHeaders
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Link** | Pointer to **string** | The link header contains pagination links. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem... |
Markdown | hydra/internal/httpclient/docs/RejectOAuth2Request.md | # RejectOAuth2Request
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Error** | Pointer to **string** | The error should follow the OAuth2 error format (e.g. `invalid_request`, `login_required`). Defaults to `request_denied`... |
Markdown | hydra/internal/httpclient/docs/RFC6749ErrorJson.md | # RFC6749ErrorJson
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Error** | Pointer to **string** | | [optional]
**ErrorDebug** | Pointer to **string** | | [optional]
**ErrorDescription** | Pointer to **string** | | [optional]
**ErrorHint** | Point... |
Markdown | hydra/internal/httpclient/docs/TokenPagination.md | # TokenPagination
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**PageSize** | Pointer to **int64** | 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.... |
Markdown | hydra/internal/httpclient/docs/TokenPaginationHeaders.md | # TokenPaginationHeaders
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Link** | Pointer to **string** | The link header contains pagination links. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecos... |
Markdown | hydra/internal/httpclient/docs/TokenPaginationRequestParameters.md | # TokenPaginationRequestParameters
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**PageSize** | Pointer to **int64** | Items per Page This is the number of items per page to return. For details on pagination please head over to the [pagination documentat... |
Markdown | hydra/internal/httpclient/docs/TokenPaginationResponseHeaders.md | # TokenPaginationResponseHeaders
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Link** | Pointer to **string** | The Link HTTP Header The `Link` header contains a comma-delimited list of links to the following pages: first: The first page of ... |
Markdown | hydra/internal/httpclient/docs/TrustedOAuth2JwtGrantIssuer.md | # TrustedOAuth2JwtGrantIssuer
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**AllowAnySubject** | Pointer to **bool** | The \"allow_any_subject\" indicates that the issuer is allowed to have any principal as the subject of the JWT. | [optional] ... |
Markdown | hydra/internal/httpclient/docs/TrustedOAuth2JwtGrantJsonWebKey.md | # TrustedOAuth2JwtGrantJsonWebKey
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Kid** | Pointer to **string** | The \"key_id\" is key unique identifier (same as kid header in jws/jwt). | [optional]
**Set** | Pointer to **string** | The \"... |
Markdown | hydra/internal/httpclient/docs/TrustOAuth2JwtGrantIssuer.md | # TrustOAuth2JwtGrantIssuer
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**AllowAnySubject** | Pointer to **bool** | The \"allow_any_subject\" indicates that the issuer is allowed to have any principal as the subject of the JWT. | [optional]
*... |
Markdown | hydra/internal/httpclient/docs/VerifiableCredentialPrimingResponse.md | # VerifiableCredentialPrimingResponse
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**CNonce** | Pointer to **string** | | [optional]
**CNonceExpiresIn** | Pointer to **int64** | | [optional]
**Error** | Pointer to **string** | | [optional]
**ErrorD... |
Markdown | hydra/internal/httpclient/docs/VerifiableCredentialProof.md | # VerifiableCredentialProof
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Jwt** | Pointer to **string** | | [optional]
**ProofType** | Pointer to **string** | | [optional]
## Methods
### NewVerifiableCredentialProof
`func NewVerifiableCredentialP... |
Markdown | hydra/internal/httpclient/docs/VerifiableCredentialResponse.md | # VerifiableCredentialResponse
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**CredentialDraft00** | Pointer to **string** | | [optional]
**Format** | Pointer to **string** | | [optional]
## Methods
### NewVerifiableCredentialResponse
`func NewVeri... |
Markdown | hydra/internal/httpclient/docs/Version.md | # Version
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Version** | Pointer to **string** | Version is the service's version. | [optional]
## Methods
### NewVersion
`func NewVersion() *Version`
NewVersion instantiates a new Version object
This ... |
Markdown | hydra/internal/httpclient/docs/WellknownApi.md | # \WellknownApi
All URIs are relative to *http://localhost*
Method | HTTP request | Description
------------- | ------------- | -------------
[**DiscoverJsonWebKeys**](WellknownApi.md#DiscoverJsonWebKeys) | **Get** /.well-known/jwks.json | Discover Well-Known JSON Web Keys
## DiscoverJsonWebKeys
> JsonWebKeySet D... |
Go | hydra/internal/kratos/fake_kratos.go | // Copyright © 2023 Ory Corp
// SPDX-License-Identifier: Apache-2.0
package kratos
import "context"
type (
FakeKratos struct {
DisableSessionWasCalled bool
LastDisabledSession string
}
)
const (
FakeSessionID = "fake-kratos-session-id"
)
var _ Client = new(FakeKratos)
func NewFake() *FakeKratos {
ret... |
Go | hydra/internal/kratos/kratos.go | // Copyright © 2023 Ory Corp
// SPDX-License-Identifier: Apache-2.0
package kratos
import (
"context"
"fmt"
"net/url"
"go.opentelemetry.io/otel/attribute"
"github.com/ory/hydra/v2/driver/config"
"github.com/ory/hydra/v2/x"
client "github.com/ory/kratos-client-go"
"github.com/ory/x/httpx"
"github.com/ory/x... |
Go | hydra/internal/mock/config_cookie.go | // Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/ory/hydra/x (interfaces: CookieConfigProvider)
// Package mock is a generated GoMock package.
package mock
import (
context "context"
http "net/http"
reflect "reflect"
gomock "gi... |
Go | hydra/internal/testhelpers/certs.go | // Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0
package testhelpers
import (
"crypto"
"crypto/rand"
"crypto/rsa"
"crypto/x509"
"encoding/pem"
"os"
"testing"
"github.com/stretchr/testify/require"
"github.com/ory/x/tlsx"
)
// GenerateTLSCertificateFilesForTests writes a new, self-signed... |
Go | hydra/internal/testhelpers/janitor_test_helper.go | // Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0
package testhelpers
import (
"context"
"fmt"
"net/url"
"testing"
"time"
"github.com/go-jose/go-jose/v3"
"github.com/google/uuid"
"github.com/stretchr/testify/require"
"github.com/ory/fosite"
"github.com/ory/fosite/handler/openid"
"githu... |
Go | hydra/internal/testhelpers/lifespans.go | // Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0
package testhelpers
import (
"time"
"github.com/ory/hydra/v2/client"
"github.com/ory/hydra/v2/x"
)
var TestLifespans = client.Lifespans{
AuthorizationCodeGrantAccessTokenLifespan: x.NullDuration{Duration: 31 * time.Hour, Valid: true},
Author... |
Go | hydra/internal/testhelpers/oauth2.go | // Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0
package testhelpers
import (
"bytes"
"context"
"encoding/json"
"errors"
"net/http"
"net/http/cookiejar"
"net/http/httptest"
"net/url"
"strings"
"testing"
"time"
"github.com/stretchr/testify/assert"
"go.opentelemetry.io/contrib/instrume... |
Go | hydra/internal/testhelpers/server.go | // Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0
package testhelpers
import (
"net/http"
"net/http/httptest"
"testing"
)
func FlexibleServer(t *testing.T, h *http.HandlerFunc) string {
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
(*h)(w, r)
}))
... |
Go | hydra/internal/testhelpers/uuid/uuid.go | // Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0
package uuid
import (
"testing"
"github.com/gofrs/uuid"
"github.com/stretchr/testify/require"
)
// AssertUUID helper requires that a UUID is non-zero, common version/variant used in Hydra.
func AssertUUID(t *testing.T, id *uuid.UUID) {
require... |
Go | hydra/jwk/cast.go | // Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0
package jwk
import (
"crypto/rsa"
"github.com/ory/x/josex"
jose "github.com/go-jose/go-jose/v3"
"github.com/pkg/errors"
)
func MustRSAPublic(key *jose.JSONWebKey) *rsa.PublicKey {
res, err := ToRSAPublic(key)
if err != nil {
panic(err.Err... |
Go | hydra/jwk/cast_test.go | // Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0
package jwk
import (
"context"
"testing"
"github.com/go-jose/go-jose/v3"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/assert"
)
func TestMustRSAPrivate(t *testing.T) {
t.Parallel()
keys, err := GenerateJWK(context.Bac... |
Go | hydra/jwk/generate.go | // Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0
package jwk
import (
"context"
"crypto/x509"
"github.com/gofrs/uuid"
"github.com/go-jose/go-jose/v3"
"github.com/pkg/errors"
"github.com/ory/x/josex"
)
func GenerateJWK(ctx context.Context, alg jose.SignatureAlgorithm, kid, use string) (*j... |
Go | hydra/jwk/generate_test.go | // Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0
package jwk
import (
"context"
"testing"
"github.com/go-jose/go-jose/v3"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func TestGenerateJWK(t *testing.T) {
t.Parallel()
jwks, err := GenerateJWK(context.Backgro... |
Go | hydra/jwk/generator.go | // Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0
package jwk
import jose "github.com/go-jose/go-jose/v3"
type KeyGenerator interface {
Generate(id, use string) (*jose.JSONWebKeySet, error)
} |
Go | hydra/jwk/handler.go | // Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0
package jwk
import (
"encoding/json"
"net/http"
"golang.org/x/sync/errgroup"
"github.com/ory/herodot"
"github.com/ory/x/httprouterx"
"github.com/gofrs/uuid"
"github.com/pkg/errors"
"github.com/ory/x/urlx"
"github.com/ory/x/errorsx"
"... |
Go | hydra/jwk/handler_test.go | // Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0
package jwk_test
import (
"context"
"encoding/json"
"net/http"
"net/http/httptest"
"testing"
"github.com/ory/x/httprouterx"
"github.com/ory/hydra/v2/jwk"
"github.com/ory/x/contextx"
"github.com/go-jose/go-jose/v3"
"github.com/stretchr/t... |
Go | hydra/jwk/helper.go | // Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0
package jwk
import (
"context"
"crypto/ecdsa"
"crypto/ed25519"
"crypto/rsa"
"crypto/x509"
"encoding/pem"
"sync"
"github.com/ory/x/josex"
"github.com/ory/x/errorsx"
"github.com/ory/hydra/v2/x"
jose "github.com/go-jose/go-jose/v3"
"git... |
Go | hydra/jwk/helper_test.go | // Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0
package jwk_test
import (
"context"
"crypto"
"crypto/dsa" //lint:ignore SA1019 used for testing invalid key types
"crypto/ecdsa"
"crypto/ed25519"
"crypto/rsa"
"crypto/x509"
"encoding/pem"
"io"
"strings"
"testing"
"github.com/go-jose/go-... |
Go | hydra/jwk/jwt_strategy.go | // Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0
package jwk
import (
"context"
"net"
"github.com/ory/x/josex"
"github.com/go-jose/go-jose/v3"
"github.com/gofrs/uuid"
"github.com/ory/fosite"
"github.com/ory/hydra/v2/driver/config"
"github.com/pkg/errors"
"github.com/ory/fosite/token/... |
Go | hydra/jwk/jwt_strategy_test.go | // Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0
package jwk_test
import (
"context"
"encoding/base64"
"strings"
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/tidwall/gjson"
"github.com/ory/fosite/token/jwt"
"github.com/ory/hydra/v2/int... |
Go | hydra/jwk/manager.go | // Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0
package jwk
import (
"context"
"net/http"
"time"
jose "github.com/go-jose/go-jose/v3"
"github.com/gofrs/uuid"
"github.com/ory/fosite"
)
var ErrUnsupportedKeyAlgorithm = &fosite.RFC6749Error{
CodeField: http.StatusBadRequest,
ErrorF... |
Go | hydra/jwk/manager_mock_test.go | // Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0
// Code generated by MockGen. DO NOT EDIT.
// Source: jwk/manager.go
// Package mock_jwk is a generated GoMock package.
package jwk_test
import (
context "context"
reflect "reflect"
jose "github.com/go-jose/go-jose/v3"
gomock "github.com/golan... |
Go | hydra/jwk/manager_strategy.go | // Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0
package jwk
import (
"context"
"github.com/go-jose/go-jose/v3"
"github.com/pkg/errors"
"go.opentelemetry.io/otel"
"github.com/ory/hydra/v2/x"
"github.com/ory/x/otelx"
)
const tracingComponent = "github.com/ory/hydra/v2/jwk"
type ManagerStr... |
Go | hydra/jwk/manager_strategy_test.go | // Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0
package jwk_test
import (
"context"
"testing"
"github.com/go-jose/go-jose/v3"
"github.com/golang/mock/gomock"
"github.com/pkg/errors"
"github.com/stretchr/testify/assert"
"github.com/ory/hydra/v2/jwk"
"github.com/ory/hydra/v2/x"
)
func Te... |
Go | hydra/jwk/manager_test_helpers.go | // Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0
package jwk
import (
"context"
"crypto/rand"
"io"
"testing"
"time"
"github.com/google/uuid"
"github.com/ory/x/assertx"
"github.com/ory/x/errorsx"
jose "github.com/go-jose/go-jose/v3"
"github.com/stretchr/testify/assert"
"github.com/st... |
Go | hydra/jwk/registry.go | // Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0
package jwk
import (
"github.com/ory/hydra/v2/aead"
"github.com/ory/hydra/v2/driver/config"
"github.com/ory/hydra/v2/x"
)
type InternalRegistry interface {
x.RegistryWriter
x.RegistryLogger
Registry
}
type Registry interface {
config.Provid... |
Go | hydra/jwk/registry_mock_test.go | // Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0
// Code generated by MockGen. DO NOT EDIT.
// Source: jwk/registry.go
// Package jwk_test is a generated GoMock package.
package jwk_test
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
herodot "github.com/ory/herodot"
"gith... |
Go | hydra/jwk/sdk_test.go | // Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0
package jwk_test
import (
"context"
"net/http"
"net/http/httptest"
"testing"
"github.com/ory/hydra/v2/driver/config"
hydra "github.com/ory/hydra-client-go/v2"
"github.com/ory/hydra/v2/internal"
"github.com/ory/hydra/v2/x"
"github.com/ory... |
Go | hydra/oauth2/equalKeys.go | // Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0
package oauth2
import (
"testing"
"github.com/oleiade/reflections"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func AssertObjectKeysEqual(t *testing.T, a, b interface{}, keys ...string) {
assert.True(t, len(ke... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.