zitadel-oidc/pkg/client
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
..
profile feat: rp.RefreshAccessToken() now may provide an updated IDToken (#365) 2023-04-13 16:37:50 +03:00
rp feat: coverage prompt=none, response_mode=fragment (#385) 2023-05-03 12:56:47 +02:00
rs refactor: use struct types for claim related types (#283) 2023-03-10 16:31:22 +02:00
tokenexchange feat: Token Exchange (RFC 8693) (#255) 2023-02-19 15:57:46 +02:00
client.go feat: rp.RefreshAccessToken() now may provide an updated IDToken (#365) 2023-04-13 16:37:50 +03:00
client_test.go fix: don't error on invalid i18n tags in discovery (#407) 2023-06-09 16:31:44 +02:00
integration_test.go feat: coverage prompt=none, response_mode=fragment (#385) 2023-05-03 12:56:47 +02:00
jwt_profile.go feat(op): dynamic issuer depending on request / host (#278) 2023-02-09 17:10:22 +01:00
key.go chore(linting): apply gofumpt & goimports to all .go files (#225) 2022-10-05 09:33:10 +02:00