+
+ $endpointProperties = ['tokenEndpoint', 'authorizationEndpoint', 'userinfoEndpoint'];
+ foreach ($endpointProperties as $prop) {
+ if (is_string($this->$prop) && !str_starts_with($this->$prop, 'https://')) {
+ throw new InvalidArgumentException("Endpoint value for \"{$prop}\" must start with https://");
+ }
+ }