Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/authwave/php-client
PHP client for integrating Authwave into your projects.
https://github.com/authwave/php-client
authentication authentication-backend authentication-middleware authentication-service password php-7 php-74 php-authentication php-client
Last synced: about 1 month ago
JSON representation
PHP client for integrating Authwave into your projects.
- Host: GitHub
- URL: https://github.com/authwave/php-client
- Owner: Authwave
- Created: 2019-10-08T13:45:27.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-08T09:16:14.000Z (3 months ago)
- Last Synced: 2024-10-12T12:21:28.015Z (about 1 month ago)
- Topics: authentication, authentication-backend, authentication-middleware, authentication-service, password, php-7, php-74, php-authentication, php-client
- Language: PHP
- Homepage: https://www.authwave.com/clients/php
- Size: 185 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
PHP client library to implement Authwave in your application
============================================================Authwave is an open source Identity-as-a-Service product that can be self-hosted. Using Authwave allows your application to offer authentication with great user experience and security, without you having to program any of the authentication yourself.
To use this repository, your application must be registered to obtain a client key (see example below). This can be done from https://www.authwave.com or from your own instance of [Authwave Provider](https://github.com/Authwave/provider) if you are self-hosting.
Basic usage
-----------With the following PHP code below, you can display a log in button that, when clicked, changes to a log out button and displays a greeting to the logged in user.
```php
login();
}
elseif(isset($_GET["logout"])) {
$auth->logout();
}// Authentication is handled by Authwave, so you can trust "isLoggedIn"
// as a mechanism for protecting your sensitive information.
if($auth->isLoggedIn()) {
echo <<You are logged in as {$auth->getEmail()}
HTML;
}
else {
echo <<You are not logged in!
HTML;
}
```