language
stringlengths
0
24
filename
stringlengths
9
214
code
stringlengths
99
9.93M
C
yersinia/src/terminal.c
/* terminal.c * Implementation of network terminal management * * Yersinia * By David Barroso <tomac@yersinia.net> and Alfredo Andres <aandreswork@hotmail.com> * Copyright 2005-2017 Alfredo Andres and David Barroso * * This program is free software; you can redistribute it and/or * modify it under the terms of ...
C/C++
yersinia/src/terminal.h
/* terminal.h * Definitions for network terminal management * * Yersinia * By David Barroso <tomac@yersinia.net> and Alfredo Andres <aandreswork@hotmail.com> * Copyright 2005-2017 Alfredo Andres and David Barroso * * This program is free software; you can redistribute it and/or * modify it under the terms of th...
C
yersinia/src/thread-util.c
/* thread-util.c * Implementation of thread utilities * * Yersinia * By David Barroso <tomac@yersinia.net> and Alfredo Andres <aandreswork@hotmail.com> * Copyright 2005-2017 Alfredo Andres and David Barroso * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU ...
C/C++
yersinia/src/thread-util.h
/* thread-util.h * Definitions for thread utils * * Yersinia * By David Barroso <tomac@yersinia.net> and Alfredo Andres <aandreswork@hotmail.com> * Copyright 2005-2017 Alfredo Andres and David Barroso * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Genera...
C
yersinia/src/vtp.c
/* vtp.c * Implementation and attacks for Cisco's VLAN Trunking Protocol * * Yersinia * By David Barroso <tomac@yersinia.net> and Alfredo Andres <aandreswork@hotmail.com> * Copyright 2005-2017 Alfredo Andres and David Barroso * * This program is free software; you can redistribute it and/or * modify it under th...
C/C++
yersinia/src/vtp.h
/* vtp.h * Definitions for Cisco's VLAN Trunking Protocol * * Yersinia * By David Barroso <tomac@yersinia.net> and Alfredo Andres <aandreswork@hotmail.com> * Copyright 2005-2017 Alfredo Andres and David Barroso * * This program is free software; you can redistribute it and/or * modify it under the terms of the ...
C
yersinia/src/xstp.c
/* xstp.c * Implementation and attacks for Spanning Tree Protocol (Rapid and Multi) * * Yersinia * By David Barroso <tomac@yersinia.net> and Alfredo Andres <aandreswork@hotmail.com> * Copyright 2005-2017 Alfredo Andres and David Barroso * * This program is free software; you can redistribute it and/or * modify ...
C/C++
yersinia/src/xstp.h
/* xstp.h * Definitions for Spanning Tree Protocol * * Yersinia * By David Barroso <tomac@yersinia.net> and Alfredo Andres <aandreswork@hotmail.com> * Copyright 2005-2017 Alfredo Andres and David Barroso * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Gen...
C
yersinia/src/yersinia.c
/* yersinia.c * Command line client and application main entry point * * Yersinia * By David Barroso <tomac@yersinia.net> and Alfredo Andres <aandreswork@hotmail.com> * Copyright 2005-2017 Alfredo Andres and David Barroso * * This program is free software; you can redistribute it and/or * modify it under the te...
yersinia/src/yersinia.conf
# # Yersinia configuration file example # # Please read the README and the man page before complaining # Global options <global> # MAC Spoofing mac_spoofing = 1 # Active interfaces #interfaces = eth0, eth1 # Hosts allowed to connect to the network daemon # Examples: www.microsoft.com 192.168.1.0/24 10.31-128.*.13 100....
C/C++
yersinia/src/yersinia.h
/* yersinia.h * Definitions for application main entry point and command line client * * Yersinia * By David Barroso <tomac@yersinia.net> and Alfredo Andres <aandreswork@hotmail.com> * Copyright 2005-2017 Alfredo Andres and David Barroso * * This program is free software; you can redistribute it and/or * modify...
YAML
hydra/.codeclimate.yml
engines: govet: enabled: true golint: enabled: false gofmt: enabled: true ratings: paths: - "**.go" exclude_paths: - vendor/ - sdk/
hydra/.dockerignore
.idea .vagrant docs node_modules .circleci .github scripts sdk/js sdk/php vendor dist .bin test/e2e test/mock-* cypress
hydra/.editorconfig
root = true [*] insert_final_newline = true charset = utf-8 trim_trailing_whitespace = true indent_style = space indent_size = 2 [{Makefile,go.mod,go.sum,*.go}] indent_style = tab indent_size = 4 [.schema/version.schema.json] indent_style = space indent_size = 4
hydra/.gitignore
.bin/ .idea/ .vscode/ node_modules/ *.iml *.exe .vagrant *.log *.stackdump .DS_Store .hydra.yml cover.out output/ _book/ dist/ coverage.* Dockerfile-plugin-* plugin-*.so hydra-docker-bin cookies.txt vendor/ LICENSE.txt ./hydra !./hydra/ hydra-login-consent-node ./cypress/screenshots *-packr.go packrd/ persistence/sql/m...
YAML
hydra/.golangci.yml
linters: enable: - gosec - errcheck - gosimple - bodyclose - staticcheck - goimports disable: - ineffassign - deadcode - unused - structcheck run: skip-files: - ".+_test.go" - ".+_test_.+.go"
YAML
hydra/.goreleaser.yml
includes: - from_url: url: https://raw.githubusercontent.com/ory/xgoreleaser/master/build.tmpl.yml variables: brew_name: hydra brew_description: "The Ory OAuth2 and OpenID Connect Platform (Ory Hydra)" buildinfo_hash: "github.com/ory/hydra/v2/driver/config.Commit" buildinfo_tag: "github.com/ory/hydra/v...
hydra/.nancy-ignore
# HashiCorp Consul issues - can be ignored because consul is not used. CVE-2020-7219 CVE-2018-19653 # End HashiCorp Consul # etcd issues - can be ignored because etcd is not used. CVE-2020-15114 CVE-2020-15136 CVE-2020-15115 # end
hydra/.npmignore
client/ cmd/ compose/ config/ docs/ firewall/ health/ integration/ jwk/ metrics/ oauth2/ pkg/ policy/ rand/ scripts/ vendor/ warden/ dist/ sdk/php/ sdk/go/ *.yml *.go *.md
hydra/AUTHORS
# This is the official list of Ory Hydra authors. # If you don't want to be on this list, please contact Ory. 115100 <115100@users.noreply.github.com> abusaidm <m.abusaid@me.com> Ackermann Yuriy <ackermann.yuriy@gmail.com> Adarsh R Jayan <arjprd@gmail.com> Adrian Gąsior <60886162+adriang-90@users.noreply.github.com> A...
Markdown
hydra/CHANGELOG.md
# Changelog <!-- START doctoc generated TOC please keep comment here to allow auto update --> <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> **Table of Contents** - [0.0.0 (2023-08-16)](#000-2023-08-16) - [Bug Fixes](#bug-fixes) - [Features](#features) - [2.2.0-pre.0 (2023-06-22)](#220-pre0...
Markdown
hydra/CODE_OF_CONDUCT.md
<!-- AUTO-GENERATED, DO NOT EDIT! --> <!-- Please edit the original at https://github.com/ory/meta/blob/master/templates/repository/common/CODE_OF_CONDUCT.md --> # Contributor Covenant Code of Conduct ## Our Pledge We as members, contributors, and leaders pledge to make participation in our community a harassment-fr...
Markdown
hydra/CONTRIBUTING.md
<!-- AUTO-GENERATED, DO NOT EDIT! --> <!-- Please edit the original at https://github.com/ory/meta/blob/master/templates/repository/common/CONTRIBUTING.md --> # Contribute to Ory Hydra<!-- omit in toc --> <!-- START doctoc generated TOC please keep comment here to allow auto update --> <!-- DON'T EDIT THIS SECTION, I...
JSON
hydra/cypress.json
{ "env": { "public_url": "http://127.0.0.1:5004", "admin_url": "http://127.0.0.1:5001", "consent_url": "http://127.0.0.1:5002", "client_url": "http://127.0.0.1:5003", "public_port": "5004", "client_port": "5003", "jwt_enabled": false }, "chromeWebSecurity": false, "retries": { "r...
Go
hydra/doc.go
// Copyright © 2022 Ory Corp // SPDX-License-Identifier: Apache-2.0 // Package main ORY Hydra package main
hydra/go.mod
module github.com/ory/hydra/v2 go 1.20 replace ( github.com/jackc/pcmock => github.com/jackc/pgmock v0.0.0-20210724152146-4ad1a8207f65 github.com/jackc/pgconn => github.com/jackc/pgconn v1.14.1 github.com/mattn/go-sqlite3 => github.com/mattn/go-sqlite3 v1.14.16 ) replace github.com/ory/hydra-client-go/v2 => ./int...
hydra/go.sum
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwred...
Go
hydra/go_mod_indirect_pins.go
// Copyright © 2022 Ory Corp // SPDX-License-Identifier: Apache-2.0 //go:build go_mod_indirect_pins // +build go_mod_indirect_pins package main import ( _ "github.com/go-swagger/go-swagger/cmd/swagger" _ "github.com/golang/mock/mockgen" _ "github.com/mikefarah/yq/v4" _ "golang.org/x/tools/cmd/goimports" _ "gi...
Shell Script
hydra/install.sh
#!/bin/sh set -e # Code generated by godownloader on 2020-10-22T12:52:40Z. DO NOT EDIT. # usage() { this=$1 cat <<EOF $this: download go binaries for ory/hydra Usage: $this [-b] bindir [-d] [tag] -b sets bindir or installation directory, Defaults to ./bin -d turns on debug logging [tag] is a tag from ht...
hydra/LICENSE
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined b...
Go
hydra/main.go
// Copyright © 2022 Ory Corp // SPDX-License-Identifier: Apache-2.0 package main import ( "github.com/ory/hydra/v2/cmd" "github.com/ory/x/profilex" ) func main() { defer profilex.Profile().Stop() cmd.Execute() }
hydra/Makefile
SHELL=/bin/bash -o pipefail export GO111MODULE := on export PATH := .bin:${PATH} export PWD := $(shell pwd) export IMAGE_TAG := $(if $(IMAGE_TAG),$(IMAGE_TAG),latest) GOLANGCI_LINT_VERSION = 1.53.3 GO_DEPENDENCIES = github.com/ory/go-acc \ github.com/golang/mock/mockgen \ golang.org/x/too...
JSON
hydra/openapitools.json
{ "$schema": "node_modules/@openapitools/openapi-generator-cli/config.schema.json", "spaces": 2, "generator-cli": { "version": "6.0.1" } }
JSON
hydra/package-lock.json
{ "name": "@oryd/hydra", "version": "0.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@oryd/hydra", "version": "0.0.0", "dependencies": { "@openapitools/openapi-generator-cli": "^2.6.0", "conventional-changelog-cli": "~2.2.2", "doctoc":...
JSON
hydra/package.json
{ "name": "@oryd/hydra", "version": "0.0.0", "private": true, "scripts": { "lint": "standard --fix \"test/**/*.js\" \"cypress/**/*.js\"", "openapi-generator-cli": "openapi-generator-cli", "test": "cypress run", "test:watch": "cypress open", "wait-on": "wait-on" }, "prettier": "ory-pretti...
JSON
hydra/package.oc.json
{ "name": "@oryd/hydra", "version": "0.0.0", "description": "The official JavaScript / NodeJS SDK for ORY Hydra.", "license": "Apache-2.0", "scripts": { "postinstall": "opencollective postinstall" }, "dependencies": { "opencollective": "^1.0.3" }, "collective": { "type": "opencollective", ...
YAML
hydra/quickstart-cockroach.yml
########################################################################### ####### FOR DEMONSTRATION PURPOSES ONLY ####### ########################################################################### # # # If you have no...
YAML
hydra/quickstart-cors.yml
########################################################################### ####### FOR DEMONSTRATION PURPOSES ONLY ####### ########################################################################### # # # If you have no...
YAML
hydra/quickstart-debug.yml
########################################################################### ####### FOR DEMONSTRATION PURPOSES ONLY ####### ########################################################################### # # # If you have no...
YAML
hydra/quickstart-hsm.yml
########################################################################### ####### FOR DEMONSTRATION PURPOSES ONLY ####### ########################################################################### # # # If you have no...
YAML
hydra/quickstart-jwt.yml
########################################################################### ####### FOR DEMONSTRATION PURPOSES ONLY ####### ########################################################################### # # # If you have no...
YAML
hydra/quickstart-mysql.yml
########################################################################### ####### FOR DEMONSTRATION PURPOSES ONLY ####### ########################################################################### # # # If you have no...
YAML
hydra/quickstart-postgres.yml
########################################################################### ####### FOR DEMONSTRATION PURPOSES ONLY ####### ########################################################################### # # # If you have no...
YAML
hydra/quickstart-prometheus-config.yml
global: scrape_interval: 15s # By default, scrape targets every 15 seconds. external_labels: monitor: "codelab-monitor" scrape_configs: - job_name: "prometheus" scrape_interval: 5s static_configs: - targets: ["localhost:9090"] - job_name: "hydra" # Override the global default and scra...
YAML
hydra/quickstart-prometheus.yml
########################################################################### ####### FOR DEMONSTRATION PURPOSES ONLY ####### ########################################################################### # # # If you have no...
YAML
hydra/quickstart-tracing.yml
########################################################################### ####### FOR DEMONSTRATION PURPOSES ONLY ####### ########################################################################### # # # If you have no...
YAML
hydra/quickstart.yml
########################################################################### ####### FOR DEMONSTRATION PURPOSES ONLY ####### ########################################################################### # # # If you have no...
Markdown
hydra/README.md
<h1 align="center"><img src="https://raw.githubusercontent.com/ory/meta/master/static/banners/hydra.svg" alt="Ory Hydra - Open Source OAuth 2 and OpenID Connect server"></h1> <h4 align="center"> <a href="https://www.ory.sh/chat">Chat</a> | <a href="https://github.com/ory/hydra/discussions">Discussions</a> | ...
Markdown
hydra/SECURITY.md
<!-- AUTO-GENERATED, DO NOT EDIT! --> <!-- Please edit the original at https://github.com/ory/meta/blob/master/templates/repository/common/SECURITY.md --> <!-- START doctoc generated TOC please keep comment here to allow auto update --> <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> - [Security Pol...
Markdown
hydra/UPGRADE.md
# Upgrading The intent of this document is to make migration of breaking changes as easy as possible. Please note that not all breaking changes might be included here. Please check the [CHANGELOG.md](./CHANGELOG.md) for a full list of changes before finalizing the upgrade process. <!-- START doctoc generated TOC plea...
hydra/.docker/Dockerfile-alpine
FROM alpine:3.18 RUN addgroup -S ory; \ adduser -S ory -G ory -D -H -s /bin/nologin RUN apk --no-cache --upgrade add ca-certificates COPY hydra /usr/bin/hydra # set up nsswitch.conf for Go's "netgo" implementation # - https://github.com/golang/go/blob/go1.9.1/src/net/conf.go#L194-L275 RUN echo 'hosts: files dns'...
hydra/.docker/Dockerfile-build
FROM golang:1.20-bullseye AS builder WORKDIR /go/src/github.com/ory/hydra RUN apt-get update && apt-get upgrade -y &&\ mkdir -p /var/lib/sqlite &&\ mkdir -p ./internal/httpclient COPY go.mod go.sum ./ COPY internal/httpclient/go.* ./internal/httpclient/ ENV GO111MODULE on ENV CGO_ENABLED 1 RUN go mod downl...
hydra/.docker/Dockerfile-distroless-static
FROM gcr.io/distroless/static-debian11:nonroot COPY hydra /usr/bin/hydra # Declare the standard ports used by hydra (4444 for public service endpoint, 4445 for admin service endpoint) EXPOSE 4444 4445 ENTRYPOINT ["hydra"] CMD ["serve", "all"]
hydra/.docker/Dockerfile-hsm
FROM golang:1.20 AS builder WORKDIR /go/src/github.com/ory/hydra RUN apt-get update && apt-get upgrade -y &&\ mkdir -p /var/lib/sqlite &&\ mkdir -p ./internal/httpclient COPY go.mod go.sum ./ COPY internal/httpclient/go.* ./internal/httpclient ENV GO111MODULE on ENV CGO_ENABLED 1 RUN go mod download COPY ....
hydra/.docker/Dockerfile-scratch
FROM alpine:3.18 RUN apk --no-cache --upgrade --latest add ca-certificates # set up nsswitch.conf for Go's "netgo" implementation # - https://github.com/golang/go/blob/go1.9.1/src/net/conf.go#L194-L275 RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf RUN addgroup -S ory; \ adduser ...
hydra/.docker/Dockerfile-sqlite
FROM alpine:3.18 # Because this image is built for SQLite, we create /home/ory and /home/ory/sqlite which is owned by the ory user # and declare /home/ory/sqlite a volume. # # To get SQLite and Docker Volumes working with this image, mount the volume where SQLite should be written to at: # # /home/ory/sqlite/some-fi...
YAML
hydra/.github/auto_assign.yml
# AUTO-GENERATED, DO NOT EDIT! # Please edit the original at https://github.com/ory/meta/blob/master/templates/repository/common/.github/auto_assign.yml # Set to true to add reviewers to pull requests addReviewers: true # Set to true to add assignees to pull requests addAssignees: true # A list of reviewers to be ad...
YAML
hydra/.github/config.yml
# AUTO-GENERATED, DO NOT EDIT! # Please edit the original at https://github.com/ory/meta/blob/master/templates/repository/common/.github/config.yml todo: keyword: "@todo" label: todo
YAML
hydra/.github/FUNDING.yml
# AUTO-GENERATED, DO NOT EDIT! # Please edit the original at https://github.com/ory/meta/blob/master/templates/repository/common/.github/FUNDING.yml # These are supported funding model platforms # github: patreon: _ory open_collective: ory
JSON
hydra/.github/labels.json
[ { "name": "package/persistence/sql", "color": "0A28FD", "aliases": ["sql"] }, { "name": "package/sdk", "color": "0A28FD", "aliases": ["sdk"] }, { "name": "package/telemetry", "color": "0A28FD", "aliases": ["telemetry"] }, { "name": "package/oidc", "color": "0A...
Markdown
hydra/.github/pull_request_template.md
<!-- Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. This text will be included in the changelog. If applicable, include links to documentation or pieces of code. If your change includes breaking changes please add a code block documenting the bre...
YAML
hydra/.github/ISSUE_TEMPLATE/BUG-REPORT.yml
# AUTO-GENERATED, DO NOT EDIT! # Please edit the original at https://github.com/ory/meta/blob/master/templates/repository/common/.github/ISSUE_TEMPLATE/BUG-REPORT.yml description: "Create a bug report" labels: - bug name: "Bug Report" body: - attributes: value: "Thank you for taking the time to fill out this...
YAML
hydra/.github/ISSUE_TEMPLATE/config.yml
# AUTO-GENERATED, DO NOT EDIT! # Please edit the original at https://github.com/ory/meta/blob/master/templates/repository/common/.github/ISSUE_TEMPLATE/config.yml blank_issues_enabled: false contact_links: - name: Ory Hydra Forum url: https://github.com/ory/hydra/discussions about: Please ask and answe...
YAML
hydra/.github/ISSUE_TEMPLATE/DESIGN-DOC.yml
# AUTO-GENERATED, DO NOT EDIT! # Please edit the original at https://github.com/ory/meta/blob/master/templates/repository/common/.github/ISSUE_TEMPLATE/DESIGN-DOC.yml description: "A design document is needed for non-trivial changes to the code base." labels: - rfc name: "Design Document" body: - attributes: ...
YAML
hydra/.github/ISSUE_TEMPLATE/FEATURE-REQUEST.yml
# AUTO-GENERATED, DO NOT EDIT! # Please edit the original at https://github.com/ory/meta/blob/master/templates/repository/common/.github/ISSUE_TEMPLATE/FEATURE-REQUEST.yml description: "Suggest an idea for this project without a plan for implementation" labels: - feat name: "Feature Request" body: - attributes: ...
YAML
hydra/.github/workflows/ci.yaml
name: CI Tasks for Ory Hydra on: push: branches: - master tags: - "*" pull_request: # Cancel in-progress runs in current workflow. concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: oidc-conformity: name: Run OIDC conformity tests runs-on:...
YAML
hydra/.github/workflows/closed_references.yml
# AUTO-GENERATED, DO NOT EDIT! # Please edit the original at https://github.com/ory/meta/blob/master/templates/repository/common/.github/workflows/closed_references.yml name: Closed Reference Notifier on: schedule: - cron: "0 0 * * *" workflow_dispatch: inputs: issueLimit: description: Max. ...
YAML
hydra/.github/workflows/conventional_commits.yml
# AUTO-GENERATED, DO NOT EDIT! # Please edit the original at https://github.com/ory/meta/blob/master/templates/repository/common/.github/workflows/conventional_commits.yml name: Conventional commits # This GitHub CI Action enforces that pull request titles follow conventional commits. # More info at https://www.conve...
YAML
hydra/.github/workflows/cve-scan.yaml
name: Docker Image Scanners on: push: branches: - "master" tags: - "v*.*.*" pull_request: branches: - "master" jobs: scanners: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v3 - name: Setup Env id: vars shell: bash ...
YAML
hydra/.github/workflows/format.yml
name: Format on: pull_request: push: jobs: format: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: go-version: "1.20" - run: make format - name: Indicate formatting issues run: git diff HEAD --exit-code --color
YAML
hydra/.github/workflows/labels.yml
# AUTO-GENERATED, DO NOT EDIT! # Please edit the original at https://github.com/ory/meta/blob/master/templates/repository/common/.github/workflows/labels.yml name: Synchronize Issue Labels on: workflow_dispatch: push: branches: - master jobs: milestone: if: github.repository_owner == 'ory' na...
YAML
hydra/.github/workflows/licenses.yml
name: Licenses on: pull_request: push: branches: - main - master jobs: check: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: go-version: "1.20" - uses: actions/setup-node@v2 with: node-vers...
YAML
hydra/.github/workflows/milestone.yml
# AUTO-GENERATED, DO NOT EDIT! # Please edit the original at https://github.com/ory/meta/blob/master/templates/repository/server/.github/workflows/milestone.yml name: Generate and Publish Milestone Document on: workflow_dispatch: schedule: - cron: "0 0 * * *" jobs: milestone: if: github.repository_owne...
JSON
hydra/.schema/config.schema.json
{ "$id": "https://github.com/ory/hydra/spec/config.json", "$schema": "http://json-schema.org/draft-07/schema#", "title": "Ory Hydra Configuration", "type": "object", "definitions": { "http_method": { "type": "string", "enum": [ "POST", "GET", "PUT", "PATCH", ...
JSON
hydra/.schema/version.schema.json
{ "$id": "https://github.com/ory/hydra/.schema/versions.config.schema.json", "$schema": "http://json-schema.org/draft-07/schema#", "oneOf": [ { "allOf": [ { "properties": { "version": { "const": "v2.2...
YAML
hydra/.schema/openapi/gen.go.yml
disallowAdditionalPropertiesIfNotPresent: true packageName: client generateInterfaces: true isGoSubmodule: false structPrefix: true enumClassPrefix: true
YAML
hydra/.schema/openapi/gen.typescript.yml
npmName: "@ory/kratos-client" npmVersion: 0.0.0 # typescriptThreePlus: true #npmRepository: https://github.com/ory/sdk.git supportsES6: true ensureUniqueParams: true modelPropertyNaming: original
YAML
hydra/.schema/openapi/patches/common.yaml
- op: remove path: /components/schemas/JSONRawMessage/type - op: remove path: /components/schemas/genericError/properties/details/type - op: remove path: /components/schemas/genericError/properties/details/additionalProperties
YAML
hydra/.schema/openapi/patches/health.yaml
- op: replace path: /paths/~1health~1alive value: get: description: |- This endpoint returns a HTTP 200 status code when {{.ProjectHumanName}} is accepting incoming HTTP requests. This status does currently not include checks whether the database connection is working. If the serv...
YAML
hydra/.schema/openapi/patches/meta.yaml
- op: replace path: /info value: title: Ory Hydra API description: | Documentation for all of Ory Hydra's APIs. version: >- {{ getenv "CIRCLE_TAG" }} license: name: Apache 2.0 contact: email: "hi@ory.sh" - op: replace path: /tags value: - name: oAuth2 descri...
YAML
hydra/.schema/openapi/patches/nulls.yaml
- op: replace path: "#/components/schemas/NullUUID" value: type: string format: uuid4 nullable: true - op: replace path: "#/components/schemas/NullTime" value: format: date-time type: string nullable: true - op: replace path: "#/components/schemas/Time" value: format: date-time ...
YAML
hydra/.schema/openapi/patches/oauth2.yaml
- op: remove path: /components/schemas/acceptOAuth2ConsentRequestSession/properties/access_token/additionalProperties - op: remove path: /components/schemas/acceptOAuth2ConsentRequestSession/properties/access_token/type - op: remove path: /components/schemas/acceptOAuth2ConsentRequestSession/properties/id_token/a...
Go
hydra/aead/aead.go
// Copyright © 2023 Ory Corp // SPDX-License-Identifier: Apache-2.0 package aead import ( "context" "github.com/ory/fosite" ) // Cipher provides AEAD (authenticated encryption with associated data). The // ciphertext is returned base64url-encoded. type Cipher interface { // Encrypt encrypts and encodes the give...
Go
hydra/aead/aead_test.go
// Copyright © 2022 Ory Corp // SPDX-License-Identifier: Apache-2.0 package aead_test import ( "context" "crypto/rand" "fmt" "io" "testing" "github.com/ory/hydra/v2/aead" "github.com/ory/hydra/v2/driver/config" "github.com/ory/hydra/v2/internal" "github.com/pborman/uuid" "github.com/stretchr/testify/asse...
Go
hydra/aead/aesgcm.go
// Copyright © 2022 Ory Corp // SPDX-License-Identifier: Apache-2.0 package aead import ( "context" "crypto/aes" "crypto/cipher" "crypto/rand" "encoding/base64" "io" "github.com/pkg/errors" "github.com/ory/x/errorsx" ) type AESGCM struct { c Dependencies } func NewAESGCM(c Dependencies) *AESGCM { retur...
Go
hydra/aead/helpers.go
// Copyright © 2023 Ory Corp // SPDX-License-Identifier: Apache-2.0 package aead import ( "context" "fmt" ) func encryptionKey(ctx context.Context, d Dependencies, keySize int) ([]byte, error) { keys, err := allKeys(ctx, d) if err != nil { return nil, err } key := keys[0] if len(key) != keySize { return...
Go
hydra/aead/xchacha20.go
// Copyright © 2023 Ory Corp // SPDX-License-Identifier: Apache-2.0 package aead import ( "context" "crypto/cipher" cryptorand "crypto/rand" "encoding/base64" "fmt" "math" "golang.org/x/crypto/chacha20poly1305" "github.com/ory/x/errorsx" ) var _ Cipher = (*XChaCha20Poly1305)(nil) type ( XChaCha20Poly130...
Go
hydra/client/client.go
// Copyright © 2022 Ory Corp // SPDX-License-Identifier: Apache-2.0 package client import ( "strconv" "strings" "time" "github.com/twmb/murmur3" "github.com/ory/hydra/v2/driver/config" "github.com/ory/x/stringsx" "github.com/gobuffalo/pop/v6" "github.com/gofrs/uuid" "github.com/go-jose/go-jose/v3" "gi...
Go
hydra/client/client_test.go
// Copyright © 2022 Ory Corp // SPDX-License-Identifier: Apache-2.0 package client import ( "testing" "github.com/stretchr/testify/assert" "github.com/ory/fosite" ) var _ fosite.OpenIDConnectClient = new(Client) var _ fosite.Client = new(Client) func TestClient(t *testing.T) { c := &Client{ LegacyClientID:...
Go
hydra/client/error.go
// Copyright © 2022 Ory Corp // SPDX-License-Identifier: Apache-2.0 package client import ( "net/http" "github.com/ory/fosite" ) var ErrInvalidClientMetadata = &fosite.RFC6749Error{ DescriptionField: "The value of one of the Client Metadata fields is invalid and the server has rejected this request. Note that a...
Go
hydra/client/handler.go
// Copyright © 2022 Ory Corp // SPDX-License-Identifier: Apache-2.0 package client import ( "context" "crypto/subtle" "encoding/json" "io" "net/http" "strings" "time" "github.com/ory/x/pagination/tokenpagination" "github.com/ory/x/httprouterx" "github.com/ory/x/openapix" "github.com/ory/x/uuidx" "gi...
Go
hydra/client/handler_test.go
// Copyright © 2022 Ory Corp // SPDX-License-Identifier: Apache-2.0 package client_test import ( "bytes" "context" "encoding/json" "fmt" "io" "net/http" "net/http/httptest" "testing" "github.com/ory/x/httprouterx" "github.com/tidwall/sjson" "github.com/gofrs/uuid" "github.com/tidwall/gjson" "github....
Go
hydra/client/manager.go
// Copyright © 2022 Ory Corp // SPDX-License-Identifier: Apache-2.0 package client import ( "context" "github.com/ory/fosite" ) // swagger:ignore type Filter struct { // The maximum amount of clients to returned, upper bound is 500 clients. // in: query Limit int `json:"limit"` // The offset from where to s...
Go
hydra/client/manager_test_helpers.go
// Copyright © 2022 Ory Corp // SPDX-License-Identifier: Apache-2.0 package client import ( "context" "crypto/x509" "fmt" "testing" "time" "github.com/go-faker/faker/v4" "github.com/go-jose/go-jose/v3" "github.com/gobuffalo/pop/v6" "github.com/gofrs/uuid" "github.com/stretchr/testify/assert" "github.com/...
Go
hydra/client/registry.go
// Copyright © 2022 Ory Corp // SPDX-License-Identifier: Apache-2.0 package client import ( "github.com/ory/hydra/v2/driver/config" "github.com/ory/fosite" foauth2 "github.com/ory/fosite/handler/oauth2" "github.com/ory/hydra/v2/jwk" "github.com/ory/hydra/v2/x" ) type InternalRegistry interface { x.RegistryWr...
Go
hydra/client/sdk_test.go
// Copyright © 2022 Ory Corp // SPDX-License-Identifier: Apache-2.0 package client_test import ( "context" "encoding/json" "io" "net/http/httptest" "strings" "testing" "github.com/ory/x/assertx" "github.com/ory/x/ioutilx" "github.com/ory/x/snapshotx" "github.com/ory/x/uuidx" "github.com/mohae/deepcop...
Go
hydra/client/validator.go
// Copyright © 2022 Ory Corp // SPDX-License-Identifier: Apache-2.0 package client import ( "context" "encoding/json" "fmt" "net/url" "strings" "github.com/hashicorp/go-retryablehttp" "github.com/ory/herodot" "github.com/ory/hydra/v2/driver/config" "github.com/ory/hydra/v2/x" "github.com/ory/x/errorsx" ...
Go
hydra/client/validator_test.go
// Copyright © 2022 Ory Corp // SPDX-License-Identifier: Apache-2.0 package client_test import ( "context" "encoding/json" "fmt" "net/http" "net/http/httptest" "strings" "testing" "github.com/hashicorp/go-retryablehttp" "github.com/ory/fosite" "github.com/ory/hydra/v2/driver" "github.com/ory/x/httpx" ...
JSON
hydra/client/.snapshots/TestClientSDK-case=id_can_not_be_set.json
{ "error": "The request was malformed or contained invalid parameters", "error_description": "It is no longer possible to set an OAuth2 Client ID as a user. The system will generate a unique ID for you." }
JSON
hydra/client/.snapshots/TestHandler-case=selfservice_with_incorrect_or_missing_auth-endpoint=selfservice-method=DELETE-without_auth.json
{ "body": { "error": "The request could not be authorized", "error_description": "The requested OAuth 2.0 client does not exist or you provided incorrect credentials." }, "status": 401 }