-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed php.ini settings value for cacert.pem
Update composer.json Roll firebase/php-jwt to ^4.0 Added new oauth token calls docs + cleanup New class to orchestrate the authentication + fixes + example updated removed adoy oauth dependency improvements, update samples + update readme added ro for passwordless verify fix typos: suported -> supported rename fix suported_algs typo Merge Add StoreInterface so custom implementations can adhere to this interface #139 fix typos and docs errors updated api sample to use RS256 access tokens updated webapp to use hosted login page ro should be public fixed tests
- Loading branch information
Showing
39 changed files
with
756 additions
and
1,579 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,6 @@ vendor | |
.idea | ||
.DS_Store | ||
.env | ||
.env.us | ||
examples/basic-oauth/.env | ||
composer.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,32 @@ | ||
<?php | ||
|
||
if (isset($_REQUEST['update']) && $_REQUEST['update']) { | ||
|
||
$newMetadata = json_decode($_REQUEST["metadata"], true); | ||
|
||
$auth0Oauth->updateUserMetadata($newMetadata); | ||
|
||
echo "<div>UPDATED!!!</div>"; | ||
} | ||
|
||
$userInfo = $auth0Oauth->getUser(); | ||
|
||
|
||
use Auth0\SDK\API\Management; | ||
|
||
if (isset($_REQUEST['update']) && $_REQUEST['update']) { | ||
|
||
$managementApi = new Management($auth0->getIdToken(), $domain); | ||
|
||
$newMetadata = json_decode($_REQUEST["metadata"], true); | ||
|
||
$userInfo = $managementApi->users->update( | ||
$userInfo['user_id'], | ||
[ 'user_metadata' => $newMetadata ] | ||
); | ||
|
||
$auth0->setUser($userInfo); | ||
|
||
echo "<div>UPDATED!!!</div>"; | ||
} | ||
|
||
$userInfo = $auth0->getUser(); | ||
|
||
?> | ||
|
||
<form action="?update-metadata" method="POST"> | ||
|
||
<textarea name='metadata'> | ||
<?php echo json_encode($userInfo["user_metadata"]); ?> | ||
</textarea> | ||
</textarea> | ||
|
||
<input type="submit" name="update" value="Update" /> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.