Skip to content

Commit a848a71

Browse files
committed
fix(client): update snapshot and fix import ordering
Remove contacts field from snapshot to match omitempty serialization and fix goimports ordering in oryx package files to pass CI format check.
1 parent adaffc0 commit a848a71

12 files changed

+12
-28
lines changed

client/.snapshots/TestHandler-common-case=fetching_existing_client-endpoint=admin.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"audience": [],
1111
"owner": "",
1212
"allowed_cors_origins": [],
13-
"contacts": [],
1413
"client_secret_expires_at": 0,
1514
"subject_type": "public",
1615
"jwks": {},

client/.snapshots/TestHandler-common-case=fetching_existing_client-endpoint=selfservice.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"audience": [],
1111
"owner": "",
1212
"allowed_cors_origins": [],
13-
"contacts": [],
1413
"client_secret_expires_at": 0,
1514
"subject_type": "public",
1615
"jwks": {},

client/.snapshots/TestHandler-common-case=update_the_lifespans_of_an_OAuth2_client.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"audience": [],
1111
"owner": "",
1212
"allowed_cors_origins": [],
13-
"contacts": [],
1413
"client_secret_expires_at": 0,
1514
"subject_type": "public",
1615
"jwks": {},

cmd/.snapshots/TestGetClient-case=gets_client.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@
77
"scope": "",
88
"skip_consent": false,
99
"subject_type": "",
10-
"token_endpoint_auth_method": "client_secret_post",
11-
"tos_uri": ""
10+
"token_endpoint_auth_method": "client_secret_post"
1211
}

cmd/.snapshots/TestGetClient-case=gets_multiple_clients.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"audience": [],
55
"client_name": "",
66
"client_secret_expires_at": 0,
7-
"contacts": [],
87
"grant_types": [],
98
"jwks": {},
109
"metadata": {},
@@ -14,15 +13,13 @@
1413
"scope": "",
1514
"skip_consent": false,
1615
"subject_type": "",
17-
"token_endpoint_auth_method": "client_secret_post",
18-
"tos_uri": ""
16+
"token_endpoint_auth_method": "client_secret_post"
1917
},
2018
{
2119
"allowed_cors_origins": [],
2220
"audience": [],
2321
"client_name": "",
2422
"client_secret_expires_at": 0,
25-
"contacts": [],
2623
"grant_types": [],
2724
"jwks": {},
2825
"metadata": {},
@@ -32,7 +29,6 @@
3229
"scope": "",
3330
"skip_consent": false,
3431
"subject_type": "",
35-
"token_endpoint_auth_method": "client_secret_post",
36-
"tos_uri": ""
32+
"token_endpoint_auth_method": "client_secret_post"
3733
}
3834
]

oauth2/.snapshots/TestAuthCodeFlowE2E-auth_code_flow-strategy=jwt-access_and_id_tokens_with_extra_claims_consent_request.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"client_id": "64f78bf1-f388-4eeb-9fee-e7207226c6be-jwt",
1515
"client_name": "",
1616
"client_secret_expires_at": 0,
17-
"contacts": [],
1817
"grant_types": [
1918
"implicit",
2019
"refresh_token",
@@ -35,8 +34,7 @@
3534
],
3635
"scope": "hydra offline openid",
3736
"skip_consent": false,
38-
"subject_type": "",
39-
"tos_uri": ""
37+
"subject_type": ""
4038
},
4139
"oidc_context": {},
4240
"requested_access_token_audience": [],

oauth2/.snapshots/TestAuthCodeFlowE2E-auth_code_flow-strategy=jwt-access_and_id_tokens_with_extra_claims_login_request.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"client_id": "64f78bf1-f388-4eeb-9fee-e7207226c6be-jwt",
1010
"client_name": "",
1111
"client_secret_expires_at": 0,
12-
"contacts": [],
1312
"grant_types": [
1413
"implicit",
1514
"refresh_token",
@@ -30,8 +29,7 @@
3029
],
3130
"scope": "hydra offline openid",
3231
"skip_consent": false,
33-
"subject_type": "",
34-
"tos_uri": ""
32+
"subject_type": ""
3533
},
3634
"oidc_context": {},
3735
"requested_access_token_audience": [],

oauth2/.snapshots/TestAuthCodeFlowE2E-auth_code_flow-strategy=opaque-access_and_id_tokens_with_extra_claims_consent_request.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"client_id": "64f78bf1-f388-4eeb-9fee-e7207226c6be-opaque",
1515
"client_name": "",
1616
"client_secret_expires_at": 0,
17-
"contacts": [],
1817
"grant_types": [
1918
"implicit",
2019
"refresh_token",
@@ -35,8 +34,7 @@
3534
],
3635
"scope": "hydra offline openid",
3736
"skip_consent": false,
38-
"subject_type": "",
39-
"tos_uri": ""
37+
"subject_type": ""
4038
},
4139
"oidc_context": {},
4240
"requested_access_token_audience": [],

oauth2/.snapshots/TestAuthCodeFlowE2E-auth_code_flow-strategy=opaque-access_and_id_tokens_with_extra_claims_login_request.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"client_id": "64f78bf1-f388-4eeb-9fee-e7207226c6be-opaque",
1010
"client_name": "",
1111
"client_secret_expires_at": 0,
12-
"contacts": [],
1312
"grant_types": [
1413
"implicit",
1514
"refresh_token",
@@ -30,8 +29,7 @@
3029
],
3130
"scope": "hydra offline openid",
3231
"skip_consent": false,
33-
"subject_type": "",
34-
"tos_uri": ""
32+
"subject_type": ""
3533
},
3634
"oidc_context": {},
3735
"requested_access_token_audience": [],

oryx/dbal/testhelpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ import (
1010
"regexp"
1111
"testing"
1212

13-
"github.com/ory/x/sqlcon/dockertest"
1413
"github.com/pkg/errors"
1514
"github.com/stretchr/testify/require"
1615

1716
"github.com/ory/pop/v6"
1817
"github.com/ory/x/fsx"
18+
"github.com/ory/x/sqlcon/dockertest"
1919
)
2020

2121
var hashDumpRegex = regexp.MustCompile(`-- migrations hash: ([^\n]+)\n`)

0 commit comments

Comments
 (0)