Skip to content

Commit

Permalink
fix: context background for well-known call
Browse files Browse the repository at this point in the history
  • Loading branch information
stebenz committed Sep 2, 2024
1 parent 04023cc commit 2a882c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zitadel/helper/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func GetAdminClient(ctx context.Context, info *ClientInfo) (*admin.Client, error
if adminClient == nil {
client, err := admin.NewClient(ctx,
info.Issuer, info.Domain,
[]string{oidc.ScopeOpenID},
[]string{oidc.ScopeOpenID, zitadel.ScopeZitadelAPI()},
info.Options...,
)
if err != nil {
Expand All @@ -114,7 +114,7 @@ func GetManagementClient(ctx context.Context, info *ClientInfo) (*management.Cli
if mgmtClient == nil {
client, err := management.NewClient(ctx,
info.Issuer, info.Domain,
[]string{oidc.ScopeOpenID},
[]string{oidc.ScopeOpenID, zitadel.ScopeZitadelAPI()},
info.Options...,
)
if err != nil {
Expand Down

0 comments on commit 2a882c2

Please sign in to comment.