PHP OIDC Client
  • PHP Oidc-Client
    • Introduction
    • Requirements
    • Supported functionnality
    • How to install
  • How to use the library
    • Generic use of the library
    • Microsoft Azure OIDC
    • Google
    • Github
    • Dropbox
  • Deal with the provider
    • Authorization flow
    • Token endpoint
    • Tokens managment
    • UserInfo
    • Logout
  • Advanced Topic
    • Secure the session
    • Request options
    • Nested JWT
    • UserInfo response encrypted (JWE)
  • Utils
    • LogLevel
    • Generate a key pair
    • Generate an UUID
    • Generate a security key
    • Get informations of a certificate
    • Verify if json
  • Links / Credits
    • Repo
    • OIDC specs
    • JWT Framework
    • Guzzle
Powered by GitBook
On this page
  1. Advanced Topic

Request options

PreviousSecure the sessionNextNested JWT

Last updated 1 year ago

All the options depends on guzzle capabilities. See the .

  • If you need to use a proxy to access to the OP (see the doc ) :

$client = new Svgta\OidcClient\init();
//...
$client->request->setHttpProxy('http://proxyUri:proxyPort');
$client->request->setHttpsProxy('http://proxyUri:proxyPort');
//the proxy is a string
$client->request->setNoProxy(['.myDomain', '.myOtherDomain']);
// the list is an array of domains that don't use proxy if http proxy and https proxy are set
  • No verify TLS :

$client->request->verifyTls(false);
  • Add SSL/TLS key :

$client->request->setCert('pathToFile');
//OR
$client->request->setCert(['pathToFile', 'password']);
  • Add other guzzle options :

$client->request->addOtherParam('debug', true);

guzzle doc
guzzle