in the generated hydra admin api client (golang), ...
# contributors
c
in the generated hydra admin api client (golang), how do i configure basic Auth? I have this call inside a browser call:
Copy code
loginRes, x, err := s.HydraAPIClient.AdminApi.GetLoginRequest(r.Context()).LoginChallenge(challenge).Execute()
I tried setting them like so, but with no success:
Copy code
auth := context.WithValue(r.Context(), "basic", &hydra.BasicAuth{
		 	UserName: s.IDPConfig.HydraAdminCreds.User,
			Password: s.IDPConfig.HydraAdminCreds.Pass,
		 })
		loginRes, x, err := s.HydraAPIClient.AdminApi.GetLoginRequest(auth).LoginChallenge(challenge).Execute()
Sorry if this is ibvious, but i'm trying to add this to @bulky-architect-22083’s code from the hydra/kratos integration
b
It looks like you have made some changes to the config file and reading the basic auth creds from the file. Maybe it is not being parsed correctly?