Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move config from internal #438

Closed
wants to merge 3 commits into from
Closed

move config from internal #438

wants to merge 3 commits into from

Conversation

mustyantsev
Copy link
Contributor

No description provided.

@@ -9,15 +9,18 @@ import (

"github.com/coreos/go-oidc/v3/oidc"
"github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
"github.com/opentdf/platform/config"
"github.com/opentdf/platform/pkg/serviceregistry"
kaspb "github.com/opentdf/platform/protocol/go/kas"
"github.com/opentdf/platform/services/kas/access"
"golang.org/x/oauth2"
)

func loadIdentityProvider() *oidc.IDTokenVerifier {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be wired in from kas.newRegistration() via the srp.Config object

Suggested change
func loadIdentityProvider() *oidc.IDTokenVerifier {
func loadIdentityProvider(oidcIssuerURL, discoveryBaseURL string) *oidc.IDTokenVerifier {

@github-actions github-actions bot added the Stale label May 22, 2024
@github-actions github-actions bot closed this May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants