Skip to content

Commit

Permalink
chore: update sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
nsklikas committed Feb 27, 2024
1 parent c81cf8c commit b8abc5a
Show file tree
Hide file tree
Showing 11 changed files with 912 additions and 1 deletion.
4 changes: 4 additions & 0 deletions internal/httpclient/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ api_jwk.go
api_metadata.go
api_o_auth2.go
api_oidc.go
api_v0alpha2.go
api_wellknown.go
client.go
configuration.go
Expand All @@ -16,6 +17,7 @@ docs/AcceptOAuth2LoginRequest.md
docs/CreateJsonWebKeySet.md
docs/CreateVerifiableCredentialRequestBody.md
docs/CredentialSupportedDraft00.md
docs/DeviceAuthorization.md
docs/ErrorOAuth2.md
docs/GenericError.md
docs/GetVersion200Response.md
Expand Down Expand Up @@ -54,6 +56,7 @@ docs/TokenPaginationResponseHeaders.md
docs/TrustOAuth2JwtGrantIssuer.md
docs/TrustedOAuth2JwtGrantIssuer.md
docs/TrustedOAuth2JwtGrantJsonWebKey.md
docs/V0alpha2Api.md
docs/VerifiableCredentialPrimingResponse.md
docs/VerifiableCredentialProof.md
docs/VerifiableCredentialResponse.md
Expand All @@ -68,6 +71,7 @@ model_accept_o_auth2_login_request.go
model_create_json_web_key_set.go
model_create_verifiable_credential_request_body.go
model_credential_supported_draft00.go
model_device_authorization.go
model_error_o_auth2.go
model_generic_error.go
model_get_version_200_response.go
Expand Down
2 changes: 2 additions & 0 deletions internal/httpclient/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ Class | Method | HTTP request | Description
*OidcApi* | [**GetOidcUserInfo**](docs/OidcApi.md#getoidcuserinfo) | **Get** /userinfo | OpenID Connect Userinfo
*OidcApi* | [**RevokeOidcSession**](docs/OidcApi.md#revokeoidcsession) | **Get** /oauth2/sessions/logout | OpenID Connect Front- and Back-channel Enabled Logout
*OidcApi* | [**SetOidcDynamicClient**](docs/OidcApi.md#setoidcdynamicclient) | **Put** /oauth2/register/{id} | Set OAuth2 Client using OpenID Dynamic Client Registration
*V0alpha2Api* | [**PerformOAuth2DeviceFlow**](docs/V0alpha2Api.md#performoauth2deviceflow) | **Post** /oauth2/device/auth | The OAuth 2.0 Device Authorize Endpoint
*WellknownApi* | [**DiscoverJsonWebKeys**](docs/WellknownApi.md#discoverjsonwebkeys) | **Get** /.well-known/jwks.json | Discover Well-Known JSON Web Keys


Expand All @@ -136,6 +137,7 @@ Class | Method | HTTP request | Description
- [CreateJsonWebKeySet](docs/CreateJsonWebKeySet.md)
- [CreateVerifiableCredentialRequestBody](docs/CreateVerifiableCredentialRequestBody.md)
- [CredentialSupportedDraft00](docs/CredentialSupportedDraft00.md)
- [DeviceAuthorization](docs/DeviceAuthorization.md)
- [ErrorOAuth2](docs/ErrorOAuth2.md)
- [GenericError](docs/GenericError.md)
- [GetVersion200Response](docs/GetVersion200Response.md)
Expand Down
68 changes: 68 additions & 0 deletions internal/httpclient/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1475,6 +1475,29 @@ paths:
summary: OAuth 2.0 Authorize Endpoint
tags:
- oAuth2
/oauth2/device/auth:
post:
description: "This endpoint is not documented here because you should never\
\ use your own implementation to perform OAuth2 flows.\nOAuth2 is a very popular\
\ protocol and a library for your programming language will exists.\n\nTo\
\ learn more about this flow please refer to the specification: https://tools.ietf.org/html/rfc8628"
operationId: performOAuth2DeviceFlow
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/deviceAuthorization'
description: deviceAuthorization
default:
content:
application/json:
schema:
$ref: '#/components/schemas/errorOAuth2'
description: errorOAuth2
summary: The OAuth 2.0 Device Authorize Endpoint
tags:
- v0alpha2
/oauth2/register:
post:
description: |-
Expand Down Expand Up @@ -2086,6 +2109,51 @@ components:
type: array
title: Verifiable Credentials Metadata (Draft 00)
type: object
deviceAuthorization:
description: '# Ory''s OAuth 2.0 Device Authorization API'
example:
user_code: AAAAAA
device_code: ory_dc_smldfksmdfkl.mslkmlkmlk
interval: 5
verification_uri_complete: https://auth.ory.sh/tv?user_code=AAAAAA
verification_uri: https://auth.ory.sh/tv
expires_in: 16830
properties:
device_code:
description: The device verification code.
example: ory_dc_smldfksmdfkl.mslkmlkmlk
type: string
expires_in:
description: The lifetime in seconds of the "device_code" and "user_code".
example: 16830
format: int64
type: integer
interval:
description: "The minimum amount of time in seconds that the client\nSHOULD\
\ wait between polling requests to the token endpoint. If no\nvalue is\
\ provided, clients MUST use 5 as the default."
example: 5
format: int64
type: integer
user_code:
description: The end-user verification code.
example: AAAAAA
type: string
verification_uri:
description: |-
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.
example: https://auth.ory.sh/tv
type: string
verification_uri_complete:
description: "A verification URI that includes the \"user_code\" (or\nother\
\ information with the same function as the \"user_code\"),\nwhich is\
\ designed for non-textual transmission."
example: https://auth.ory.sh/tv?user_code=AAAAAA
type: string
title: OAuth2 Device Flow
type: object
errorOAuth2:
description: Error
example:
Expand Down
133 changes: 133 additions & 0 deletions internal/httpclient/api_v0alpha2.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions internal/httpclient/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b8abc5a

Please sign in to comment.