Skip to content

Commit

Permalink
chore: synchronize workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Feb 2, 2024
1 parent a850b4e commit daf83fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions selfservice/strategy/password/op_helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,21 +70,21 @@ type testConfig struct {
browserClient *http.Client
kratosPublicTS *httptest.Server
clientAppTS *httptest.Server
hydraAdminClient hydraclientgo.OAuth2Api
hydraAdminClient *hydraclientgo.OAuth2ApiService
consentRemember bool
requestedScope []string
callTrace *[]callTrace
}

func createHydraOAuth2ApiClient(url string) hydraclientgo.OAuth2Api {
func createHydraOAuth2ApiClient(url string) *hydraclientgo.OAuth2ApiService {
configuration := hydraclientgo.NewConfiguration()
configuration.Host = urlx.ParseOrPanic(url).Host
configuration.Servers = hydraclientgo.ServerConfigurations{{URL: url}}

return hydraclientgo.NewAPIClient(configuration).OAuth2Api
}

func createOAuth2Client(t *testing.T, ctx context.Context, hydraAdmin hydraclientgo.OAuth2Api, redirectURIs []string, scope string, skipConsent bool) string {
func createOAuth2Client(t *testing.T, ctx context.Context, hydraAdmin *hydraclientgo.OAuth2ApiService, redirectURIs []string, scope string, skipConsent bool) string {
t.Helper()

clientName := "kratos-hydra-integration-test-client-1"
Expand Down
2 changes: 1 addition & 1 deletion selfservice/strategy/password/op_registration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestOAuth2ProviderRegistration(t *testing.T) {
errTS := testhelpers.NewErrorTestServer(t, reg)
redirTS := testhelpers.NewRedirSessionEchoTS(t, reg)

var hydraAdminClient hydraclientgo.OAuth2Api
var hydraAdminClient *hydraclientgo.OAuth2ApiService

router := x.NewRouterPublic()

Expand Down

0 comments on commit daf83fa

Please sign in to comment.