Skip to content

v12.5.0 Add wrapper methods for JWT assertion and client secret authentication

Latest

Choose a tag to compare

@github-actions github-actions released this 07 Apr 11:20
· 4 commits to master since this release
Immutable release. Only release title and notes can be modified.
a76fb8c

What's Changed

Added feature

This release adds wrapper methods for ChannelAccessTokenApi#issueStatelessChannelToken, making stateless channel access token issuance simpler for both JWT assertion and client secret authentication. The original method accepts all parameters for two different authentication patterns, making it unclear which to pass for each pattern. These wrappers make the distinction explicit through their names and signatures.

- $token = $client->issueStatelessChannelToken(
-     grantType: 'client_credentials',
-     clientAssertionType: 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer',
-     clientAssertion: $clientAssertion,
- );
+ $token = $client->issueStatelessChannelTokenByJWTAssertion(
+     clientAssertion: $clientAssertion,
+ );
- $token = $client->issueStatelessChannelToken(
-     grantType: 'client_credentials',
-     clientId: $channelId,
-     clientSecret: $channelSecret,
- );
+ $token = $client->issueStatelessChannelTokenByClientSecret(
+     clientId: $channelId,
+     clientSecret: $channelSecret,
+ );
  • Implement wrapper method of issue_stateless_channel_token by @habara-k in #814

line-openapi updates

  • chore(deps): update line-openapi digest to c601805 by @renovate[bot] in #802
  • chore(deps): update line-openapi digest to 982bad2 by @renovate[bot] in #809

Dependency updates

  • chore(deps): update actions/setup-node action to v6.2.0 by @renovate[bot] in #785
  • chore(deps): update actions/checkout action to v6.0.2 by @renovate[bot] in #786
  • chore(deps): update actions/cache action to v5.0.2 by @renovate[bot] in #787
  • chore(deps): update actions/cache action to v5.0.3 by @renovate[bot] in #790
  • chore(deps): update suzuki-shunsuke/pinact-action action to v1.4.0 by @renovate[bot] in #791
  • chore(deps): update actions/stale action to v10.2.0 by @renovate[bot] in #793
  • chore(deps): update dependency phpunit/phpunit to v11 - abandoned by @renovate[bot] in #655
  • chore(deps): update actions/upload-artifact action to v7 by @renovate[bot] in #796
  • chore(deps): update actions/setup-node action to v6.3.0 by @renovate[bot] in #797
  • chore(deps): update ramsey/composer-install action to v3.2.0 by @renovate[bot] in #798
  • chore(deps): update shivammathur/setup-php action to v2.37.0 by @renovate[bot] in #799
  • chore(deps): update ramsey/composer-install action to v3.2.1 by @renovate[bot] in #800
  • chore(deps): update ramsey/composer-install action to v4 by @renovate[bot] in #801
  • chore(deps): update actions/cache action to v5.0.4 by @renovate[bot] in #803
  • chore(deps): update suzuki-shunsuke/pinact-action action to v2 by @renovate[bot] in #805
  • chore(deps): update actions/setup-java action to v4.8.0 by @renovate[bot] in #807
  • chore(deps): update dependency org.apache.maven.plugins:maven-dependency-plugin to v3.10.0 by @renovate[bot] in #808
  • chore(deps): update actions/setup-java action to v5 by @renovate[bot] in #811
  • chore(deps): update actions/configure-pages action to v6 by @renovate[bot] in #812
  • chore(deps): update actions/deploy-pages action to v5 by @renovate[bot] in #813

Other Changes

  • refactor: add type hints to parser library and Laravel facades by @Ayoub-Mabrouk in #772
  • Drop PHP 8.1 by @eucyt in #794
  • Docs: Update PHP_CodeSniffer repository link by @rodrigoprimo in #804
  • Manage config to run openapi generator in one file by @eucyt in #806
  • Add test for verifyChannelTokenByJWT and getsAllValidChannelAccessTokenKeyIds by @Yang-33 in #816
  • docs: improve documentation generation instructions by @Ayoub-Mabrouk in #789
  • Modify CONTRIBUTING.md about generating code by @Yang-33 in #815

New Contributors

Full Changelog: v12.4.0...v12.5.0


This release is prepared by @habara-k