Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Auth0 Php Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Auth0\SDK\Auth0

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.

Variables

Methods

__construct

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:

  • configurationSdkConfiguration | array
    Base configuration options for the SDK.

authentication

Create, configure, and return an instance of the Authentication class.


management

Create, configure, and return an instance of the Management class.


configuration

Returns the SdkConfiguration instance that was passed during SDK initialization.


login

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 | null
    Optional. URI to return to after logging out. Defaults to the SDK's configured redirectUri.
  • params — array | null
    Optional. Additional parameters to include with the request.

signup

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. 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 | null
    Optional. URI to return to after logging out. Defaults to the SDK's configured redirectUri.
  • params — array | null
    Optional. Additional parameters to include with the request.

logout

Deletes 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 | null
    Optional. URI to return to after logging out. Defaults to the SDK's configured redirectUri.
  • params — array | null
    Optional. Additional parameters to include with the request.

clear

Delete any persistent data and clear out all stored properties.

Returns: (self)

Parameters:

  • transient — bool When true, data in transient storage is also cleared.

decode

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 — string
    Token to verify and decode.
  • tokenAudience — string[]
    Optional. An array of allowed values for the aud claim. Successful if ANY match.
  • tokenOrganization — string[] | null
    Optional. An array of allowed values for the org_id claim. Successful if ANY match.
  • tokenNonce — string | null
    Optional. The value expected for the nonce claim.
  • tokenMaxAge — int | null
    Optional. Maximum window of time in seconds since the auth_time to accept the token.
  • tokenLeeway — int | null
    Optional. Leeway in seconds to allow during time calculations. Defaults to 60.
  • tokenNow — int | null
    Optional. Unix timestamp representing the current point in time to use for time calculations.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky