Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
869 commits
Select commit Hold shift + click to select a range
c900985
fix: failing CI in OSS repos
hperl Aug 22, 2025
6da0c55
autogen(sdk): bump to 3d1f84b0f0d006971aea9489322b3e0f32a6a7e3
aeneasr Aug 22, 2025
5014348
fix: routes in AX with identity_schema
hperl Aug 22, 2025
1209de7
test: add golangci-lint config and GHA
hperl Aug 25, 2025
95ea358
autogen(docs): regenerate and update changelog
ory-bot Aug 25, 2025
8e3a7b8
chore: remove non-existing key from OpenAPI spec
aeneasr Aug 25, 2025
a64f8fa
chore: simplify consent verifier invalidation
aeneasr Aug 25, 2025
be9332c
autogen(docs): regenerate and update changelog
ory-bot Aug 25, 2025
5745f7d
chore: simplify GetDeviceUserAuthRequest
aeneasr Aug 26, 2025
8aee364
fix(hydra): instrument metrics also on public endpoints
zepatrik Aug 26, 2025
14d838c
autogen(docs): regenerate and update changelog
ory-bot Aug 26, 2025
d170459
chore: simplify CreateDeviceUserAuthRequest
aeneasr Aug 26, 2025
6f4bf88
autogen(docs): regenerate and update changelog
ory-bot Aug 26, 2025
38ee050
fix: hydra tracing
alnr Aug 26, 2025
641a15d
autogen(docs): regenerate and update changelog
ory-bot Aug 26, 2025
1c8ba50
chore: simplify VerifyAndInvalidateDeviceUserAuthRequest
aeneasr Aug 26, 2025
fe735bb
autogen(docs): regenerate and update changelog
ory-bot Aug 26, 2025
7a6592e
fix(hydra): use prometheus metrics instead of SQA metrics
zepatrik Aug 27, 2025
d8ea126
autogen(docs): regenerate and update changelog
ory-bot Aug 27, 2025
018709e
feat(changelog-oel): reduce hydra CPU and memory consumption
aeneasr Aug 27, 2025
a3342fa
autogen(docs): regenerate and update changelog
ory-bot Aug 27, 2025
02c5757
feat: improve domain telemetry for OSS (Hydra & Kratos)
shaunnkhan Aug 29, 2025
a73be64
autogen(docs): regenerate and update changelog
ory-bot Aug 29, 2025
4ab2956
chore(backoffice): fix numerous lint warnings
gaultier Sep 5, 2025
3e96e8a
autogen(docs): regenerate and update changelog
ory-bot Sep 5, 2025
0ba326a
fix: escape IPv6 regex string
shaunnkhan Sep 8, 2025
c8a1e28
autogen(docs): regenerate and update changelog
ory-bot Sep 8, 2025
17a4c4f
feat(changelog-oel): improved tracing and metrics for the high-perfor…
alnr Sep 5, 2025
e55a1fa
chore: bump Go everywhere
alnr Sep 5, 2025
8d0537a
chore: bump pop to master
alnr Sep 8, 2025
70796c6
autogen: update license overview
ory-bot Sep 8, 2025
7f02e54
chore(kratos): cleanup and improve some tests
zepatrik Sep 8, 2025
828e5bf
autogen: update license overview
ory-bot Sep 8, 2025
061d3fb
fix: towards fixing fosite CI
alnr Sep 8, 2025
e6bd0d2
autogen: update license overview
ory-bot Sep 8, 2025
dde63d8
fix: hydra CI
alnr Sep 8, 2025
9e7589f
autogen: update license overview
ory-bot Sep 8, 2025
0a6ea5b
fix: use git hash to render ory x schema references
shaunnkhan Sep 9, 2025
c64c07f
autogen: update license overview
ory-bot Sep 9, 2025
eb3b6ac
fix: reject invalid migration names
gaultier Sep 16, 2025
5aba94f
autogen: update license overview
ory-bot Sep 16, 2025
38a28d4
fix: ignore non SQL files when applying migrations
gaultier Sep 16, 2025
48b1a43
autogen: update license overview
ory-bot Sep 16, 2025
dcd696d
chore: add pagination secrets for Kratos
gaultier Sep 17, 2025
db90374
autogen: update license overview
ory-bot Sep 17, 2025
fe459ea
fix: migration problems
zepatrik Sep 17, 2025
4929a8d
autogen: update license overview
ory-bot Sep 17, 2025
bea6b4d
feat(hydra): split up persister
zepatrik Sep 17, 2025
66fb895
autogen: update license overview
ory-bot Sep 17, 2025
43c9be1
fix: force SQL operator precedence in pagination v2 to ensure nid iso…
gaultier Sep 23, 2025
4fca625
autogen: update license overview
ory-bot Sep 23, 2025
919b73f
perf: index hint for CRDB consents query
shaunnkhan Sep 23, 2025
c3cb8bb
autogen: update license overview
ory-bot Sep 23, 2025
afc5ade
chore: axios update
deepakprabhakara Sep 24, 2025
aefee95
autogen: update license overview
ory-bot Sep 24, 2025
50608c2
fix: increase refresh token grace period
hperl Sep 24, 2025
53b06b7
autogen: update license overview
ory-bot Sep 24, 2025
6e745a0
autogen(sdk): bump to 074914c8ec43136bf49c43a7badaf5e3ab621940
aeneasr Sep 24, 2025
60679fb
autogen: update license overview
ory-bot Sep 24, 2025
abd5f04
feat: domain telemetry improvements
shaunnkhan Sep 24, 2025
b2677c8
autogen: update license overview
ory-bot Sep 24, 2025
d0ec7e3
chore: remove counting courier messages
gaultier Sep 25, 2025
b49cba5
autogen: update license overview
ory-bot Sep 25, 2025
2769a75
test: resturcture and improve integration tests
zepatrik Sep 25, 2025
44cac30
autogen: update license overview
ory-bot Sep 25, 2025
ba68c1c
autogen(sdk): bump to cc7be7e8a43342e56f5d4df16a461050ee14e9b6
aeneasr Sep 26, 2025
9a8b648
autogen: update license overview
ory-bot Sep 26, 2025
49e0815
chore: update copybara transformation
adamwalach Sep 26, 2025
969145f
autogen: update license overview
ory-bot Sep 26, 2025
7c47137
chore: gh actions and node lib updates
deepakprabhakara Sep 29, 2025
069ca76
autogen: update license overview
ory-bot Sep 29, 2025
bbeee84
chore: update copybara rules
adamwalach Sep 29, 2025
4999d20
chore: fix all hydra linter issues
aeneasr Sep 29, 2025
7dae9af
autogen: update license overview
ory-bot Sep 29, 2025
c990851
autogen(sdk): bump to 75db758dab3afb34587dcfaf40935ee4ea69c7b6
aeneasr Sep 29, 2025
f1b99d1
autogen: update license overview
ory-bot Sep 29, 2025
1ca1020
chore: bump go deps
hperl Sep 29, 2025
bb338fe
autogen: update license overview
ory-bot Sep 29, 2025
98ba63c
autogen(sdk): bump to 887f0596597e68cf71c29209b1d47ed9852a035e
aeneasr Sep 29, 2025
c6a1a3c
autogen: update license overview
ory-bot Sep 29, 2025
1c3dbb0
chore: fix build for kratos-oss
adamwalach Sep 29, 2025
632c055
autogen: update license overview
ory-bot Sep 29, 2025
f6427da
chore: more gh actions and npm lib updates
deepakprabhakara Sep 30, 2025
bc4fc9b
autogen: update license overview
ory-bot Sep 30, 2025
994ea18
feat(hydra): configurable JWK cache
zepatrik Sep 30, 2025
586e089
autogen: update license overview
ory-bot Sep 30, 2025
a88bf39
chore: update Hydra dependencies
hperl Sep 30, 2025
6245243
autogen: update license overview
ory-bot Sep 30, 2025
ba6c18a
chore: npm security updates
deepakprabhakara Sep 30, 2025
89ae52f
autogen(docs): regenerate and update changelog
ory-bot Sep 30, 2025
bbac4a4
chore: remove redundant internal state
zepatrik Sep 30, 2025
51b7c70
autogen(docs): regenerate and update changelog
ory-bot Sep 30, 2025
05968cd
chore: update github actions
deepakprabhakara Oct 1, 2025
23e8fe0
autogen(docs): regenerate and update changelog
ory-bot Oct 1, 2025
692e41c
fix: use batch insert to speed up project changes
aeneasr Oct 2, 2025
09fa685
autogen(docs): regenerate and update changelog
ory-bot Oct 2, 2025
76079c0
fix: return 404 on schema file not exists
gaultier Oct 2, 2025
ffed3ad
autogen(docs): regenerate and update changelog
ory-bot Oct 2, 2025
9a226af
chore: remove internal fields from device challenge
zepatrik Oct 6, 2025
2163093
autogen(docs): regenerate and update changelog
ory-bot Oct 6, 2025
1cc4058
autogen(sdk): bump to 0b980b3a98f0c61f5be5ee6eb0f29cc6bd5af181
aeneasr Oct 6, 2025
fb7dc75
fix: remove strict decoding on consent and login endpoints
zepatrik Oct 7, 2025
7cc2120
autogen(docs): regenerate and update changelog
ory-bot Oct 7, 2025
ceacf86
chore: add pre-release workflows for oss
adamwalach Oct 7, 2025
8c53b91
autogen(docs): regenerate and update changelog
ory-bot Oct 7, 2025
1dacbb9
autogen(sdk): bump to 1e0b206c209b43caa27b0e34807889f13f50712f
aeneasr Oct 8, 2025
6884b97
chore: improve migration testdata and assertions
zepatrik Oct 9, 2025
b411d86
autogen(docs): regenerate and update changelog
ory-bot Oct 9, 2025
f4301e6
test: ensure current encoded flows stay valid
zepatrik Oct 9, 2025
6f8f35e
autogen(docs): regenerate and update changelog
ory-bot Oct 9, 2025
6445cd1
chore: cleanup oss workflows
adamwalach Oct 10, 2025
5170fe7
chore: update github actions
adamwalach Oct 10, 2025
b688b9b
chore: additional pop options
aeneasr Oct 15, 2025
4730683
autogen(sdk): bump to d158cdfbe28eebad111ae2f08380b877632fd1a4
aeneasr Oct 15, 2025
63e28b0
chore: remove superfluous flow fields and states
zepatrik Oct 15, 2025
c463c64
chore: remove unused random verifier fields
zepatrik Oct 15, 2025
36f21d0
chore(deps): update actions/setup-node action to v6
renovate[bot] Oct 15, 2025
3c33a64
chore: remove device challenge ID from API
zepatrik Oct 17, 2025
1449aff
chore(deps): update hadolint/hadolint-action action to v3.3.0
renovate[bot] Oct 17, 2025
573ce56
chore: update gha in oss
adamwalach Oct 19, 2025
172b36b
chore: split up consent manager
zepatrik Oct 20, 2025
6ac3c31
chore(deps): update hydra workflows
renovate[bot] Oct 20, 2025
ea8f607
chore(deps): update hydra
renovate[bot] Oct 21, 2025
ad05646
chore(deps): update oss workflows
renovate[bot] Oct 21, 2025
b6ac894
feat: full user-code configuration
zepatrik Oct 22, 2025
42b6a79
test: split up consent manager test
zepatrik Oct 23, 2025
b432e46
fix: regression in UsedTimes calculation
aeneasr Oct 24, 2025
fbc982a
fix: implicit transactions for cockroach v23.5 and simplified migrati…
aeneasr Oct 29, 2025
f8a53b0
feat: list clients by ID
zepatrik Oct 29, 2025
756708e
feat: custom page token column extraction
zepatrik Oct 29, 2025
edb9ba8
chore(deps): update dependency node to v24
renovate[bot] Oct 30, 2025
0d8a797
fix: better tracing in proxy HTTP
aeneasr Oct 30, 2025
0e7f000
chore: add migration tests in kratos non-oss for crdb
gaultier Oct 30, 2025
1c402e3
fix: add virtual expiry column to flow for easy cross-db querying
zepatrik Oct 30, 2025
7a92fb2
chore: update fosite to latest master commit
shaunnkhan Oct 31, 2025
bcbdf2f
autogen(sdk): bump to 1134d8d7d38f08eb085fe3869232c3ad2f1c1ab3
aeneasr Oct 31, 2025
2c3ba13
Merge branch 'fosite-monorepo'
hperl Oct 31, 2025
8ff62f8
feat: expose Ory-Error-Id HTTP header
aeneasr Nov 3, 2025
52c0432
feat: bump CRDB, establish foreign key,
alnr Nov 3, 2025
c309185
chore: refactored fosite interfaces
shaunnkhan Nov 5, 2025
ba0cb06
chore: remove db tags from fields that are not supposed to be stored
zepatrik Nov 5, 2025
1c6dc2a
chore: remove two more db field tags
zepatrik Nov 5, 2025
a8449c8
feat: improved events and identity recent activity
mszekiel Nov 6, 2025
4551eb6
fix: fixed typo in description of api
deepakprabhakara Nov 6, 2025
bb46e25
autogen(sdk): bump to 8289181d012b4ec6a0873200221f5b433aab384c
aeneasr Nov 6, 2025
ab35ad4
chore: update opencontainers/runc to v1.3.3
adamwalach Nov 6, 2025
de9baaa
autogen: prepare for OSS release - v25.4.0
github-actions[bot] Nov 7, 2025
2580424
autogen(docs): generate and bump docs
ory-bot Nov 7, 2025
0866b86
chore(deps): update golangci/golangci-lint-action action to v9
renovate[bot] Nov 8, 2025
d93a822
autogen(sdk): bump to 11290d8d01b00c2eecb1ddf7aa5a46b2f806fe82
aeneasr Nov 10, 2025
e8c8803
fix: remove flaky test for unused function
gaultier Nov 10, 2025
5884774
fix: context passing in jsonnetsecure
alnr Oct 27, 2025
dacd7fd
chore: split SCIM from multi-region & make it work with SQLite
gaultier Nov 10, 2025
9d96bbd
refactor: squash merge old backoffice migration and fix up command
aeneasr Nov 11, 2025
ea76644
chore: improve clidoc generation
aeneasr Nov 11, 2025
6f9af27
fix: correctly detect when to use self-signed certificates
zepatrik Nov 11, 2025
29ca852
chore: deprecate organization APIs
zepatrik Nov 11, 2025
0f16952
chore: rename and simplify some internals
zepatrik Nov 12, 2025
a341867
fix: do not cache pairwise subject algorithm
zepatrik Nov 13, 2025
10ec9bf
feat: make SCIM work with MySQL
gaultier Nov 14, 2025
db17987
chore: fosite and hydra interface enhancements
shaunnkhan Nov 14, 2025
1b6e8f3
autogen(sdk): bump to f149949f3fdd7b1264ce78c011d49dee61af52a2
aeneasr Nov 14, 2025
c28a6c8
fix: always retry curl invocations to surmount transient third-party …
gaultier Nov 20, 2025
9023ef4
chore: improve error reporting to help diagnose flaky test
gaultier Nov 20, 2025
d0e0659
fix: fix benchmark test
gaultier Nov 20, 2025
f33d6a8
fix: context passing and limit response size
alnr Nov 18, 2025
48cb166
chore: updated golang.org/x/crypto
deepakprabhakara Nov 21, 2025
2f10442
chore(deps): update actions/checkout action to v6
ory-bot Nov 21, 2025
6280d3a
chore: security updates for glob library
deepakprabhakara Nov 21, 2025
11c2b05
chore: more npm security updates
deepakprabhakara Nov 21, 2025
0c9364d
chore: add retries to more curl invocations
alnr Nov 21, 2025
20fd22c
chore(deps): update dependency @types/lodash to v4.17.21
ory-bot Nov 23, 2025
b8307f8
chore: added CLIENT_SECRET_VERIFIER to our deployment
deepakprabhakara Nov 24, 2025
a52a01e
chore: fully implement provider pattern
zepatrik Nov 26, 2025
6255bf8
chore: remove unused x/watcherx/websocket
gaultier Nov 26, 2025
822ea26
test(hydra): add plaintext backups for all DB types
zepatrik Nov 26, 2025
19e9987
chore: add helpers for Kratos OEL to support various databases
gaultier Nov 27, 2025
46846e9
feat: collect external latency data and write to logs
gaultier Nov 27, 2025
163c579
fix: correctly scan SQL `NULL` into go JSON types
zepatrik Nov 28, 2025
8ed407d
fix: broken older down migrations
zepatrik Dec 1, 2025
1f4b512
chore: drop flow table defaults
zepatrik Dec 2, 2025
e8586df
chore: remove unused code
gaultier Dec 2, 2025
724e425
feat: improved tracing
alnr Nov 28, 2025
517677c
chore: update pop to latest & only run pop.SetNowFunc() inside init()
gaultier Dec 4, 2025
5c51033
autogen(sdk): bump to 05ddc40c27a9fb30a648f0efc7aa5360fef9df7a
aeneasr Dec 4, 2025
eaa9393
chore: fix golangci-lint issues in Hydra
hperl Dec 4, 2025
106865d
fix(deps): update dependency prettier to v3.7.4
ory-bot Dec 5, 2025
d37af61
fix: x data race and parallize some tests
gaultier Dec 5, 2025
d2c58c4
autogen(sdk): bump to 453eb025ad68ecf42882f6c7f8405e230708d541
aeneasr Dec 5, 2025
b7b297e
chore: remove unnecessary check constraint
zepatrik Dec 8, 2025
223eadd
chore: remove internal address types
zepatrik Dec 8, 2025
e76172c
autogen(sdk): bump to 0747fafb24ad69bdee50488fdd1baa64a2988954
aeneasr Dec 8, 2025
2dd6b94
chore: simplify consent store
zepatrik Dec 9, 2025
fdca960
revert: simplify consent store
zepatrik Dec 9, 2025
c72853f
chore: remove unused internal AXv2 ACL check API
jonas-jonas Dec 9, 2025
028908f
chore: simplify consent store
zepatrik Dec 10, 2025
fc32cb5
chore(deps): update actions/cache action to v5
ory-bot Dec 12, 2025
8daeebb
docs: update readmes
aeneasr Dec 12, 2025
6309f91
autogen(sdk): bump to 9c2abd78343503d5ad1cc4b7a815220c38dd59e0
aeneasr Dec 15, 2025
4f8ff8e
test: fix multiple data races
gaultier Dec 16, 2025
a43d8f8
test: faster and more reliable courier tests
zepatrik Dec 17, 2025
cf77ed6
feat: optionally do not store skipped consents
zepatrik Dec 18, 2025
3357c2e
chore: bump to CRDB v25.4
alnr Dec 17, 2025
c7b53c0
chore: delete unused CRDB changefeed watcherx module
alnr Dec 17, 2025
262f85b
fix: data race in hydra-oss test
gaultier Dec 18, 2025
02c6085
chore: use pgx pool in Kratos OEL & fix some OEL commands not using e…
gaultier Dec 18, 2025
502b8cc
chore: remove unused log code
gaultier Dec 19, 2025
44347e7
fix: properly validate policy URI on client creation
jonas-jonas Dec 19, 2025
72e3747
chore: correct typos
ory-bot Dec 22, 2025
cdf972e
test: deflake and improve performance
zepatrik Dec 23, 2025
bbed48f
chore: update @openapitools/openapi-generator-cli
deepakprabhakara Dec 29, 2025
10df7e1
chore: always use ristretto/v2
zepatrik Jan 1, 2026
ea02ce9
test: deflake directory watcherx
zepatrik Jan 2, 2026
9746c8a
chore(kratos): use httprouter from ory/x
zepatrik Jan 7, 2026
640eb0b
feat: forward (some) user request headers to SMS HTTP channel
hperl Jan 8, 2026
e65fba7
test: minor setup improvements
zepatrik Jan 9, 2026
5364144
chore: configure mappers when creating onboarding portal
deepakprabhakara Jan 9, 2026
af69132
feat: rename project revision columns
hperl Jan 12, 2026
11db47b
chore(keto): use ory/x router
zepatrik Jan 13, 2026
37d18a6
chore: unify common dependency interfaces
zepatrik Jan 15, 2026
2dc4ebe
chore: simplify decoderx usage
zepatrik Jan 16, 2026
10b8b58
chore: run go mod tidy and misc cleanup
alnr Jan 19, 2026
d774b36
chore: audit and fix npm dependencies
hperl Jan 22, 2026
a6dda62
chore: simplify HTTP metrics instrumentation
zepatrik Jan 26, 2026
c760183
chore: update OSS ory.sh to ory.com
vinckr Jan 28, 2026
71e6385
chore: improve readability of popx.MigrationBox
hperl Jan 30, 2026
0ff58dd
chore: run npm audit fix
hperl Feb 2, 2026
6a041ef
feat: add support for NULL and more column types to keysetpagination
DavudSafarli Feb 3, 2026
6fd8a64
fix: remove WithDumpMigrations option to MigrationBox
alnr Feb 3, 2026
5b0360d
fix: down migrations in newer MySQL versions
alnr Feb 3, 2026
3ad64db
fix: transactions managed by fosite were not working
zepatrik Feb 3, 2026
a8142d0
fix: incorrect usage of database/sql
alnr Jan 22, 2026
f5b4aed
feat: hydra benchmarking tool
alnr Jan 22, 2026
a008e91
feat: automatic transaction retries for postgres
alnr Jan 27, 2026
5a12526
chore: clean up / compress recent migrations to avoid creating and dr…
alnr Jan 27, 2026
ae75488
fix: update packages to fix GHSA-7h2j-956f-4vf2
Demonsthere Feb 4, 2026
cb1bfce
autogen(sdk): bump to 17d4d13913cbfcaaec44f5c608a9f602d447adc8
aeneasr Feb 9, 2026
845cc4d
fix: update go modules
Demonsthere Feb 9, 2026
b1d203f
chore: updated axios
deepakprabhakara Feb 10, 2026
1819465
feat: add ratelimit buckets to swagger definitions
tricky42 Feb 12, 2026
5ca4c85
feat: use keysetpagination planner for keto read queries
DavudSafarli Feb 13, 2026
ce58946
fix: flaky tests on hydra-oss tests
lovelinuxalot Feb 16, 2026
8bd331c
feat: move search sidecar to its own docker image
alnr Feb 16, 2026
9f81a29
feat: keto-cli improvements
DavudSafarli Feb 18, 2026
47a9384
feat: generate events for SSO and SCIM provider revisions
niwsa Feb 18, 2026
74348bb
chore: bump to Go 1.26 massive cleanup in ory/x
alnr Feb 19, 2026
55dadd5
chore(deps): update mysql docker tag to v9.6
ory-bot Feb 21, 2026
f6b28db
fix: stray debug print
aeneasr Feb 27, 2026
82b1e3c
autogen(sdk): bump to 870c658ea99439b16d7ad40cd810477cf0dbc491
aeneasr Feb 27, 2026
f1290da
fix: incorrect default value for page_tokens
DavudSafarli Feb 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test(hydra): add snapshots for login & consent requests
GitOrigin-RevId: 47d041cf207af6c3e9e21bf3016e5ea0cf044344
  • Loading branch information
zepatrik authored and ory-bot committed Aug 21, 2025
commit 687cfae2092b90bcde11b0976b3f944bc8bb9a4a
2 changes: 1 addition & 1 deletion cmd/cmd_helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func setup(t *testing.T, cmd *cobra.Command) *driver.RegistrySQL {
return reg
}

var snapshotExcludedClientFields = []snapshotx.ExceptOpt{
var snapshotExcludedClientFields = []snapshotx.Opt{
snapshotx.ExceptNestedKeys("client_id"),
snapshotx.ExceptNestedKeys("registration_access_token"),
snapshotx.ExceptNestedKeys("registration_client_uri"),
Expand Down
3 changes: 1 addition & 2 deletions flow/flow_encoding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
"github.com/ory/hydra/v2/x"
"github.com/ory/x/configx"
"github.com/ory/x/snapshotx"
"github.com/ory/x/sqlxx"
)

func createTestFlow(nid uuid.UUID, state int16) *flow.Flow {
Expand All @@ -36,7 +35,7 @@ func createTestFlow(nid uuid.UUID, state int16) *flow.Flow {
NID: nid,
},
RequestURL: "https://example.org/oauth2/auth?client_id=test",
SessionID: sqlxx.NullString("session-123"),
SessionID: "session-123",
RequestedAt: time.Now(),
State: state,
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"acr": "acr-value",
"amr": [
"amr1",
"amr2"
],
"client": {
"access_token_strategy": "jwt",
"allowed_cors_origins": [],
"audience": [
"audience-1",
"audience-2"
],
"client_id": "64f78bf1-f388-4eeb-9fee-e7207226c6be-jwt",
"client_name": "",
"client_secret_expires_at": 0,
"client_uri": "",
"contacts": [],
"grant_types": [
"implicit",
"refresh_token",
"authorization_code",
"password",
"client_credentials"
],
"jwks": {},
"logo_uri": "",
"metadata": {},
"owner": "",
"policy_uri": "",
"redirect_uris": [
"https://client.ory/callback"
],
"response_types": [
"id_token",
"code",
"token"
],
"scope": "hydra offline openid",
"skip_consent": false,
"subject_type": "",
"tos_uri": ""
},
"device_challenge_id": "",
"oidc_context": {},
"requested_access_token_audience": [],
"requested_scope": [
"hydra",
"offline",
"openid"
],
"skip": false,
"subject": "c6a8ee1c-e0c4-404c-bba7-6a5b8702a2e9"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"client": {
"access_token_strategy": "jwt",
"allowed_cors_origins": [],
"audience": [
"audience-1",
"audience-2"
],
"client_id": "64f78bf1-f388-4eeb-9fee-e7207226c6be-jwt",
"client_name": "",
"client_secret_expires_at": 0,
"client_uri": "",
"contacts": [],
"grant_types": [
"implicit",
"refresh_token",
"authorization_code",
"password",
"client_credentials"
],
"jwks": {},
"logo_uri": "",
"metadata": {},
"owner": "",
"policy_uri": "",
"redirect_uris": [
"https://client.ory/callback"
],
"response_types": [
"id_token",
"code",
"token"
],
"scope": "hydra offline openid",
"skip_consent": false,
"subject_type": "",
"tos_uri": ""
},
"oidc_context": {},
"requested_access_token_audience": [],
"requested_scope": [
"hydra",
"offline",
"openid"
],
"skip": false,
"subject": ""
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"acr": "acr-value",
"amr": [
"amr1",
"amr2"
],
"client": {
"access_token_strategy": "opaque",
"allowed_cors_origins": [],
"audience": [
"audience-1",
"audience-2"
],
"client_id": "64f78bf1-f388-4eeb-9fee-e7207226c6be-opaque",
"client_name": "",
"client_secret_expires_at": 0,
"client_uri": "",
"contacts": [],
"grant_types": [
"implicit",
"refresh_token",
"authorization_code",
"password",
"client_credentials"
],
"jwks": {},
"logo_uri": "",
"metadata": {},
"owner": "",
"policy_uri": "",
"redirect_uris": [
"https://client.ory/callback"
],
"response_types": [
"id_token",
"code",
"token"
],
"scope": "hydra offline openid",
"skip_consent": false,
"subject_type": "",
"tos_uri": ""
},
"device_challenge_id": "",
"oidc_context": {},
"requested_access_token_audience": [],
"requested_scope": [
"hydra",
"offline",
"openid"
],
"skip": false,
"subject": "c6a8ee1c-e0c4-404c-bba7-6a5b8702a2e9"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"client": {
"access_token_strategy": "opaque",
"allowed_cors_origins": [],
"audience": [
"audience-1",
"audience-2"
],
"client_id": "64f78bf1-f388-4eeb-9fee-e7207226c6be-opaque",
"client_name": "",
"client_secret_expires_at": 0,
"client_uri": "",
"contacts": [],
"grant_types": [
"implicit",
"refresh_token",
"authorization_code",
"password",
"client_credentials"
],
"jwks": {},
"logo_uri": "",
"metadata": {},
"owner": "",
"policy_uri": "",
"redirect_uris": [
"https://client.ory/callback"
],
"response_types": [
"id_token",
"code",
"token"
],
"scope": "hydra offline openid",
"skip_consent": false,
"subject_type": "",
"tos_uri": ""
},
"oidc_context": {},
"requested_access_token_audience": [],
"requested_scope": [
"hydra",
"offline",
"openid"
],
"skip": false,
"subject": ""
}
22 changes: 14 additions & 8 deletions oauth2/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ import (
"testing"
"time"

"github.com/ory/hydra/v2/driver"
"github.com/ory/x/pointerx"

"github.com/go-jose/go-jose/v3"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand All @@ -22,13 +19,15 @@ import (

hydra "github.com/ory/hydra-client-go/v2"
"github.com/ory/hydra/v2/client"
"github.com/ory/x/uuidx"

"github.com/ory/hydra/v2/driver"
"github.com/ory/hydra/v2/driver/config"
"github.com/ory/hydra/v2/internal/testhelpers"
"github.com/ory/hydra/v2/jwk"
"github.com/ory/hydra/v2/x"
"github.com/ory/x/configx"
"github.com/ory/x/pointerx"
"github.com/ory/x/snapshotx"
"github.com/ory/x/uuidx"
)

func TestAuthCodeFlowE2E(t *testing.T) {
Expand Down Expand Up @@ -70,19 +69,26 @@ func TestAuthCodeFlowE2E(t *testing.T) {
cl, conf := newOAuth2Client(t, reg, testhelpers.ClientCallbackURL, func(c *client.Client) {
c.AccessTokenStrategy = accessTokenStrategy
c.Audience = []string{"audience-1", "audience-2"}
c.ID = "64f78bf1-f388-4eeb-9fee-e7207226c6be-" + accessTokenStrategy
})
sub := uuidx.NewV4().String()
sub := "c6a8ee1c-e0c4-404c-bba7-6a5b8702a2e9"

t.Run("access and id tokens with extra claims", func(t *testing.T) {
token := testhelpers.PerformAuthCodeFlow(t, conf, adminClient,
func(*testing.T, *hydra.OAuth2LoginRequest) hydra.AcceptOAuth2LoginRequest {
func(t *testing.T, req *hydra.OAuth2LoginRequest) hydra.AcceptOAuth2LoginRequest {
snapshotx.SnapshotT(t, req,
snapshotx.ExceptPaths("challenge", "client.created_at", "client.updated_at", "session_id", "request_url"),
snapshotx.WithName("login_request"))
return hydra.AcceptOAuth2LoginRequest{
Amr: []string{"amr1", "amr2"},
Acr: pointerx.Ptr("acr-value"),
Subject: sub,
}
},
func(*testing.T, *hydra.OAuth2ConsentRequest) hydra.AcceptOAuth2ConsentRequest {
func(t *testing.T, req *hydra.OAuth2ConsentRequest) hydra.AcceptOAuth2ConsentRequest {
snapshotx.SnapshotT(t, req,
snapshotx.ExceptPaths("challenge", "client.created_at", "client.updated_at", "consent_request_id", "login_challenge", "login_session_id", "request_url"),
snapshotx.WithName("consent_request"))
return hydra.AcceptOAuth2ConsentRequest{
GrantScope: []string{"openid"},
Session: &hydra.AcceptOAuth2ConsentRequestSession{
Expand Down
4 changes: 2 additions & 2 deletions oauth2/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ func TestHandlerWellKnown(t *testing.T) {
err = json.NewDecoder(res.Body).Decode(&wellKnownResp)
require.NoError(t, err, "problem decoding wellknown json response: %+v", err)

snapshotOpts := []snapshotx.ExceptOpt{}
snapshotOpts := []snapshotx.Opt{}
if reg.Config().HSMEnabled() {
// The signing algorithm is not stable in the HSM tests, because the key is kept
// in the HSM and persists across test runs.
Expand Down Expand Up @@ -415,7 +415,7 @@ func TestHandlerOauthAuthorizationServer(t *testing.T) {
var wellKnownResp hydra.OidcConfiguration
err = json.NewDecoder(res.Body).Decode(&wellKnownResp)
require.NoError(t, err, "problem decoding wellknown json response: %+v", err)
snapshotOpts := []snapshotx.ExceptOpt{}
snapshotOpts := []snapshotx.Opt{}
if reg.Config().HSMEnabled() {
// The signing algorithm is not stable in the HSM tests, because the key is kept
// in the HSM and persists across test runs.
Expand Down
2 changes: 1 addition & 1 deletion oryx/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ require (
github.com/ssoready/hyrumtoken v1.0.0
github.com/stretchr/testify v1.10.0
github.com/tidwall/gjson v1.18.0
github.com/tidwall/pretty v1.2.1
github.com/tidwall/sjson v1.2.5
github.com/urfave/negroni v1.0.0
go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace v0.62.0
Expand Down Expand Up @@ -199,6 +198,7 @@ require (
github.com/sourcegraph/syntaxhighlight v0.0.0-20170531221838-bd320f5d308e // indirect
github.com/stretchr/objx v0.5.2 // indirect
github.com/tidwall/match v1.1.1 // indirect
github.com/tidwall/pretty v1.2.1 // indirect
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
github.com/xeipuuv/gojsonschema v1.2.0 // indirect
Expand Down
Loading