Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2 from php-istio/feat/add-prefix-arg-for-extract-…
Browse files Browse the repository at this point in the history
…factory-from-origin-token-query-param

feat: add prefix arg for extract factory from origin token query param.
  • Loading branch information
vuongxuongminh authored Oct 30, 2021
2 parents 6ee2bc9 + 8a91870 commit 38f1d31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ExtractorFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ public static function fromOriginTokenHeader(string $issuer, string $header = 'A
return new OriginTokenExtractor($issuer, AbstractExtractor::IN_HEADER, $header, $prefix);
}

public static function fromOriginTokenQueryParam(string $issuer, string $queryParam): ExtractorInterface
public static function fromOriginTokenQueryParam(string $issuer, string $queryParam, string $prefix = ''): ExtractorInterface
{
return new OriginTokenExtractor($issuer, AbstractExtractor::IN_QUERY_PARAM, $queryParam);
return new OriginTokenExtractor($issuer, AbstractExtractor::IN_QUERY_PARAM, $queryParam, $prefix);
}

public static function fromExtractors(ExtractorInterface ...$extractors): ExtractorInterface
Expand Down

0 comments on commit 38f1d31

Please sign in to comment.