Commit graph

2 commits

Author SHA1 Message Date
Tim Möhlmann
7570c9dedb 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 13:39:47 +02:00
Tim Möhlmann
11c3ae3306 reproduce #406 2023-06-09 13:31:28 +02:00