zitadel-oidc/pkg/oidc
Tim Möhlmann d01a5c8f91
fix: don't error on invalid i18n tags in discovery (#407)
* reproduce #406

* fix: don't error on invalid i18n tags in discovery

This changes the use of `[]language.Tag` to
`oidc.Locales` in `DiscoveryConfig`.
This should be compatible with callers that use
the `[]language.Tag` .

Locales now implements the `json.Unmarshaler` interface.
With support for json arrays or space seperated strings.
The latter because `UnmarshalText` might have been implicetely called
by the json library before we added UnmarshalJSON.

Fixes: #406
2023-06-09 16:31:44 +02:00
..
grants chore(linting): apply gofumpt & goimports to all .go files (#225) 2022-10-05 09:33:10 +02:00
regression_data fix: unmarshalling of scopes in access token (#327) 2023-03-15 14:44:49 +01:00
authorization.go feat: coverage prompt=none, response_mode=fragment (#385) 2023-05-03 12:56:47 +02:00
code_challenge.go feat(op): dynamic issuer depending on request / host (#278) 2023-02-09 17:10:22 +01:00
device_authorization.go implement RFC 8628: Device authorization grant 2023-03-01 08:59:17 +01:00
discovery.go fix: don't error on invalid i18n tags in discovery (#407) 2023-06-09 16:31:44 +02:00
error.go implement RFC 8628: Device authorization grant 2023-03-01 08:59:17 +01:00
introspection.go refactor: use struct types for claim related types (#283) 2023-03-10 16:31:22 +02:00
introspection_test.go fix: do not modify userInfo when marshaling 2023-03-28 12:58:34 +03:00
jwt_profile.go chore(linting): apply gofumpt & goimports to all .go files (#225) 2022-10-05 09:33:10 +02:00
keyset.go chore(linting): apply gofumpt & goimports to all .go files (#225) 2022-10-05 09:33:10 +02:00
keyset_test.go add missing import 2022-01-28 09:48:37 +01:00
regression_assert_test.go fix: do not modify userInfo when marshaling 2023-03-28 12:58:34 +03:00
regression_create_test.go refactor: use struct types for claim related types (#283) 2023-03-10 16:31:22 +02:00
regression_test.go refactor: use struct types for claim related types (#283) 2023-03-10 16:31:22 +02:00
revocation.go feat: Token Revocation, Request Object and OP Certification (#130) 2021-11-02 13:21:35 +01:00
session.go chore(linting): apply gofumpt & goimports to all .go files (#225) 2022-10-05 09:33:10 +02:00
token.go fix: do not modify userInfo when marshaling 2023-03-28 12:58:34 +03:00
token_request.go fix: Only set GrantType once (#353) 2023-03-29 07:51:10 +00:00
token_test.go fix: do not modify userInfo when marshaling 2023-03-28 12:58:34 +03:00
types.go fix: don't error on invalid i18n tags in discovery (#407) 2023-06-09 16:31:44 +02:00
types_test.go fix: don't error on invalid i18n tags in discovery (#407) 2023-06-09 16:31:44 +02:00
userinfo.go refactor: use struct types for claim related types (#283) 2023-03-10 16:31:22 +02:00
userinfo_test.go fix: do not modify userInfo when marshaling 2023-03-28 12:58:34 +03:00
util.go fix: do not modify userInfo when marshaling 2023-03-28 12:58:34 +03:00
util_test.go refactor: use struct types for claim related types (#283) 2023-03-10 16:31:22 +02:00
verifier.go refactor: use struct types for claim related types (#283) 2023-03-10 16:31:22 +02:00