OpenID-Connect-PHP icon indicating copy to clipboard operation
OpenID-Connect-PHP copied to clipboard

Make the User-Agent header configurable

Open goraxan opened this issue 2 years ago • 2 comments

I'm trying to call a Keycloak server that returns a 403 Forbidden if the User-Agent header is not set. Unfortunately I can't change the server configuration, so that it accepts requests without the User-Agent header.

Could you allow setting the User-agent globally so that every request has it?``

goraxan avatar Mar 28 '22 18:03 goraxan

Sounds reasonable - feel free to submit a pull request - thx

DeepDiver1975 avatar Mar 28 '22 18:03 DeepDiver1975

Ok done https://github.com/jumbojett/OpenID-Connect-PHP/pull/296

goraxan avatar Mar 29 '22 07:03 goraxan

fixed by #370

DeepDiver1975 avatar May 04 '23 09:05 DeepDiver1975