Download the PHP package coretrekas/idp without Composer
On this page you can find all versions of the php package coretrekas/idp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download coretrekas/idp
More information about coretrekas/idp
Files in coretrekas/idp
Package idp
Short Description SDK to interact with the Coretrek IDP service with Laravel support
License MIT
Informations about the package idp
Coretrek IDP SDK
SDK to interact with the Coretrek IDP service with Laravel support.
Installation
First require the package through composer.
Manually setup the sdk
Generate or create a token instance based on your credentials.
You should store the token in your application to prevent it from beeing generate each time.
The token is valid for the amount of seconds defined in expires_in
part of the token.
The toArray()
or toJson()
method can help with storing the token.
When you have a valid token instance you can instantiate the sdk.
Setup Sdk with laravel
With laravel the service provider will automatically be found by the framework. It will also automatically take care of storing the token and refreshing it when needed by the cache driver of your choice.
Usage
Users
List all users.
Get a single user.
Create a new user.
Validate a new user without creating it.
Update user.
Validate an update request for a given user.
Delete a user.
Groups
List all groups.
Get a single group.
Create a new group.
Only validate a set of group attributes without creating the group.
Update group.
Only validate group attributes without updating it.
Delete a group.
Group and user relation
Add a user to the group
Update user meta in a group
Remove user from a group.
Misc
When using endpoints with pagination the api will return the necessary url to get the following results.
In these cases we provide a get
method on the sdk.
Laravel Socialite support
This package include a socialite provider for authenticating users. Remember to update the service config to make use of it.
Testing
You can run the tests with:
Changelog
Please see CHANGELOG for more information what has changed recently.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Tommy Leirvik
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of idp with dependencies
guzzlehttp/guzzle Version *
illuminate/http Version *
illuminate/support Version *