-
Notifications
You must be signed in to change notification settings - Fork 1
/
kratos.patch
22 lines (19 loc) · 952 Bytes
/
kratos.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/hydra/hydra.go b/hydra/hydra.go
index a4466307e..915489545 100644
--- a/hydra/hydra.go
+++ b/hydra/hydra.go
@@ -72,7 +72,7 @@ func (h *DefaultHydra) getAdminURL(ctx context.Context) (string, error) {
return u.String(), nil
}
-func (h *DefaultHydra) getAdminAPIClient(ctx context.Context) (*hydraclientgo.OAuth2ApiService, error) {
+func (h *DefaultHydra) getAdminAPIClient(ctx context.Context) (*hydraclientgo.OAuth2APIService, error) {
url, err := h.getAdminURL(ctx)
if err != nil {
return nil, err
@@ -87,7 +87,7 @@ func (h *DefaultHydra) getAdminAPIClient(ctx context.Context) (*hydraclientgo.OA
}
configuration.HTTPClient = client
- return hydraclientgo.NewAPIClient(configuration).OAuth2Api, nil
+ return hydraclientgo.NewAPIClient(configuration).OAuth2API.(*hydraclientgo.OAuth2APIService), nil
}
func (h *DefaultHydra) AcceptLoginRequest(ctx context.Context, params AcceptLoginRequestParams) (string, error) {