Copied!

Retrieve a token from a URL.

CloneableInstantiable
Methods
public __construct(string $url, ?string $format = NULL, ?string $subjectTokenFieldName = NULL, ?array $headers = NULL)
 
  • param string $url The URL to fetch the subject token from.
  • param string|null $format The format of the token in the response. Can be null or "json".
  • param string|null $subjectTokenFieldName The name of the field containing the token in the response. This is required when format is "json".
  • param array<string,string|string[]>|null $headers Request headers to send in with the request to the URL.
public fetchSubjectToken(?callable $httpHandler = NULL) : string
public getCacheKey() : ?string
 

Get the cache key for the credentials.

The format for the cache key is: URL

  • return ?string
Properties
private ?string $format
private ?array $headers
 
  • var array<string,string|string[]>
private ?string $subjectTokenFieldName
private string $url
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration