auth0/auth0-php
Auth0 PHP SDK for integrating Auth0 Authentication and Management APIs. Build login/logout flows, validate tokens, and manage users, roles, and applications. Works with any PHP app, with tailored SDKs available for Laravel, Symfony, and WordPress.
This class serves as the main entry point for the SDK. It primarily serves as a helper class for working with authentication, managing statefulness (sessions), and factories for other classes in the SDK.
Consumes a Auth0\SDK\Configuration\SdkConfiguration configuration instance. Informs all functions of the SDK on how to interact with Auth0's APIs based on your configuration.
Parameters:
configuration — SdkConfiguration | arrayCreate, configure, and return an instance of the Authentication class.
Create, configure, and return an instance of the Management class.
Returns the SdkConfiguration instance that was passed during SDK initialization.
Establishes a session for the user, generates necessary code challenges, and returns a URL which your application should redirect the user through to begin the authentication flow.
Returns: (string) URL to redirect the user through.
Parameters:
redirectUrl — string | nullparams — array | nullEstablishes a session for the user, generates necessary code challenges, and returns a URL which your application should redirect the user through to begin the authentication flow. This method is identical to login(), but adds the screen_hint=signup parameter to customize Universal Login prompts.
Returns: (string) URL to redirect the user through.
Parameters:
redirectUrl — string | nullparams — array | nullDeletes any persistent session data and clear out all stored properties, and return the URI to Auth0 /logout endpoint for redirection.
Returns: (string) URL to redirect the user through.
Parameters:
returnUrl — string | nullparams — array | nullDelete any persistent data and clear out all stored properties.
Returns: (self)
Parameters:
transient — bool
When true, data in transient storage is also cleared.Verifies and decodes an ID or access token using the properties in this class.
Returns: (TokenInterface) Token representing a successfully decoded ID or access token.
Parameters:
token — stringtokenAudience — string[]aud claim. Successful if ANY match.tokenOrganization — string[] | nullorg_id claim. Successful if ANY match.tokenNonce — string | nullnonce claim.tokenMaxAge — int | nullauth_time to accept the token.tokenLeeway — int | nulltokenNow — int | nullHow can I help you explore Laravel packages today?