Download the PHP package maenbn/openamauth without Composer
On this page you can find all versions of the php package maenbn/openamauth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download maenbn/openamauth
More information about maenbn/openamauth
Files in maenbn/openamauth
Package openamauth
Short Description OpemAmAuth is a client for authenticating against OpenAM in PHP
License MIT
Informations about the package openamauth
OpenAM Authentication
This is a PHP library for authenticating users via OpenAM
NOTE: Usage with Laravel
This package has been changed to be framework agnostic. If you're using Laravel 5.1 then continue to use **v1.1.*** of this package. For later versions of Laravel, a new separate package for Laravel will be created using this package as it's core logic. More information will follow.
Installation
The tool requires you have PHP 5.6.*+ and Composer.
You will also need a OpenAM server.
To install the package run the following composer command
Usage
Setup
To setup an OpenAm object you will need to initialise a config object and pass that to the OpenAm factory:
Authenticating and retrieving the return token ID
Validate Token
If an OpenAm instance has ran a successful during the current runtime then you can validate the token id without having to set a token ID on the instance. Other wise use the setter before validating.
Getting users details
If an OpenAm instance has ran a successful during the current runtime then you can get the users
details return from OpenAM without having to set a token ID and the user ID. Other wise use the
and setters before running the then .
Logging out
If an OpenAm instance has ran a successful during the current runtime then you can logout without having to set a token ID. Other wise use the setter before logging out a user.
Accessing Config object via OpenAm object
When the object is injected into the constructor of it'll modify the and property on if they're set to . This is done by retrieving this information from the OpenAm server. Obviously you may want to retrieve this data in order to set a cookie on your app correctly. Therefore you can access the object via the object via the getter:
All versions of openamauth with dependencies
ext-curl Version *