Download the PHP package icanid/icanid-sdk-php without Composer
On this page you can find all versions of the php package icanid/icanid-sdk-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download icanid/icanid-sdk-php
More information about icanid/icanid-sdk-php
Files in icanid/icanid-sdk-php
Package icanid-sdk-php
Short Description ICAN ID PHP SDK.
License MIT
Homepage https://github.com/galaxyed/core-sdk-php
Informations about the package icanid-sdk-php
Auth0 enables you to rapidly integrate authentication and authorization for your applications, so you can focus on your core business. (Learn more)
Our PHP SDK provides a straight-forward and rigorously tested interface for accessing Auth0's Authentication and Management API endpoints through modern releases of PHP.
This is one of many libraries we offer supporting numerous platforms.
- Requirements
- Installation
- Getting Started
- Authentication API
- Management API
- Examples
- Organizations
- Logging in with an Organization
- Accepting user invitations
- Validation guidance
- Documentation
- Contributing
- Support + Feedback
- Vulnerability Reporting
- What is Auth0?
- License
Requirements
- PHP 7.3+ / 8.0+
- Composer
Installation
The recommended way to install the SDK is through Composer:
Guidance on setting up Composer and alternative installation methods can be found in our documentation.
Getting Started
To get started, you'll need to create a free Auth0 account and register an Application.
Authentication API
Begin by instantiating the SDK and passing the relevant details from your Application's settings page:
Note: In a production application you should never hardcode these values. Consider using environment variables to store and pass these values to your application, as suggested in our documentation.
Using the SDK, making requests to Auth0's endpoints couldn't be simpler. For example, signing users in using Auth0's Universal Login and retrieving user details can be done in a few lines of code:
Further examples of how you can use the Authentication API Client can be found on our documentation site.
Management API
This SDK also offers an interface for Auth0's Management API which, in order to access, requires an Access Token that is issued specifically for your tenant's Management API by specifying the corresponding Audience.
The process for retrieving such an Access Token is described in our documentation.
The SDK provides convenient interfaces to the Management API's endpoints. For example, to search for users:
At the moment the best way to see what endpoints are covered is to read through the \Auth0\SDK\API\Management
class, available here.
Examples
Organizations
Organizations is a set of features that provide better support for developers who build and maintain SaaS and Business-to-Business (B2B) applications.
Using Organizations, you can:
- Represent teams, business customers, partner companies, or any logical grouping of users that should have different ways of accessing your applications, as organizations.
- Manage their membership in a variety of ways, including user invitation.
- Configure branded, federated login flows for each organization.
- Implement role-based access control, such that users can have different roles when authenticating in the context of different organizations.
- Build administration capabilities into your products, using Organizations APIs, so that those businesses can manage their own organizations.
Note that Organizations is currently only available to customers on our Enterprise and Startup subscription plans.
Logging in with an Organization
Configure the Authentication API client with your Organization ID:
Redirect to the Universal Login page using the configured organization:
Accepting user invitations
Auth0 Organizations allow users to be invited using emailed links, which will direct a user back to your application. The URL the user will arrive at is based on your configured Application Login URI
, which you can change from your Application's settings inside the Auth0 dashboard.
When the user arrives at your application using an invite link, you can expect three query parameters to be provided: invitation
, organization
, and organization_name
. These will always be delivered using a GET request.
A helper function is provided to handle extracting these query parameters and automatically redirecting to the Universal Login page:
If you prefer to have more control over this process, a separate helper function is provided for extracting the query parameters, getInvitationParameters()
, which you can use to initiate the Universal Login redirect yourself:
After successful authentication via the Universal Login Page, the user will arrive back at your application using your configured redirect_uri
, their token will be automatically validated, and the user will have an authenticated session. Use getUser()
to retrieve details about the authenticated user.
Validation guidance
In the examples above, our application is operating with a single, configured Organization. By initializing the SDK with the organization
option, we are telling the internal ID Token verifier (IdTokenVerifier
) to validate an org_id
claim's presence, and that it matches what we provided.
Your application might not know the Organization ID ahead of time, or potentially need to support multiple organizations.
Your application should validate an org_id
claim itself to ensure the value received is expected and known by your application.
This could be achieved by reading the value of "org_id" returned by the getUser()
method. An example might look like this:
If the claim can't be validated, your application should reject the token as invalid. See https://auth0.com/docs/organizations/using-tokens for more information.
Documentation
- Documentation
- Quickstarts
Contributing
We appreciate your feedback and contributions to the project! Before you get started, please review the following:
- Auth0's general contribution guidelines
- Auth0's code of conduct guidelines
- The Auth0 PHP SDK contribution guide
Support + Feedback
- The Auth0 Community is a valuable resource for asking questions and finding answers, staffed by the Auth0 team and a community of enthusiastic developers
- For code-level support (such as feature requests and bug reports) we encourage you to open issues here on our repo
- For customers on paid plans, our support center is available for opening tickets with our knowledgeable support specialists
Further details about our support solutions are available on our website.
Vulnerability Reporting
Please do not report security vulnerabilities on the public GitHub issue tracker. The Responsible Disclosure Program details the procedure for disclosing security issues.
What is Auth0?
Auth0 helps you to:
- Add authentication with multiple authentication sources, either social like Google, Facebook, Microsoft, LinkedIn, GitHub, Twitter, Box, Salesforce (amongst others), or enterprise identity systems like Windows Azure AD, Google Apps, Active Directory, ADFS or any SAML Identity Provider.
- Add authentication through more traditional username/password databases.
- Add support for passwordless and multi-factor authentication.
- Add support for linking different user accounts with the same user.
- Analytics of how, when and where users are logging in.
- Pull data from other sources and add it to the user profile, through JavaScript rules.
License
The Auth0 PHP SDK is open source software licensed under the MIT license. See the LICENSE file for more info.
All versions of icanid-sdk-php with dependencies
ext-json Version *
ext-openssl Version *
auth0/php-jwt Version 3.3.4
guzzlehttp/guzzle Version ^6.0|^7.0
psr/simple-cache Version ^1.0
guzzlehttp/psr7 Version ^1.8