Skip to content

Commit

Permalink
WIP #20 about token data in OAuthRequestAccess
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyrille37 committed May 14, 2024
1 parent 6f2ec27 commit 089f88d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples-web/OAuthRequestAccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,13 @@
?>
<h3>Resource owner</h3>
<?php
/** @var JBelien\OAuth2\Client\Provider\OpenStreetMapResourceOwner $resourceOwner */
$resourceOwner = $osmProvider->getResourceOwner($accessToken);
?>
<p>
Resource owner name: <?php echo $resourceOwner->getDisplayName() ?>
</p>
<?php
echo '<pre>', print_r($resourceOwner,true) ,'</pre>';
?>
</li>
Expand Down

0 comments on commit 089f88d

Please sign in to comment.