diff --git a/access_error.go b/access_error.go index 85236715b..9521770f5 100644 --- a/access_error.go +++ b/access_error.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/access_error_test.go b/access_error_test.go index 32987e17c..d27f201d1 100644 --- a/access_error_test.go +++ b/access_error_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite_test diff --git a/access_request.go b/access_request.go index de546005e..59179cc6b 100644 --- a/access_request.go +++ b/access_request.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/access_request_handler.go b/access_request_handler.go index 45ddec6db..7f871c82e 100644 --- a/access_request_handler.go +++ b/access_request_handler.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite @@ -65,6 +65,12 @@ func (f *Fosite) NewAccessRequest(ctx context.Context, r *http.Request, session } accessRequest.SetRequestedScopes(RemoveEmpty(strings.Split(r.PostForm.Get("scope"), " "))) + // RFC 8707: validate the shape of any "resource" parameter values (absolute URI, + // no fragment) before they are merged into the audience list by GetAudiences. + // If "resource" is absent, ValidateResourceIndicators is a no-op. + if _, err := ValidateResourceIndicators(r.PostForm); err != nil { + return accessRequest, err + } accessRequest.SetRequestedAudience(GetAudiences(r.PostForm)) accessRequest.GrantTypes = RemoveEmpty(strings.Split(r.PostForm.Get("grant_type"), " ")) if len(accessRequest.GrantTypes) < 1 { diff --git a/access_request_handler_test.go b/access_request_handler_test.go index f185c2ddd..f2d703a77 100644 --- a/access_request_handler_test.go +++ b/access_request_handler_test.go @@ -1,9 +1,10 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite_test import ( + "context" "encoding/base64" "fmt" "net/http" @@ -446,3 +447,104 @@ func TestNewAccessRequestWithMixedClientAuth(t *testing.T) { func basicAuth(username, password string) string { return "Basic " + base64.StdEncoding.EncodeToString([]byte(fmt.Sprintf("%s:%s", username, password))) } + +// TestNewAccessRequest_RFC8707Resource exercises the RFC 8707 "resource" +// parameter through the full NewAccessRequest pipeline. It verifies that: +// 1. A valid "resource" parameter is parsed and surfaced on the request via +// GetRequestedAudience(), so downstream handlers can bind the audience. +// 2. An invalid "resource" parameter (relative URI, fragment) is rejected +// before client authentication or handler dispatch. +// 3. Existing "audience"-only requests are unaffected (backward compatibility). +func TestNewAccessRequest_RFC8707Resource(t *testing.T) { + ctrl := gomock.NewController(t) + defer ctrl.Finish() + store := internal.NewMockStorage(ctrl) + handler := internal.NewMockTokenEndpointHandler(ctrl) + handler.EXPECT().CanHandleTokenEndpointRequest(gomock.Any(), gomock.Any()).Return(true).AnyTimes() + handler.EXPECT().CanSkipClientAuth(gomock.Any(), gomock.Any()).Return(true).AnyTimes() + hasher := internal.NewMockHasher(ctrl) + + config := &Config{ + ClientSecretsHasher: hasher, + AudienceMatchingStrategy: DefaultAudienceMatchingStrategy, + TokenEndpointHandlers: TokenEndpointHandlers{handler}, + } + f := &Fosite{Store: store, Config: config} + + for _, tc := range []struct { + name string + form url.Values + wantErr bool + wantAudience []string + }{ + { + name: "resource only, single valid URI", + form: url.Values{ + "grant_type": {"foo"}, + "resource": {"https://mcp.example.com"}, + }, + wantAudience: []string{"https://mcp.example.com"}, + }, + { + name: "resource only, multiple valid URIs", + form: url.Values{ + "grant_type": {"foo"}, + "resource": {"https://a.example.com", "https://b.example.com"}, + }, + wantAudience: []string{"https://a.example.com", "https://b.example.com"}, + }, + { + name: "audience and resource merged", + form: url.Values{ + "grant_type": {"foo"}, + "audience": {"https://aud.example.com"}, + "resource": {"https://res.example.com"}, + }, + wantAudience: []string{"https://aud.example.com", "https://res.example.com"}, + }, + { + name: "audience only is unchanged (backward compat)", + form: url.Values{ + "grant_type": {"foo"}, + "audience": {"https://aud.example.com"}, + }, + wantAudience: []string{"https://aud.example.com"}, + }, + { + name: "invalid resource (relative URI) is rejected", + form: url.Values{ + "grant_type": {"foo"}, + "resource": {"/relative/path"}, + }, + wantErr: true, + }, + { + name: "invalid resource (fragment) is rejected", + form: url.Values{ + "grant_type": {"foo"}, + "resource": {"https://mcp.example.com/api#section"}, + }, + wantErr: true, + }, + } { + t.Run(tc.name, func(t *testing.T) { + if !tc.wantErr { + handler.EXPECT().HandleTokenEndpointRequest(gomock.Any(), gomock.Any()).Return(nil).Times(1) + } + + r := &http.Request{ + Header: http.Header{}, + PostForm: tc.form, + Form: tc.form, + Method: "POST", + } + ar, err := f.NewAccessRequest(context.Background(), r, new(DefaultSession)) + if tc.wantErr { + require.Error(t, err) + return + } + require.NoError(t, err) + assert.Equal(t, tc.wantAudience, []string(ar.GetRequestedAudience())) + }) + } +} diff --git a/access_request_test.go b/access_request_test.go index 839cb86f3..2cc7cce8a 100644 --- a/access_request_test.go +++ b/access_request_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/access_response.go b/access_response.go index be827644e..9b0dbc80e 100644 --- a/access_response.go +++ b/access_response.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/access_response_test.go b/access_response_test.go index 270af6663..4e034de95 100644 --- a/access_response_test.go +++ b/access_response_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite_test diff --git a/access_response_writer.go b/access_response_writer.go index 803250c03..90db89885 100644 --- a/access_response_writer.go +++ b/access_response_writer.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/access_response_writer_test.go b/access_response_writer_test.go index d6f6bd8d7..525a08a62 100644 --- a/access_response_writer_test.go +++ b/access_response_writer_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite_test diff --git a/access_write.go b/access_write.go index a8f1fd6a2..2e8d949e9 100644 --- a/access_write.go +++ b/access_write.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/access_write_test.go b/access_write_test.go index 46219eecd..4044d0785 100644 --- a/access_write_test.go +++ b/access_write_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite_test diff --git a/arguments.go b/arguments.go index f037919f6..8551b5051 100644 --- a/arguments.go +++ b/arguments.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/arguments_test.go b/arguments_test.go index 6e5bef853..be1873d0d 100644 --- a/arguments_test.go +++ b/arguments_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/audience_strategy.go b/audience_strategy.go index 61d836da1..cab4a5a35 100644 --- a/audience_strategy.go +++ b/audience_strategy.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite @@ -81,19 +81,111 @@ func ExactAudienceMatchingStrategy(haystack []string, needle []string) error { // query parameters, while RFC 6749 says that that request parameter must not be included // more than once (and thus why we use space-delimited value). This function tries to satisfy both. // If "audience" form parameter is repeated, we do not split the value by space. +// +// In addition, this function reads the RFC 8707 "resource" parameter +// (https://datatracker.ietf.org/doc/html/rfc8707#section-2). Per the spec, "resource" +// is a repeatable parameter; each value is treated as an audience indicator and is +// merged with any values supplied through the "audience" parameter. Unlike "audience", +// the "resource" parameter values are NOT space-split — RFC 8707 mandates one URI per +// parameter occurrence. Duplicate values across "audience" and "resource" are +// de-duplicated while preserving the order of first appearance ("audience" values +// first, then "resource" values). +// +// Note: this function does not validate that "resource" values are absolute URIs +// without a fragment as required by RFC 8707 §2 — that validation is performed by +// ValidateResourceIndicators, which callers invoke after parsing. func GetAudiences(form url.Values) []string { - audiences := form["audience"] - if len(audiences) > 1 { - return RemoveEmpty(audiences) - } else if len(audiences) == 1 { - return RemoveEmpty(strings.Split(audiences[0], " ")) - } else { - return []string{} + var audiences []string + formAudiences := form["audience"] + if len(formAudiences) > 1 { + audiences = RemoveEmpty(formAudiences) + } else if len(formAudiences) == 1 { + audiences = RemoveEmpty(strings.Split(formAudiences[0], " ")) } + + resources := RemoveEmpty(form["resource"]) + if len(resources) == 0 { + if audiences == nil { + return []string{} + } + return audiences + } + + // Merge audience and resource values, preserving order and de-duplicating. + seen := make(map[string]struct{}, len(audiences)+len(resources)) + merged := make([]string, 0, len(audiences)+len(resources)) + for _, v := range audiences { + if _, ok := seen[v]; ok { + continue + } + seen[v] = struct{}{} + merged = append(merged, v) + } + for _, v := range resources { + if _, ok := seen[v]; ok { + continue + } + seen[v] = struct{}{} + merged = append(merged, v) + } + return merged +} + +// ValidateResourceIndicators validates that every value of the RFC 8707 "resource" +// form parameter is an absolute URI without a fragment, as required by RFC 8707 §2: +// +// The "resource" parameter URI value MUST NOT include a fragment component. +// ... It MUST be an absolute URI as specified by Section 4.3 of [RFC3986]. +// +// On success the validated resource values are returned. If the form contains no +// "resource" parameter, the function returns (nil, nil) — RFC 8707 is opt-in. +// +// Callers (e.g. the access and authorize request pipelines) should invoke this +// function after parsing the form and reject the request with ErrInvalidTarget +// (RFC 8707 §3, the "invalid_target" error code) when validation fails. Because +// fosite does not yet ship a dedicated "invalid_target" error, ErrInvalidRequest +// is the closest fit in current callers; this function returns a plain error so +// the caller can wrap it appropriately. +func ValidateResourceIndicators(form url.Values) ([]string, error) { + resources, ok := form["resource"] + if !ok { + return nil, nil + } + resources = RemoveEmpty(resources) + if len(resources) == 0 { + return nil, nil + } + + for _, r := range resources { + u, err := url.Parse(r) + if err != nil { + return nil, errorsx.WithStack(ErrInvalidRequest. + WithHintf("Unable to parse 'resource' parameter value '%s'.", r). + WithWrap(err).WithDebug(err.Error())) + } + if !u.IsAbs() { + return nil, errorsx.WithStack(ErrInvalidRequest. + WithHintf("The 'resource' parameter value '%s' must be an absolute URI as per RFC 8707.", r)) + } + if u.Fragment != "" || strings.Contains(r, "#") { + return nil, errorsx.WithStack(ErrInvalidRequest. + WithHintf("The 'resource' parameter value '%s' must not contain a fragment component as per RFC 8707.", r)) + } + } + return resources, nil } func (f *Fosite) validateAudience(ctx context.Context, r *http.Request, request Requester) error { - audience := GetAudiences(request.GetRequestForm()) + form := request.GetRequestForm() + + // RFC 8707: validate "resource" parameter shape (absolute URI, no fragment) + // before merging into the audience list. Validation runs unconditionally — if + // the parameter is absent, ValidateResourceIndicators is a no-op. + if _, err := ValidateResourceIndicators(form); err != nil { + return err + } + + audience := GetAudiences(form) if err := f.Config.GetAudienceStrategy(ctx)(request.GetClient().GetAudience(), audience); err != nil { return err diff --git a/audience_strategy_test.go b/audience_strategy_test.go index dccf5b359..afbc71c95 100644 --- a/audience_strategy_test.go +++ b/audience_strategy_test.go @@ -1,12 +1,14 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite import ( "fmt" + "net/url" "testing" + "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) @@ -255,3 +257,151 @@ func TestExactAudienceMatchingStrategy(t *testing.T) { }) } } + +func TestGetAudiences(t *testing.T) { + for _, tc := range []struct { + name string + form url.Values + want []string + }{ + { + name: "empty form returns empty slice", + form: url.Values{}, + want: []string{}, + }, + // Existing "audience" parameter behavior — preserved. + { + name: "single audience parameter, space-delimited values are split", + form: url.Values{"audience": {"https://a.example.com https://b.example.com"}}, + want: []string{"https://a.example.com", "https://b.example.com"}, + }, + { + name: "repeated audience parameter, values not split on space", + form: url.Values{"audience": {"https://a.example.com", "https://b.example.com"}}, + want: []string{"https://a.example.com", "https://b.example.com"}, + }, + // RFC 8707 "resource" parameter. + { + name: "single resource parameter is returned", + form: url.Values{"resource": {"https://mcp.example.com"}}, + want: []string{"https://mcp.example.com"}, + }, + { + name: "repeated resource parameter is returned, not split on space", + form: url.Values{"resource": {"https://a.example.com", "https://b.example.com"}}, + want: []string{"https://a.example.com", "https://b.example.com"}, + }, + { + name: "resource is not split on space (one URI per parameter occurrence per RFC 8707)", + // "https://a https://b" is technically an invalid resource value per RFC 8707 + // (must be an absolute URI). GetAudiences does NOT validate — it just returns + // the raw value verbatim so ValidateResourceIndicators can reject it. + form: url.Values{"resource": {"https://a.example.com https://b.example.com"}}, + want: []string{"https://a.example.com https://b.example.com"}, + }, + { + name: "audience and resource are merged, audience first", + form: url.Values{ + "audience": {"https://aud.example.com"}, + "resource": {"https://res.example.com"}, + }, + want: []string{"https://aud.example.com", "https://res.example.com"}, + }, + { + name: "duplicates across audience and resource are de-duplicated", + form: url.Values{ + "audience": {"https://shared.example.com", "https://aud-only.example.com"}, + "resource": {"https://shared.example.com", "https://res-only.example.com"}, + }, + want: []string{"https://shared.example.com", "https://aud-only.example.com", "https://res-only.example.com"}, + }, + { + name: "duplicates within resource are de-duplicated", + form: url.Values{ + "resource": {"https://a.example.com", "https://a.example.com", "https://b.example.com"}, + }, + want: []string{"https://a.example.com", "https://b.example.com"}, + }, + { + name: "empty resource value is filtered out", + form: url.Values{ + "resource": {"", "https://a.example.com"}, + }, + want: []string{"https://a.example.com"}, + }, + } { + t.Run(tc.name, func(t *testing.T) { + assert.Equal(t, tc.want, GetAudiences(tc.form)) + }) + } +} + +func TestValidateResourceIndicators(t *testing.T) { + for _, tc := range []struct { + name string + form url.Values + want []string + wantErr bool + }{ + { + name: "absent resource parameter is a no-op", + form: url.Values{}, + want: nil, + }, + { + name: "empty resource value is a no-op", + form: url.Values{"resource": {""}}, + want: nil, + }, + { + name: "single valid absolute URI", + form: url.Values{"resource": {"https://mcp.example.com"}}, + want: []string{"https://mcp.example.com"}, + }, + { + name: "multiple valid absolute URIs", + form: url.Values{"resource": {"https://a.example.com", "https://b.example.com/api"}}, + want: []string{"https://a.example.com", "https://b.example.com/api"}, + }, + { + name: "URN scheme is a valid absolute URI", + form: url.Values{"resource": {"urn:example:resource"}}, + want: []string{"urn:example:resource"}, + }, + { + name: "relative URI is rejected", + form: url.Values{"resource": {"/api/v1"}}, + wantErr: true, + }, + { + name: "missing scheme is rejected", + form: url.Values{"resource": {"mcp.example.com/api"}}, + wantErr: true, + }, + { + name: "URI with fragment is rejected", + form: url.Values{"resource": {"https://mcp.example.com/api#section"}}, + wantErr: true, + }, + { + name: "URI with empty fragment marker is rejected", + form: url.Values{"resource": {"https://mcp.example.com/api#"}}, + wantErr: true, + }, + { + name: "one invalid value among many fails the whole batch", + form: url.Values{"resource": {"https://a.example.com", "not-a-uri"}}, + wantErr: true, + }, + } { + t.Run(tc.name, func(t *testing.T) { + got, err := ValidateResourceIndicators(tc.form) + if tc.wantErr { + require.Error(t, err) + return + } + require.NoError(t, err) + assert.Equal(t, tc.want, got) + }) + } +} diff --git a/authorize_error.go b/authorize_error.go index 7247cb743..5e04e44aa 100644 --- a/authorize_error.go +++ b/authorize_error.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/authorize_error_test.go b/authorize_error_test.go index 0ca2265bd..46107812d 100644 --- a/authorize_error_test.go +++ b/authorize_error_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite_test diff --git a/authorize_helper.go b/authorize_helper.go index 51bfab2b4..f9cf6bb9a 100644 --- a/authorize_helper.go +++ b/authorize_helper.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/authorize_helper_test.go b/authorize_helper_test.go index 00a84276b..a8384aa36 100644 --- a/authorize_helper_test.go +++ b/authorize_helper_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite_test diff --git a/authorize_helper_whitebox_test.go b/authorize_helper_whitebox_test.go index 52a4bba5e..0b80272e1 100644 --- a/authorize_helper_whitebox_test.go +++ b/authorize_helper_whitebox_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/authorize_request.go b/authorize_request.go index a18747843..54b1cda1e 100644 --- a/authorize_request.go +++ b/authorize_request.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/authorize_request_handler.go b/authorize_request_handler.go index 61b5d957a..868ee617a 100644 --- a/authorize_request_handler.go +++ b/authorize_request_handler.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/authorize_request_handler_oidc_request_test.go b/authorize_request_handler_oidc_request_test.go index f8a2636c5..aced270b7 100644 --- a/authorize_request_handler_oidc_request_test.go +++ b/authorize_request_handler_oidc_request_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/authorize_request_handler_test.go b/authorize_request_handler_test.go index 84921ac4d..1e6471594 100644 --- a/authorize_request_handler_test.go +++ b/authorize_request_handler_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite_test @@ -277,6 +277,121 @@ func TestNewAuthorizeRequest(t *testing.T) { }, }, }, + /* RFC 8707 resource parameter — single value */ + { + desc: "RFC 8707 resource parameter (single)", + conf: &Fosite{Store: store, Config: &Config{ScopeStrategy: ExactScopeStrategy, AudienceMatchingStrategy: DefaultAudienceMatchingStrategy}}, + query: url.Values{ + "redirect_uri": {"https://foo.bar/cb"}, + "client_id": {"1234"}, + "response_type": {"code token"}, + "state": {"strong-state"}, + "scope": {"foo bar"}, + "resource": {"https://mcp.example.com"}, + }, + mock: func() { + store.EXPECT().GetClient(gomock.Any(), "1234").Return(&DefaultClient{ + ResponseTypes: []string{"code token"}, + RedirectURIs: []string{"https://foo.bar/cb"}, + Scopes: []string{"foo", "bar"}, + Audience: []string{"https://mcp.example.com"}, + }, nil) + }, + expect: &AuthorizeRequest{ + RedirectURI: redir, + ResponseTypes: []string{"code", "token"}, + State: "strong-state", + Request: Request{ + Client: &DefaultClient{ + ResponseTypes: []string{"code token"}, RedirectURIs: []string{"https://foo.bar/cb"}, + Scopes: []string{"foo", "bar"}, + Audience: []string{"https://mcp.example.com"}, + }, + RequestedScope: []string{"foo", "bar"}, + RequestedAudience: []string{"https://mcp.example.com"}, + }, + }, + }, + /* RFC 8707 resource parameter merged with audience parameter */ + { + desc: "RFC 8707 resource parameter merged with audience parameter", + conf: &Fosite{Store: store, Config: &Config{ScopeStrategy: ExactScopeStrategy, AudienceMatchingStrategy: DefaultAudienceMatchingStrategy}}, + query: url.Values{ + "redirect_uri": {"https://foo.bar/cb"}, + "client_id": {"1234"}, + "response_type": {"code token"}, + "state": {"strong-state"}, + "scope": {"foo bar"}, + "audience": {"https://aud.example.com"}, + "resource": {"https://res.example.com"}, + }, + mock: func() { + store.EXPECT().GetClient(gomock.Any(), "1234").Return(&DefaultClient{ + ResponseTypes: []string{"code token"}, + RedirectURIs: []string{"https://foo.bar/cb"}, + Scopes: []string{"foo", "bar"}, + Audience: []string{"https://aud.example.com", "https://res.example.com"}, + }, nil) + }, + expect: &AuthorizeRequest{ + RedirectURI: redir, + ResponseTypes: []string{"code", "token"}, + State: "strong-state", + Request: Request{ + Client: &DefaultClient{ + ResponseTypes: []string{"code token"}, RedirectURIs: []string{"https://foo.bar/cb"}, + Scopes: []string{"foo", "bar"}, + Audience: []string{"https://aud.example.com", "https://res.example.com"}, + }, + RequestedScope: []string{"foo", "bar"}, + RequestedAudience: []string{"https://aud.example.com", "https://res.example.com"}, + }, + }, + }, + /* RFC 8707 resource parameter — invalid (relative URI) is rejected */ + { + desc: "RFC 8707 resource parameter (invalid relative URI)", + conf: &Fosite{Store: store, Config: &Config{ScopeStrategy: ExactScopeStrategy, AudienceMatchingStrategy: DefaultAudienceMatchingStrategy}}, + query: url.Values{ + "redirect_uri": {"https://foo.bar/cb"}, + "client_id": {"1234"}, + "response_type": {"code token"}, + "state": {"strong-state"}, + "scope": {"foo bar"}, + "resource": {"/relative/path"}, + }, + mock: func() { + store.EXPECT().GetClient(gomock.Any(), "1234").Return(&DefaultClient{ + ResponseTypes: []string{"code token"}, + RedirectURIs: []string{"https://foo.bar/cb"}, + Scopes: []string{"foo", "bar"}, + Audience: []string{"https://mcp.example.com"}, + }, nil) + }, + expectedError: ErrInvalidRequest, + }, + /* RFC 8707 resource parameter — invalid (fragment) is rejected */ + { + desc: "RFC 8707 resource parameter (fragment rejected)", + conf: &Fosite{Store: store, Config: &Config{ScopeStrategy: ExactScopeStrategy, AudienceMatchingStrategy: DefaultAudienceMatchingStrategy}}, + query: url.Values{ + "redirect_uri": {"https://foo.bar/cb"}, + "client_id": {"1234"}, + "response_type": {"code token"}, + "state": {"strong-state"}, + "scope": {"foo bar"}, + "resource": {"https://mcp.example.com/api#section"}, + }, + mock: func() { + store.EXPECT().GetClient(gomock.Any(), "1234").Return(&DefaultClient{ + ResponseTypes: []string{"code token"}, + RedirectURIs: []string{"https://foo.bar/cb"}, + Scopes: []string{"foo", "bar"}, + Audience: []string{"https://mcp.example.com"}, + }, nil) + }, + expectedError: ErrInvalidRequest, + }, /* redirect_uri with special character in protocol*/ { desc: "redirect_uri with special character", diff --git a/authorize_request_test.go b/authorize_request_test.go index 5886435cc..0af6fec1e 100644 --- a/authorize_request_test.go +++ b/authorize_request_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/authorize_response.go b/authorize_response.go index fc84ffa41..9801f6465 100644 --- a/authorize_response.go +++ b/authorize_response.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/authorize_response_test.go b/authorize_response_test.go index fc47dba43..1577bfe63 100644 --- a/authorize_response_test.go +++ b/authorize_response_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/authorize_response_writer.go b/authorize_response_writer.go index fa239f5b5..e211f1e2c 100644 --- a/authorize_response_writer.go +++ b/authorize_response_writer.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/authorize_response_writer_test.go b/authorize_response_writer_test.go index caa0d996c..c09ae286c 100644 --- a/authorize_response_writer_test.go +++ b/authorize_response_writer_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite_test diff --git a/authorize_validators_test.go b/authorize_validators_test.go index 36705fb62..c4ddc991c 100644 --- a/authorize_validators_test.go +++ b/authorize_validators_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/authorize_write.go b/authorize_write.go index f254a8358..52b846999 100644 --- a/authorize_write.go +++ b/authorize_write.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/authorize_write_test.go b/authorize_write_test.go index 2174c52d2..d094e2a7b 100644 --- a/authorize_write_test.go +++ b/authorize_write_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite_test diff --git a/client.go b/client.go index b40149671..d9596ab37 100644 --- a/client.go +++ b/client.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/client_authentication.go b/client_authentication.go index 251509199..4f47bc453 100644 --- a/client_authentication.go +++ b/client_authentication.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/client_authentication_jwks_strategy.go b/client_authentication_jwks_strategy.go index 3e90cb89b..a31544835 100644 --- a/client_authentication_jwks_strategy.go +++ b/client_authentication_jwks_strategy.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/client_authentication_jwks_strategy_test.go b/client_authentication_jwks_strategy_test.go index 93ce74710..1382dbf50 100644 --- a/client_authentication_jwks_strategy_test.go +++ b/client_authentication_jwks_strategy_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/client_authentication_test.go b/client_authentication_test.go index aee4d6b59..a32369fff 100644 --- a/client_authentication_test.go +++ b/client_authentication_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite_test diff --git a/client_manager.go b/client_manager.go index 4e9685dc0..1959376b3 100644 --- a/client_manager.go +++ b/client_manager.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/client_test.go b/client_test.go index d1ce2e3be..568f1332c 100644 --- a/client_test.go +++ b/client_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/client_with_custom_token_lifespans.go b/client_with_custom_token_lifespans.go index b46e2ba54..b4eb7bb85 100644 --- a/client_with_custom_token_lifespans.go +++ b/client_with_custom_token_lifespans.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/client_with_custom_token_lifespans_test.go b/client_with_custom_token_lifespans_test.go index 813645c83..022d91e3d 100644 --- a/client_with_custom_token_lifespans_test.go +++ b/client_with_custom_token_lifespans_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/compose/compose.go b/compose/compose.go index 2a5ee9187..557bc677a 100644 --- a/compose/compose.go +++ b/compose/compose.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package compose diff --git a/compose/compose_oauth2.go b/compose/compose_oauth2.go index 9f0eee3de..d64508f6f 100644 --- a/compose/compose_oauth2.go +++ b/compose/compose_oauth2.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package compose diff --git a/compose/compose_openid.go b/compose/compose_openid.go index 1486bdf23..01ecf7d3b 100644 --- a/compose/compose_openid.go +++ b/compose/compose_openid.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package compose diff --git a/compose/compose_par.go b/compose/compose_par.go index dc2513313..b9f234d4d 100644 --- a/compose/compose_par.go +++ b/compose/compose_par.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package compose diff --git a/compose/compose_pkce.go b/compose/compose_pkce.go index ff5d660e3..146b79af8 100644 --- a/compose/compose_pkce.go +++ b/compose/compose_pkce.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package compose diff --git a/compose/compose_rfc7523.go b/compose/compose_rfc7523.go index 0a9fe55ef..803116e93 100644 --- a/compose/compose_rfc7523.go +++ b/compose/compose_rfc7523.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package compose diff --git a/compose/compose_rfc8628.go b/compose/compose_rfc8628.go index 2bba93b45..ae3737975 100644 --- a/compose/compose_rfc8628.go +++ b/compose/compose_rfc8628.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 // Package compose provides various objects which can be used to diff --git a/compose/compose_strategy.go b/compose/compose_strategy.go index d29a2da8c..0a1d3ae23 100644 --- a/compose/compose_strategy.go +++ b/compose/compose_strategy.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package compose diff --git a/compose/compose_userinfo_vc.go b/compose/compose_userinfo_vc.go index d2ee6eb83..5c20c3505 100644 --- a/compose/compose_userinfo_vc.go +++ b/compose/compose_userinfo_vc.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package compose diff --git a/config.go b/config.go index 519b86324..db9d9770b 100644 --- a/config.go +++ b/config.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/config_default.go b/config_default.go index 95fd60373..972cb76a1 100644 --- a/config_default.go +++ b/config_default.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/context.go b/context.go index 34cdce1ee..9863ff95e 100644 --- a/context.go +++ b/context.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/device_request.go b/device_request.go index 35f454ef4..442a17d7f 100644 --- a/device_request.go +++ b/device_request.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/device_request_handler.go b/device_request_handler.go index e6cc40048..7abd73208 100644 --- a/device_request_handler.go +++ b/device_request_handler.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/device_request_handler_test.go b/device_request_handler_test.go index b9ec7e5a6..63383e81b 100644 --- a/device_request_handler_test.go +++ b/device_request_handler_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite_test diff --git a/device_response.go b/device_response.go index 95b3993b4..3703637e5 100644 --- a/device_response.go +++ b/device_response.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/device_response_test.go b/device_response_test.go index 38e3f8413..801f229b2 100644 --- a/device_response_test.go +++ b/device_response_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/device_response_writer.go b/device_response_writer.go index 722abbaee..199ea5018 100644 --- a/device_response_writer.go +++ b/device_response_writer.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/device_write.go b/device_write.go index 2da0f8386..7070a7cf9 100644 --- a/device_write.go +++ b/device_write.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/device_write_test.go b/device_write_test.go index 3a1fcccdb..e2e409569 100644 --- a/device_write_test.go +++ b/device_write_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite_test diff --git a/equalKeys_test.go b/equalKeys_test.go index 5b965461d..394263557 100644 --- a/equalKeys_test.go +++ b/equalKeys_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite_test diff --git a/errors.go b/errors.go index 046241c81..1a1b72102 100644 --- a/errors.go +++ b/errors.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/errors_test.go b/errors_test.go index 8b6c5e36f..c22862562 100644 --- a/errors_test.go +++ b/errors_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/fosite.go b/fosite.go index b7ab0547c..753faea00 100644 --- a/fosite.go +++ b/fosite.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/fosite_test.go b/fosite_test.go index a63650e20..dfa1a9f68 100644 --- a/fosite_test.go +++ b/fosite_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite_test diff --git a/generate.go b/generate.go index e79ba0924..2e55f8004 100644 --- a/generate.go +++ b/generate.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/go_mod_indirect_pins.go b/go_mod_indirect_pins.go index 8ec710c8a..3fff14df0 100644 --- a/go_mod_indirect_pins.go +++ b/go_mod_indirect_pins.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 //go:build tools diff --git a/handler.go b/handler.go index b98cd7f9d..fa1271cf3 100644 --- a/handler.go +++ b/handler.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/handler/oauth2/flow_authorize_code_auth.go b/handler/oauth2/flow_authorize_code_auth.go index ef8511e7e..f4bb0a13b 100644 --- a/handler/oauth2/flow_authorize_code_auth.go +++ b/handler/oauth2/flow_authorize_code_auth.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package oauth2 diff --git a/handler/oauth2/flow_authorize_code_auth_test.go b/handler/oauth2/flow_authorize_code_auth_test.go index c2366e2ba..0e8e43bee 100644 --- a/handler/oauth2/flow_authorize_code_auth_test.go +++ b/handler/oauth2/flow_authorize_code_auth_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package oauth2 diff --git a/handler/oauth2/flow_authorize_code_token.go b/handler/oauth2/flow_authorize_code_token.go index 7c1c8a44e..e30e823cf 100644 --- a/handler/oauth2/flow_authorize_code_token.go +++ b/handler/oauth2/flow_authorize_code_token.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package oauth2 diff --git a/handler/oauth2/flow_authorize_code_token_test.go b/handler/oauth2/flow_authorize_code_token_test.go index 906cb946e..59136217f 100644 --- a/handler/oauth2/flow_authorize_code_token_test.go +++ b/handler/oauth2/flow_authorize_code_token_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package oauth2 diff --git a/handler/oauth2/flow_authorize_implicit.go b/handler/oauth2/flow_authorize_implicit.go index 199296e3f..40b99c31d 100644 --- a/handler/oauth2/flow_authorize_implicit.go +++ b/handler/oauth2/flow_authorize_implicit.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package oauth2 diff --git a/handler/oauth2/flow_authorize_implicit_test.go b/handler/oauth2/flow_authorize_implicit_test.go index ede6709f8..52dd42aee 100644 --- a/handler/oauth2/flow_authorize_implicit_test.go +++ b/handler/oauth2/flow_authorize_implicit_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package oauth2 diff --git a/handler/oauth2/flow_client_credentials.go b/handler/oauth2/flow_client_credentials.go index 009c0cb95..a80fb08ac 100644 --- a/handler/oauth2/flow_client_credentials.go +++ b/handler/oauth2/flow_client_credentials.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package oauth2 diff --git a/handler/oauth2/flow_client_credentials_storage.go b/handler/oauth2/flow_client_credentials_storage.go index 2928ee797..5dc9cf6b5 100644 --- a/handler/oauth2/flow_client_credentials_storage.go +++ b/handler/oauth2/flow_client_credentials_storage.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package oauth2 diff --git a/handler/oauth2/flow_client_credentials_test.go b/handler/oauth2/flow_client_credentials_test.go index 46117a6c7..c721d1d01 100644 --- a/handler/oauth2/flow_client_credentials_test.go +++ b/handler/oauth2/flow_client_credentials_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package oauth2 diff --git a/handler/oauth2/flow_refresh.go b/handler/oauth2/flow_refresh.go index b575eabd9..410ca7593 100644 --- a/handler/oauth2/flow_refresh.go +++ b/handler/oauth2/flow_refresh.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package oauth2 diff --git a/handler/oauth2/flow_refresh_test.go b/handler/oauth2/flow_refresh_test.go index 43e8f49c8..77165df6d 100644 --- a/handler/oauth2/flow_refresh_test.go +++ b/handler/oauth2/flow_refresh_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package oauth2 diff --git a/handler/oauth2/flow_resource_owner.go b/handler/oauth2/flow_resource_owner.go index ea9e14bcc..01605800d 100644 --- a/handler/oauth2/flow_resource_owner.go +++ b/handler/oauth2/flow_resource_owner.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package oauth2 diff --git a/handler/oauth2/flow_resource_owner_storage.go b/handler/oauth2/flow_resource_owner_storage.go index 99b6f67d1..83f0517b9 100644 --- a/handler/oauth2/flow_resource_owner_storage.go +++ b/handler/oauth2/flow_resource_owner_storage.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package oauth2 diff --git a/handler/oauth2/flow_resource_owner_test.go b/handler/oauth2/flow_resource_owner_test.go index f39069a3d..a759b8aea 100644 --- a/handler/oauth2/flow_resource_owner_test.go +++ b/handler/oauth2/flow_resource_owner_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package oauth2 diff --git a/handler/oauth2/helper.go b/handler/oauth2/helper.go index 0103a1409..c7d604a73 100644 --- a/handler/oauth2/helper.go +++ b/handler/oauth2/helper.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package oauth2 diff --git a/handler/oauth2/helper_test.go b/handler/oauth2/helper_test.go index f963459e6..e05a0444f 100644 --- a/handler/oauth2/helper_test.go +++ b/handler/oauth2/helper_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package oauth2 diff --git a/handler/oauth2/introspector.go b/handler/oauth2/introspector.go index 49ff12d5c..beaafa7eb 100644 --- a/handler/oauth2/introspector.go +++ b/handler/oauth2/introspector.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package oauth2 diff --git a/handler/oauth2/introspector_jwt.go b/handler/oauth2/introspector_jwt.go index 7ddba16b2..10c28c173 100644 --- a/handler/oauth2/introspector_jwt.go +++ b/handler/oauth2/introspector_jwt.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package oauth2 diff --git a/handler/oauth2/introspector_jwt_test.go b/handler/oauth2/introspector_jwt_test.go index 6d8463de5..4fcbdb820 100644 --- a/handler/oauth2/introspector_jwt_test.go +++ b/handler/oauth2/introspector_jwt_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package oauth2 diff --git a/handler/oauth2/introspector_test.go b/handler/oauth2/introspector_test.go index 924a3a3ec..9f50d0052 100644 --- a/handler/oauth2/introspector_test.go +++ b/handler/oauth2/introspector_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package oauth2 diff --git a/handler/oauth2/providers.go b/handler/oauth2/providers.go index 864e75a66..d2c5d8dad 100644 --- a/handler/oauth2/providers.go +++ b/handler/oauth2/providers.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package oauth2 diff --git a/handler/oauth2/revocation.go b/handler/oauth2/revocation.go index 8c53d3ba7..fa58f4171 100644 --- a/handler/oauth2/revocation.go +++ b/handler/oauth2/revocation.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package oauth2 diff --git a/handler/oauth2/revocation_storage.go b/handler/oauth2/revocation_storage.go index 3e0abb7c1..40935033c 100644 --- a/handler/oauth2/revocation_storage.go +++ b/handler/oauth2/revocation_storage.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package oauth2 diff --git a/handler/oauth2/revocation_test.go b/handler/oauth2/revocation_test.go index 41f7a3e5d..77c347190 100644 --- a/handler/oauth2/revocation_test.go +++ b/handler/oauth2/revocation_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package oauth2 diff --git a/handler/oauth2/storage.go b/handler/oauth2/storage.go index 3ee56bbef..cc98b2a0c 100644 --- a/handler/oauth2/storage.go +++ b/handler/oauth2/storage.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package oauth2 diff --git a/handler/oauth2/strategy.go b/handler/oauth2/strategy.go index 727078374..4bcb0e6f6 100644 --- a/handler/oauth2/strategy.go +++ b/handler/oauth2/strategy.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package oauth2 diff --git a/handler/oauth2/strategy_hmacsha_plain.go b/handler/oauth2/strategy_hmacsha_plain.go index 1ee7a9c7c..83a3c32f0 100644 --- a/handler/oauth2/strategy_hmacsha_plain.go +++ b/handler/oauth2/strategy_hmacsha_plain.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package oauth2 diff --git a/handler/oauth2/strategy_hmacsha_prefixed.go b/handler/oauth2/strategy_hmacsha_prefixed.go index c119fdca2..094a75f93 100644 --- a/handler/oauth2/strategy_hmacsha_prefixed.go +++ b/handler/oauth2/strategy_hmacsha_prefixed.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package oauth2 diff --git a/handler/oauth2/strategy_hmacsha_test.go b/handler/oauth2/strategy_hmacsha_test.go index 28cdc9d49..ad8723fa3 100644 --- a/handler/oauth2/strategy_hmacsha_test.go +++ b/handler/oauth2/strategy_hmacsha_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package oauth2 diff --git a/handler/oauth2/strategy_jwt.go b/handler/oauth2/strategy_jwt.go index 7dce6dc70..3e0657d47 100644 --- a/handler/oauth2/strategy_jwt.go +++ b/handler/oauth2/strategy_jwt.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package oauth2 diff --git a/handler/oauth2/strategy_jwt_session.go b/handler/oauth2/strategy_jwt_session.go index 062f9f76c..a6fb74662 100644 --- a/handler/oauth2/strategy_jwt_session.go +++ b/handler/oauth2/strategy_jwt_session.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package oauth2 diff --git a/handler/oauth2/strategy_jwt_test.go b/handler/oauth2/strategy_jwt_test.go index 54a0e286a..3fbceb5cc 100644 --- a/handler/oauth2/strategy_jwt_test.go +++ b/handler/oauth2/strategy_jwt_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package oauth2 diff --git a/handler/openid/errors.go b/handler/openid/errors.go index 81436b95c..3ad225853 100644 --- a/handler/openid/errors.go +++ b/handler/openid/errors.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package openid diff --git a/handler/openid/flow_device_auth.go b/handler/openid/flow_device_auth.go index 03cf634e6..794c561d0 100644 --- a/handler/openid/flow_device_auth.go +++ b/handler/openid/flow_device_auth.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package openid diff --git a/handler/openid/flow_device_auth_test.go b/handler/openid/flow_device_auth_test.go index b5adf2202..f59c2002f 100644 --- a/handler/openid/flow_device_auth_test.go +++ b/handler/openid/flow_device_auth_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package openid diff --git a/handler/openid/flow_device_token.go b/handler/openid/flow_device_token.go index 62b9bf8ff..c0fb09e53 100644 --- a/handler/openid/flow_device_token.go +++ b/handler/openid/flow_device_token.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package openid diff --git a/handler/openid/flow_device_token_test.go b/handler/openid/flow_device_token_test.go index f73617806..bfb63d8b2 100644 --- a/handler/openid/flow_device_token_test.go +++ b/handler/openid/flow_device_token_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package openid diff --git a/handler/openid/flow_explicit_auth.go b/handler/openid/flow_explicit_auth.go index ac9a87a2b..8ea13f978 100644 --- a/handler/openid/flow_explicit_auth.go +++ b/handler/openid/flow_explicit_auth.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package openid diff --git a/handler/openid/flow_explicit_auth_test.go b/handler/openid/flow_explicit_auth_test.go index 8781d6969..35dac8c71 100644 --- a/handler/openid/flow_explicit_auth_test.go +++ b/handler/openid/flow_explicit_auth_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package openid diff --git a/handler/openid/flow_explicit_token.go b/handler/openid/flow_explicit_token.go index 100568c48..63e4f0646 100644 --- a/handler/openid/flow_explicit_token.go +++ b/handler/openid/flow_explicit_token.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package openid diff --git a/handler/openid/flow_explicit_token_test.go b/handler/openid/flow_explicit_token_test.go index 775702f90..d77e6a86b 100644 --- a/handler/openid/flow_explicit_token_test.go +++ b/handler/openid/flow_explicit_token_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package openid diff --git a/handler/openid/flow_hybrid.go b/handler/openid/flow_hybrid.go index 3413e1aa2..61ff7ad04 100644 --- a/handler/openid/flow_hybrid.go +++ b/handler/openid/flow_hybrid.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package openid diff --git a/handler/openid/flow_hybrid_test.go b/handler/openid/flow_hybrid_test.go index 24df90a11..710d011f2 100644 --- a/handler/openid/flow_hybrid_test.go +++ b/handler/openid/flow_hybrid_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package openid diff --git a/handler/openid/flow_implicit.go b/handler/openid/flow_implicit.go index 0efefc894..b42948dd1 100644 --- a/handler/openid/flow_implicit.go +++ b/handler/openid/flow_implicit.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package openid diff --git a/handler/openid/flow_implicit_test.go b/handler/openid/flow_implicit_test.go index f5003c219..6b426f407 100644 --- a/handler/openid/flow_implicit_test.go +++ b/handler/openid/flow_implicit_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package openid diff --git a/handler/openid/flow_refresh_token.go b/handler/openid/flow_refresh_token.go index 75ec94963..00e6daba2 100644 --- a/handler/openid/flow_refresh_token.go +++ b/handler/openid/flow_refresh_token.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package openid diff --git a/handler/openid/flow_refresh_token_test.go b/handler/openid/flow_refresh_token_test.go index 7d1ce2dbb..939c88ae4 100644 --- a/handler/openid/flow_refresh_token_test.go +++ b/handler/openid/flow_refresh_token_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package openid diff --git a/handler/openid/helper.go b/handler/openid/helper.go index 44f5fbaa6..63529026b 100644 --- a/handler/openid/helper.go +++ b/handler/openid/helper.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package openid diff --git a/handler/openid/helper_test.go b/handler/openid/helper_test.go index b09a5e317..69552d616 100644 --- a/handler/openid/helper_test.go +++ b/handler/openid/helper_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package openid diff --git a/handler/openid/storage.go b/handler/openid/storage.go index 4e49c951d..1f93c40ae 100644 --- a/handler/openid/storage.go +++ b/handler/openid/storage.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package openid diff --git a/handler/openid/strategy.go b/handler/openid/strategy.go index cffc43fc7..48d193ab5 100644 --- a/handler/openid/strategy.go +++ b/handler/openid/strategy.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package openid diff --git a/handler/openid/strategy_jwt.go b/handler/openid/strategy_jwt.go index 7a4fe5fb4..e534063ad 100644 --- a/handler/openid/strategy_jwt.go +++ b/handler/openid/strategy_jwt.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package openid diff --git a/handler/openid/strategy_jwt_test.go b/handler/openid/strategy_jwt_test.go index 9a5b065d8..521fd54d0 100644 --- a/handler/openid/strategy_jwt_test.go +++ b/handler/openid/strategy_jwt_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package openid diff --git a/handler/openid/validator.go b/handler/openid/validator.go index 868dded65..937ff364d 100644 --- a/handler/openid/validator.go +++ b/handler/openid/validator.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package openid diff --git a/handler/openid/validator_test.go b/handler/openid/validator_test.go index df8750f03..75a271944 100644 --- a/handler/openid/validator_test.go +++ b/handler/openid/validator_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package openid diff --git a/handler/par/flow_pushed_authorize.go b/handler/par/flow_pushed_authorize.go index 4850134b8..810c56442 100644 --- a/handler/par/flow_pushed_authorize.go +++ b/handler/par/flow_pushed_authorize.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package par diff --git a/handler/par/flow_pushed_authorize_test.go b/handler/par/flow_pushed_authorize_test.go index 0d9fa5f50..6e467fdce 100644 --- a/handler/par/flow_pushed_authorize_test.go +++ b/handler/par/flow_pushed_authorize_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package par_test diff --git a/handler/pkce/handler.go b/handler/pkce/handler.go index 24c11475b..3fd106291 100644 --- a/handler/pkce/handler.go +++ b/handler/pkce/handler.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package pkce diff --git a/handler/pkce/handler_test.go b/handler/pkce/handler_test.go index 905a987db..53f719a70 100644 --- a/handler/pkce/handler_test.go +++ b/handler/pkce/handler_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package pkce diff --git a/handler/pkce/storage.go b/handler/pkce/storage.go index 89b47f6e7..ebcf65bbe 100644 --- a/handler/pkce/storage.go +++ b/handler/pkce/storage.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package pkce diff --git a/handler/rfc7523/handler.go b/handler/rfc7523/handler.go index 921642912..9ee03847e 100644 --- a/handler/rfc7523/handler.go +++ b/handler/rfc7523/handler.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package rfc7523 diff --git a/handler/rfc7523/handler_test.go b/handler/rfc7523/handler_test.go index af5578e2e..d491cbe97 100644 --- a/handler/rfc7523/handler_test.go +++ b/handler/rfc7523/handler_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package rfc7523 diff --git a/handler/rfc7523/session.go b/handler/rfc7523/session.go index 2e445514c..a26b98a04 100644 --- a/handler/rfc7523/session.go +++ b/handler/rfc7523/session.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package rfc7523 diff --git a/handler/rfc7523/storage.go b/handler/rfc7523/storage.go index 60da159a4..3b33b1611 100644 --- a/handler/rfc7523/storage.go +++ b/handler/rfc7523/storage.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package rfc7523 diff --git a/handler/rfc8628/auth_handler.go b/handler/rfc8628/auth_handler.go index 37fa1da5a..afbbc0d5f 100644 --- a/handler/rfc8628/auth_handler.go +++ b/handler/rfc8628/auth_handler.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package rfc8628 diff --git a/handler/rfc8628/auth_handler_test.go b/handler/rfc8628/auth_handler_test.go index 10748cd83..a6f63578a 100644 --- a/handler/rfc8628/auth_handler_test.go +++ b/handler/rfc8628/auth_handler_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package rfc8628_test diff --git a/handler/rfc8628/storage.go b/handler/rfc8628/storage.go index 9389a5d03..967e7ed4d 100644 --- a/handler/rfc8628/storage.go +++ b/handler/rfc8628/storage.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package rfc8628 diff --git a/handler/rfc8628/strategy.go b/handler/rfc8628/strategy.go index 15d66b734..0047dc527 100644 --- a/handler/rfc8628/strategy.go +++ b/handler/rfc8628/strategy.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package rfc8628 diff --git a/handler/rfc8628/strategy_hmacsha.go b/handler/rfc8628/strategy_hmacsha.go index e46e0f91c..d8c89ea82 100644 --- a/handler/rfc8628/strategy_hmacsha.go +++ b/handler/rfc8628/strategy_hmacsha.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package rfc8628 diff --git a/handler/rfc8628/strategy_hmacsha_test.go b/handler/rfc8628/strategy_hmacsha_test.go index 524ac25c2..e4b8f2930 100644 --- a/handler/rfc8628/strategy_hmacsha_test.go +++ b/handler/rfc8628/strategy_hmacsha_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package rfc8628_test diff --git a/handler/rfc8628/token_handler.go b/handler/rfc8628/token_handler.go index e9be69a5d..09eead787 100644 --- a/handler/rfc8628/token_handler.go +++ b/handler/rfc8628/token_handler.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package rfc8628 diff --git a/handler/rfc8628/token_handler_test.go b/handler/rfc8628/token_handler_test.go index 6173251f7..271234693 100644 --- a/handler/rfc8628/token_handler_test.go +++ b/handler/rfc8628/token_handler_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package rfc8628 diff --git a/handler/verifiable/handler.go b/handler/verifiable/handler.go index 10a0fc944..cd2377278 100644 --- a/handler/verifiable/handler.go +++ b/handler/verifiable/handler.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package verifiable diff --git a/handler/verifiable/handler_test.go b/handler/verifiable/handler_test.go index a23adaa78..6b4e643c4 100644 --- a/handler/verifiable/handler_test.go +++ b/handler/verifiable/handler_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package verifiable diff --git a/handler/verifiable/nonce.go b/handler/verifiable/nonce.go index 754d5645f..3d71c889b 100644 --- a/handler/verifiable/nonce.go +++ b/handler/verifiable/nonce.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package verifiable diff --git a/hash.go b/hash.go index 10da2b2b3..c1339199e 100644 --- a/hash.go +++ b/hash.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/hash_bcrypt.go b/hash_bcrypt.go index 47a721fb2..70bfa917e 100644 --- a/hash_bcrypt.go +++ b/hash_bcrypt.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/hash_bcrypt_test.go b/hash_bcrypt_test.go index 97196ff91..e8768fea3 100644 --- a/hash_bcrypt_test.go +++ b/hash_bcrypt_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/helper.go b/helper.go index 1f5d6911b..2a8df9a77 100644 --- a/helper.go +++ b/helper.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/helper_test.go b/helper_test.go index 5c0264791..4ab9bdd11 100644 --- a/helper_test.go +++ b/helper_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/i18n/default_catalog.go b/i18n/default_catalog.go index e99df17c5..b6546cc9d 100644 --- a/i18n/default_catalog.go +++ b/i18n/default_catalog.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package i18n diff --git a/i18n/i18n.go b/i18n/i18n.go index a446ff2b9..946dff459 100644 --- a/i18n/i18n.go +++ b/i18n/i18n.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package i18n diff --git a/i18n/i18n_test.go b/i18n/i18n_test.go index 94a185a81..25c053b8e 100644 --- a/i18n/i18n_test.go +++ b/i18n/i18n_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package i18n diff --git a/i18n_helper.go b/i18n_helper.go index 600d1c6cb..e845c5d4b 100644 --- a/i18n_helper.go +++ b/i18n_helper.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/i18n_helper_test.go b/i18n_helper_test.go index 8a7bf3ce0..abd10b311 100644 --- a/i18n_helper_test.go +++ b/i18n_helper_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/integration/authorize_code_grant_public_client_pkce_test.go b/integration/authorize_code_grant_public_client_pkce_test.go index e8958d0be..e8e1dffdd 100644 --- a/integration/authorize_code_grant_public_client_pkce_test.go +++ b/integration/authorize_code_grant_public_client_pkce_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package integration_test diff --git a/integration/authorize_code_grant_public_client_test.go b/integration/authorize_code_grant_public_client_test.go index a57f87d34..034fef8bb 100644 --- a/integration/authorize_code_grant_public_client_test.go +++ b/integration/authorize_code_grant_public_client_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package integration_test diff --git a/integration/authorize_code_grant_test.go b/integration/authorize_code_grant_test.go index 2939adeca..ed480f70c 100644 --- a/integration/authorize_code_grant_test.go +++ b/integration/authorize_code_grant_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package integration_test diff --git a/integration/authorize_device_grant_request_test.go b/integration/authorize_device_grant_request_test.go index 24e35c81a..3b2e6946b 100644 --- a/integration/authorize_device_grant_request_test.go +++ b/integration/authorize_device_grant_request_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package integration_test diff --git a/integration/authorize_form_post_test.go b/integration/authorize_form_post_test.go index c72782b11..61bd0d78c 100644 --- a/integration/authorize_form_post_test.go +++ b/integration/authorize_form_post_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package integration_test diff --git a/integration/authorize_implicit_grant_test.go b/integration/authorize_implicit_grant_test.go index c5981a541..ed7cac97c 100644 --- a/integration/authorize_implicit_grant_test.go +++ b/integration/authorize_implicit_grant_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package integration_test diff --git a/integration/authorize_jwt_bearer_required_iat_test.go b/integration/authorize_jwt_bearer_required_iat_test.go index a63e453f2..720895fa0 100644 --- a/integration/authorize_jwt_bearer_required_iat_test.go +++ b/integration/authorize_jwt_bearer_required_iat_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package integration_test diff --git a/integration/authorize_jwt_bearer_required_jti_test.go b/integration/authorize_jwt_bearer_required_jti_test.go index 5938dcb5e..eac00eaa5 100644 --- a/integration/authorize_jwt_bearer_required_jti_test.go +++ b/integration/authorize_jwt_bearer_required_jti_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package integration_test diff --git a/integration/authorize_jwt_bearer_test.go b/integration/authorize_jwt_bearer_test.go index 7d44888f0..89bd27d54 100644 --- a/integration/authorize_jwt_bearer_test.go +++ b/integration/authorize_jwt_bearer_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package integration_test diff --git a/integration/authorize_response_mode_test.go b/integration/authorize_response_mode_test.go index eaf849963..2f56e5a91 100644 --- a/integration/authorize_response_mode_test.go +++ b/integration/authorize_response_mode_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package integration_test diff --git a/integration/client_credentials_grant_test.go b/integration/client_credentials_grant_test.go index acae590c6..29c57e4ab 100644 --- a/integration/client_credentials_grant_test.go +++ b/integration/client_credentials_grant_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package integration_test diff --git a/integration/clients/error.go b/integration/clients/error.go index 46dc0a350..986a8a2a5 100644 --- a/integration/clients/error.go +++ b/integration/clients/error.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package clients diff --git a/integration/clients/introspect.go b/integration/clients/introspect.go index abc233852..0efde100f 100644 --- a/integration/clients/introspect.go +++ b/integration/clients/introspect.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package clients diff --git a/integration/clients/jwt_bearer.go b/integration/clients/jwt_bearer.go index 6dbfd3fe6..4e5f58967 100644 --- a/integration/clients/jwt_bearer.go +++ b/integration/clients/jwt_bearer.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package clients diff --git a/integration/helper_endpoints_test.go b/integration/helper_endpoints_test.go index d77e03fb1..6a604ae79 100644 --- a/integration/helper_endpoints_test.go +++ b/integration/helper_endpoints_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package integration_test diff --git a/integration/helper_setup_test.go b/integration/helper_setup_test.go index 5034c4c31..13f372cd4 100644 --- a/integration/helper_setup_test.go +++ b/integration/helper_setup_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package integration_test diff --git a/integration/introspect_jwt_bearer_token_test.go b/integration/introspect_jwt_bearer_token_test.go index a4cc5f7e1..7963e2b04 100644 --- a/integration/introspect_jwt_bearer_token_test.go +++ b/integration/introspect_jwt_bearer_token_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package integration_test diff --git a/integration/introspect_token_test.go b/integration/introspect_token_test.go index 825709869..c22e7c29f 100644 --- a/integration/introspect_token_test.go +++ b/integration/introspect_token_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package integration_test diff --git a/integration/oidc_explicit_test.go b/integration/oidc_explicit_test.go index 10eef5009..9a9d0fd83 100644 --- a/integration/oidc_explicit_test.go +++ b/integration/oidc_explicit_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package integration_test diff --git a/integration/oidc_implicit_hybrid_public_client_pkce_test.go b/integration/oidc_implicit_hybrid_public_client_pkce_test.go index 6aa5a23c0..04599636f 100644 --- a/integration/oidc_implicit_hybrid_public_client_pkce_test.go +++ b/integration/oidc_implicit_hybrid_public_client_pkce_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package integration_test diff --git a/integration/oidc_implicit_hybrid_test.go b/integration/oidc_implicit_hybrid_test.go index b5bad4621..abf49cf6a 100644 --- a/integration/oidc_implicit_hybrid_test.go +++ b/integration/oidc_implicit_hybrid_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package integration_test diff --git a/integration/placeholder.go b/integration/placeholder.go index eabb14bb7..07dc07bb8 100644 --- a/integration/placeholder.go +++ b/integration/placeholder.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package integration diff --git a/integration/pushed_authorize_code_grant_test.go b/integration/pushed_authorize_code_grant_test.go index 408df8782..aad30fdc9 100644 --- a/integration/pushed_authorize_code_grant_test.go +++ b/integration/pushed_authorize_code_grant_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package integration_test diff --git a/integration/refresh_token_grant_test.go b/integration/refresh_token_grant_test.go index aefebb929..0a48850f7 100644 --- a/integration/refresh_token_grant_test.go +++ b/integration/refresh_token_grant_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package integration_test diff --git a/integration/resource_owner_password_credentials_grant_test.go b/integration/resource_owner_password_credentials_grant_test.go index f1a1e710e..16d4abb00 100644 --- a/integration/resource_owner_password_credentials_grant_test.go +++ b/integration/resource_owner_password_credentials_grant_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package integration_test diff --git a/integration/revoke_token_test.go b/integration/revoke_token_test.go index cf9b5d02b..d5a35f439 100644 --- a/integration/revoke_token_test.go +++ b/integration/revoke_token_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package integration_test diff --git a/internal/access_request.go b/internal/access_request.go index 56694216b..3a761ff5a 100644 --- a/internal/access_request.go +++ b/internal/access_request.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 // Code generated by MockGen. DO NOT EDIT. diff --git a/internal/access_response.go b/internal/access_response.go index 4ba937883..c5382d027 100644 --- a/internal/access_response.go +++ b/internal/access_response.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 // Code generated by MockGen. DO NOT EDIT. diff --git a/internal/access_token_storage.go b/internal/access_token_storage.go index 0082eec34..bece20ba7 100644 --- a/internal/access_token_storage.go +++ b/internal/access_token_storage.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 // Code generated by MockGen. DO NOT EDIT. diff --git a/internal/access_token_strategy.go b/internal/access_token_strategy.go index cdd224ef8..a0bfbeb7d 100644 --- a/internal/access_token_strategy.go +++ b/internal/access_token_strategy.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 // Code generated by MockGen. DO NOT EDIT. diff --git a/internal/authorize_code_storage.go b/internal/authorize_code_storage.go index 246b77e97..710406da3 100644 --- a/internal/authorize_code_storage.go +++ b/internal/authorize_code_storage.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 // Code generated by MockGen. DO NOT EDIT. diff --git a/internal/authorize_code_strategy.go b/internal/authorize_code_strategy.go index a143faa85..de817b23e 100644 --- a/internal/authorize_code_strategy.go +++ b/internal/authorize_code_strategy.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 // Code generated by MockGen. DO NOT EDIT. diff --git a/internal/authorize_handler.go b/internal/authorize_handler.go index 36bec0504..3b503cd35 100644 --- a/internal/authorize_handler.go +++ b/internal/authorize_handler.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 // Code generated by MockGen. DO NOT EDIT. diff --git a/internal/authorize_request.go b/internal/authorize_request.go index 69e6cbe49..6071aa048 100644 --- a/internal/authorize_request.go +++ b/internal/authorize_request.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 // Code generated by MockGen. DO NOT EDIT. diff --git a/internal/authorize_response.go b/internal/authorize_response.go index 13c4709d2..57f2be117 100644 --- a/internal/authorize_response.go +++ b/internal/authorize_response.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 // Code generated by MockGen. DO NOT EDIT. diff --git a/internal/client.go b/internal/client.go index 522d9384e..1bac54e3b 100644 --- a/internal/client.go +++ b/internal/client.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 // Code generated by MockGen. DO NOT EDIT. diff --git a/internal/device_code_rate_limit_strategy.go b/internal/device_code_rate_limit_strategy.go index a0903b55b..540e5190e 100644 --- a/internal/device_code_rate_limit_strategy.go +++ b/internal/device_code_rate_limit_strategy.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 // Code generated by MockGen. DO NOT EDIT. diff --git a/internal/gen/key.go b/internal/gen/key.go index 35edfa61e..d82cd7de4 100644 --- a/internal/gen/key.go +++ b/internal/gen/key.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package gen diff --git a/internal/hash.go b/internal/hash.go index 1480152b8..577cbc8ab 100644 --- a/internal/hash.go +++ b/internal/hash.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 // Code generated by MockGen. DO NOT EDIT. diff --git a/internal/id_token_strategy.go b/internal/id_token_strategy.go index 05b5f524d..a13132b5d 100644 --- a/internal/id_token_strategy.go +++ b/internal/id_token_strategy.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 // Code generated by MockGen. DO NOT EDIT. diff --git a/internal/introspector.go b/internal/introspector.go index c2dd27c3a..81e005b3b 100644 --- a/internal/introspector.go +++ b/internal/introspector.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 // Code generated by MockGen. DO NOT EDIT. diff --git a/internal/oauth2_auth_jwt_storage.go b/internal/oauth2_auth_jwt_storage.go index e7e4398bb..279924248 100644 --- a/internal/oauth2_auth_jwt_storage.go +++ b/internal/oauth2_auth_jwt_storage.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 // Code generated by MockGen. DO NOT EDIT. diff --git a/internal/oauth2_client_storage.go b/internal/oauth2_client_storage.go index 4a52d2cdc..a4ccf09aa 100644 --- a/internal/oauth2_client_storage.go +++ b/internal/oauth2_client_storage.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 // Code generated by MockGen. DO NOT EDIT. diff --git a/internal/oauth2_explicit_storage.go b/internal/oauth2_explicit_storage.go index aff385540..36d02bad1 100644 --- a/internal/oauth2_explicit_storage.go +++ b/internal/oauth2_explicit_storage.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 // Automatically generated by MockGen. DO NOT EDIT! diff --git a/internal/oauth2_owner_storage.go b/internal/oauth2_owner_storage.go index 57adf311a..70523314e 100644 --- a/internal/oauth2_owner_storage.go +++ b/internal/oauth2_owner_storage.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 // Code generated by MockGen. DO NOT EDIT. diff --git a/internal/oauth2_refresh_storage.go b/internal/oauth2_refresh_storage.go index 7a7ffc6f9..01fc08172 100644 --- a/internal/oauth2_refresh_storage.go +++ b/internal/oauth2_refresh_storage.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 // Automatically generated by MockGen. DO NOT EDIT! diff --git a/internal/oauth2_revoke_storage.go b/internal/oauth2_revoke_storage.go index 939baf420..d40c751a1 100644 --- a/internal/oauth2_revoke_storage.go +++ b/internal/oauth2_revoke_storage.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 // Code generated by MockGen. DO NOT EDIT. diff --git a/internal/oauth2_storage.go b/internal/oauth2_storage.go index bc6cf1bcb..15f8aa82e 100644 --- a/internal/oauth2_storage.go +++ b/internal/oauth2_storage.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 // Code generated by MockGen. DO NOT EDIT. diff --git a/internal/oauth2_strategy.go b/internal/oauth2_strategy.go index 2c15a3bb1..3175cb5a9 100644 --- a/internal/oauth2_strategy.go +++ b/internal/oauth2_strategy.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 // Code generated by MockGen. DO NOT EDIT. diff --git a/internal/openid_id_token_storage.go b/internal/openid_id_token_storage.go index d6e4cf640..a075518da 100644 --- a/internal/openid_id_token_storage.go +++ b/internal/openid_id_token_storage.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 // Code generated by MockGen. DO NOT EDIT. diff --git a/internal/pkce_storage_strategy.go b/internal/pkce_storage_strategy.go index 70672e050..4359eeefe 100644 --- a/internal/pkce_storage_strategy.go +++ b/internal/pkce_storage_strategy.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 // Code generated by MockGen. DO NOT EDIT. diff --git a/internal/pushed_authorize_handler.go b/internal/pushed_authorize_handler.go index 7044cc8d3..81877b36b 100644 --- a/internal/pushed_authorize_handler.go +++ b/internal/pushed_authorize_handler.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package internal diff --git a/internal/refresh_token_strategy.go b/internal/refresh_token_strategy.go index 691031f67..68de95132 100644 --- a/internal/refresh_token_strategy.go +++ b/internal/refresh_token_strategy.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 // Code generated by MockGen. DO NOT EDIT. diff --git a/internal/request.go b/internal/request.go index 6c22481dd..909d5429b 100644 --- a/internal/request.go +++ b/internal/request.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 // Code generated by MockGen. DO NOT EDIT. diff --git a/internal/revoke_handler.go b/internal/revoke_handler.go index 8679e99d0..c1e4be591 100644 --- a/internal/revoke_handler.go +++ b/internal/revoke_handler.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 // Code generated by MockGen. DO NOT EDIT. diff --git a/internal/rfc8628_code_strategy.go b/internal/rfc8628_code_strategy.go index 17abcc1fd..7e24ce920 100644 --- a/internal/rfc8628_code_strategy.go +++ b/internal/rfc8628_code_strategy.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 // Code generated by MockGen. DO NOT EDIT. diff --git a/internal/rfc8628_core_storage.go b/internal/rfc8628_core_storage.go index 07e3884f9..e8a8b02df 100644 --- a/internal/rfc8628_core_storage.go +++ b/internal/rfc8628_core_storage.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 // Code generated by MockGen. DO NOT EDIT. diff --git a/internal/rw.go b/internal/rw.go index 0c9cafc2b..004cd11a8 100644 --- a/internal/rw.go +++ b/internal/rw.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 // Automatically generated by MockGen. DO NOT EDIT! diff --git a/internal/storage.go b/internal/storage.go index 18ce1d483..45d7ce234 100644 --- a/internal/storage.go +++ b/internal/storage.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 // Code generated by MockGen. DO NOT EDIT. diff --git a/internal/test_helpers.go b/internal/test_helpers.go index 805a0b27a..d6da2dcda 100644 --- a/internal/test_helpers.go +++ b/internal/test_helpers.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package internal diff --git a/internal/token_handler.go b/internal/token_handler.go index db895322a..984a4ab49 100644 --- a/internal/token_handler.go +++ b/internal/token_handler.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 // Code generated by MockGen. DO NOT EDIT. diff --git a/internal/transactional.go b/internal/transactional.go index b7b6b898f..8a3918039 100644 --- a/internal/transactional.go +++ b/internal/transactional.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 // Code generated by MockGen. DO NOT EDIT. diff --git a/introspect.go b/introspect.go index bffcd8c27..637fbe233 100644 --- a/introspect.go +++ b/introspect.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/introspect_test.go b/introspect_test.go index 3f7da0fbe..46a2895ea 100644 --- a/introspect_test.go +++ b/introspect_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite_test diff --git a/introspection_request_handler.go b/introspection_request_handler.go index c58b292e7..c1908e7a0 100644 --- a/introspection_request_handler.go +++ b/introspection_request_handler.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/introspection_request_handler_test.go b/introspection_request_handler_test.go index 067a5092d..33c46d5b6 100644 --- a/introspection_request_handler_test.go +++ b/introspection_request_handler_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite_test diff --git a/introspection_response_writer.go b/introspection_response_writer.go index 7e136a750..9bcda10c2 100644 --- a/introspection_response_writer.go +++ b/introspection_response_writer.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/introspection_response_writer_test.go b/introspection_response_writer_test.go index 431dd4e8d..630556270 100644 --- a/introspection_response_writer_test.go +++ b/introspection_response_writer_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite_test diff --git a/oauth2.go b/oauth2.go index ee920a98a..ade31c81d 100644 --- a/oauth2.go +++ b/oauth2.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/pushed_authorize_request_handler.go b/pushed_authorize_request_handler.go index d7a81df38..10d654769 100644 --- a/pushed_authorize_request_handler.go +++ b/pushed_authorize_request_handler.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/pushed_authorize_request_handler_test.go b/pushed_authorize_request_handler_test.go index 94ec8868c..336bb70b0 100644 --- a/pushed_authorize_request_handler_test.go +++ b/pushed_authorize_request_handler_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite_test diff --git a/pushed_authorize_response.go b/pushed_authorize_response.go index 048788a8f..2bda9361c 100644 --- a/pushed_authorize_response.go +++ b/pushed_authorize_response.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/pushed_authorize_response_writer.go b/pushed_authorize_response_writer.go index ecbab8ee0..6cf9d1fa7 100644 --- a/pushed_authorize_response_writer.go +++ b/pushed_authorize_response_writer.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/pushed_authorize_response_writer_test.go b/pushed_authorize_response_writer_test.go index 5c82862ab..d69826930 100644 --- a/pushed_authorize_response_writer_test.go +++ b/pushed_authorize_response_writer_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite_test diff --git a/request.go b/request.go index 42c92abb1..006e5d165 100644 --- a/request.go +++ b/request.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/request_test.go b/request_test.go index 204cd3c87..fb8b5a7ad 100644 --- a/request_test.go +++ b/request_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite_test diff --git a/response_handler.go b/response_handler.go index 901185a7c..038fdfd84 100644 --- a/response_handler.go +++ b/response_handler.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/revoke_handler.go b/revoke_handler.go index 214808b8a..9c9d9f935 100644 --- a/revoke_handler.go +++ b/revoke_handler.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/revoke_handler_test.go b/revoke_handler_test.go index 55370fb51..5f21f25f0 100644 --- a/revoke_handler_test.go +++ b/revoke_handler_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite_test diff --git a/scope_strategy.go b/scope_strategy.go index 358f3b7f3..6e4149fb7 100644 --- a/scope_strategy.go +++ b/scope_strategy.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/scope_strategy_test.go b/scope_strategy_test.go index a30a753b8..cf8bd6b18 100644 --- a/scope_strategy_test.go +++ b/scope_strategy_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/session.go b/session.go index 33d31479d..176f8128c 100644 --- a/session.go +++ b/session.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/session_test.go b/session_test.go index bb8615d85..f8b86ed20 100644 --- a/session_test.go +++ b/session_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/storage.go b/storage.go index 7e4aacd8b..22f1d95b9 100644 --- a/storage.go +++ b/storage.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package fosite diff --git a/storage/memory.go b/storage/memory.go index 0b1cbfebe..302ca3528 100644 --- a/storage/memory.go +++ b/storage/memory.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package storage diff --git a/storage/memory_test.go b/storage/memory_test.go index ddd806e4e..2e1cf03b3 100644 --- a/storage/memory_test.go +++ b/storage/memory_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package storage diff --git a/storage/transactional.go b/storage/transactional.go index 418428d38..62d22f390 100644 --- a/storage/transactional.go +++ b/storage/transactional.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package storage diff --git a/token/hmac/bytes.go b/token/hmac/bytes.go index cacdcd60d..e4b5c426a 100644 --- a/token/hmac/bytes.go +++ b/token/hmac/bytes.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package hmac diff --git a/token/hmac/bytes_test.go b/token/hmac/bytes_test.go index 12aa1fc0f..0694c0ee2 100644 --- a/token/hmac/bytes_test.go +++ b/token/hmac/bytes_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package hmac diff --git a/token/hmac/hmacsha.go b/token/hmac/hmacsha.go index d319ef608..da8452b72 100644 --- a/token/hmac/hmacsha.go +++ b/token/hmac/hmacsha.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 // Package hmac is the default implementation for generating and validating challenges. It uses SHA-512/256 to diff --git a/token/hmac/hmacsha_test.go b/token/hmac/hmacsha_test.go index 43b1d0539..3536fefcc 100644 --- a/token/hmac/hmacsha_test.go +++ b/token/hmac/hmacsha_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package hmac diff --git a/token/jwt/claims.go b/token/jwt/claims.go index f60bbcf25..a00a0b09c 100644 --- a/token/jwt/claims.go +++ b/token/jwt/claims.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package jwt diff --git a/token/jwt/claims_id_token.go b/token/jwt/claims_id_token.go index 225ae1f6e..963d1548d 100644 --- a/token/jwt/claims_id_token.go +++ b/token/jwt/claims_id_token.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package jwt diff --git a/token/jwt/claims_id_token_test.go b/token/jwt/claims_id_token_test.go index febb7c330..7c5df0482 100644 --- a/token/jwt/claims_id_token_test.go +++ b/token/jwt/claims_id_token_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package jwt_test diff --git a/token/jwt/claims_jwt.go b/token/jwt/claims_jwt.go index 7605c38fc..33d03146a 100644 --- a/token/jwt/claims_jwt.go +++ b/token/jwt/claims_jwt.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package jwt diff --git a/token/jwt/claims_jwt_test.go b/token/jwt/claims_jwt_test.go index af23afaad..8ba44d31b 100644 --- a/token/jwt/claims_jwt_test.go +++ b/token/jwt/claims_jwt_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package jwt_test diff --git a/token/jwt/claims_test.go b/token/jwt/claims_test.go index 739020d67..6c9d0f702 100644 --- a/token/jwt/claims_test.go +++ b/token/jwt/claims_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package jwt diff --git a/token/jwt/header.go b/token/jwt/header.go index 8fdaa3ddf..bc3380bc4 100644 --- a/token/jwt/header.go +++ b/token/jwt/header.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package jwt diff --git a/token/jwt/header_test.go b/token/jwt/header_test.go index 3c5a66695..684c9538c 100644 --- a/token/jwt/header_test.go +++ b/token/jwt/header_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package jwt diff --git a/token/jwt/jwt.go b/token/jwt/jwt.go index 9c5aa5775..f03eb6927 100644 --- a/token/jwt/jwt.go +++ b/token/jwt/jwt.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 // Package jwt is able to generate and validate json web tokens. diff --git a/token/jwt/jwt_test.go b/token/jwt/jwt_test.go index 1939d7bba..92272edf3 100644 --- a/token/jwt/jwt_test.go +++ b/token/jwt/jwt_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package jwt diff --git a/token/jwt/map_claims.go b/token/jwt/map_claims.go index d4f75285c..bca4200cf 100644 --- a/token/jwt/map_claims.go +++ b/token/jwt/map_claims.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package jwt diff --git a/token/jwt/map_claims_test.go b/token/jwt/map_claims_test.go index cc4f08219..b9b6dac1c 100644 --- a/token/jwt/map_claims_test.go +++ b/token/jwt/map_claims_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package jwt diff --git a/token/jwt/token.go b/token/jwt/token.go index 85acab177..2d20b89c7 100644 --- a/token/jwt/token.go +++ b/token/jwt/token.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package jwt diff --git a/token/jwt/token_test.go b/token/jwt/token_test.go index e6c3cd583..c890556a1 100644 --- a/token/jwt/token_test.go +++ b/token/jwt/token_test.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package jwt diff --git a/token/jwt/validation_error.go b/token/jwt/validation_error.go index b39bafe4c..8effbf36a 100644 --- a/token/jwt/validation_error.go +++ b/token/jwt/validation_error.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 package jwt diff --git a/tools.go b/tools.go index 7e1cfbeb1..7a50877a4 100644 --- a/tools.go +++ b/tools.go @@ -1,4 +1,4 @@ -// Copyright © 2025 Ory Corp +// Copyright © 2026 Ory Corp // SPDX-License-Identifier: Apache-2.0 //go:build tools