This is an automated email from the ASF dual-hosted git repository. kittohoward pushed a commit to branch statusRPC in repository https://gitbox.apache.org/repos/asf/incubator-milagro-dta.git
commit f884d29b8a7a77cf3227374b4b0cd61dfb8ae992 Author: howardkitto <[email protected]> AuthorDate: Mon Sep 16 13:18:21 2019 +0100 hardcode OIDC for testing purposes --- pkg/api/client.go | 3 ++- pkg/config/default.go | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg/api/client.go b/pkg/api/client.go index 74fdfdc..91c8f31 100644 --- a/pkg/api/client.go +++ b/pkg/api/client.go @@ -37,7 +37,7 @@ var ( type ClientService interface { FulfillOrder(req *FulfillOrderRequest) (*FulfillOrderResponse, error) FulfillOrderSecret(req *FulfillOrderSecretRequest) (*FulfillOrderSecretResponse, error) - Status() (*StatusResponse, error) + Status(token string) (*StatusResponse, error) } // MilagroClientService - implements Service Interface @@ -103,6 +103,7 @@ func (c MilagroClientService) FulfillOrderSecret(req *FulfillOrderSecretRequest) //Status - Allows a client to see the status of the server that it is connecting too func (c MilagroClientService) Status(token string) (*StatusResponse, error) { + fmt.Printf("\njwtToken: %v\n", token) endpoint := c.endpoints["Status"] ctx := context.Background() ctx = transport.SetJWTAuthHeader(ctx, token) diff --git a/pkg/config/default.go b/pkg/config/default.go index 1ea3ba1..d8baccf 100644 --- a/pkg/config/default.go +++ b/pkg/config/default.go @@ -32,8 +32,8 @@ func defaultHTTPConfig() HTTPConfig { return HTTPConfig{ ListenAddr: ":5556", MetricsAddr: ":5557", - OIDCProvider: "", - OIDCClientID: "", + OIDCProvider: "https://cognito-idp.eu-west-1.amazonaws.com/eu-west-1_m8yeNWVGg", + OIDCClientID: "b6mbvm7sr62f7oc72bu69h6if", OIDCClientKey: "", CorsAllow: "*", }
