late-tiger-78467
05/06/2022, 12:39 PMlate-tiger-78467
05/12/2022, 1:03 AMhigh-optician-2097
late-tiger-78467
05/12/2022, 9:10 AMlate-tiger-78467
05/20/2022, 6:10 AMhigh-optician-2097
high-optician-2097
late-tiger-78467
05/20/2022, 7:43 AMlate-tiger-78467
05/22/2022, 7:53 AMMultiProviderConfigurator
that contains a single GetConfig(context.Context) compose.Config
and modify the Fosite handlers to call into this to get the config object. With that approach, the thought process was to leave the Config object as a struct because we felt it would be easier to extend it with newer struct members. And of course modify the Fosite struct with *compose.Config
as a member representing "default" configuration, rather than duplicate the properties.
With an interface, every new capability with new properties (like tls_client_auth will have) is going to require a new interface provider. This isn't necessarily a problem at all but it also means any extensions to current capabilities will also need a new interface for backward compatibility.
Have you considered an alternative where the config instance in Fosite would be retained as a struct object and not as an interface and, instead offer the option of the MultiProviderConfigurator, which would also provide the same capabilities to perform hot reloading or to support multiple OAuth providers using a single Fosite object?late-tiger-78467
05/22/2022, 8:10 AMhigh-optician-2097
late-tiger-78467
05/22/2022, 9:27 AMhigh-optician-2097
high-optician-2097
high-optician-2097
high-optician-2097
late-tiger-78467
05/23/2022, 12:05 PMlate-tiger-78467
05/23/2022, 12:09 PMlate-tiger-78467
05/23/2022, 12:10 PMhigh-optician-2097
high-optician-2097
late-tiger-78467
05/28/2022, 4:05 AMhigh-optician-2097
late-tiger-78467
05/28/2022, 9:23 AMdocker:
- image: cimg/go:1.18.2
circleci/golang:1.14
is considered legacy per https://circleci.com/developer/images/image/cimg/golate-tiger-78467
05/28/2022, 9:24 AMhigh-optician-2097
late-tiger-78467
05/29/2022, 2:57 AM#!/bin/bash -eo pipefail
curl -sfL <https://install.goreleaser.com/github.com/golangci/golangci-lint.sh> | sh -s -- -b $(go env GOPATH)/bin v1.31.0
Exited with code exit status 6
CircleCI received exit code 6
late-tiger-78467
05/30/2022, 9:15 AMlate-tiger-78467
05/30/2022, 9:22 AMlate-tiger-78467
06/01/2022, 3:58 PMhigh-optician-2097
late-tiger-78467
06/19/2022, 12:54 PMhigh-optician-2097
late-tiger-78467
06/20/2022, 5:17 AMlate-tiger-78467
06/25/2022, 7:16 AMhigh-optician-2097