Download the PHP package peekabooauth/peekaboo-bundle without Composer

On this page you can find all versions of the php package peekabooauth/peekaboo-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package peekaboo-bundle

Peekaboo Bundle

Symfony bundle for authentication integration with the Peekaboo identity server.

Requirements

Install

Add to config/bundles.php

Add to config/routes/annotations.yaml

Add to config/packages/security.yaml

Authentication Methods

The bundle supports multiple authentication methods, checked in priority order:

Priority Method How to use
1 JWT Token Authorization: Bearer <token> header, or bearer query/body parameter
2 API Key x-api-key header, or apikey query/body parameter
3 Basic Auth Authorization: Basic <credentials> header
4 Session Automatic after OAuth redirect flow

JWT Token Authentication

API Key Authentication

Basic Auth

Getting a JWT Token

Environment Variables

Variable Description Default
IDENTITY_SERVER_URL_EXTERNAL Public URL of identity server (for browser redirects) https://peekabooauth.com
IDENTITY_SERVER_URL_INTERNAL Internal URL of identity server (for server-to-server calls) https://peekabooauth.com
IDENTITY_SERVER_AUTH_PATH Path to authentication endpoint /identity/auth
IDENTITY_SERVER_LOGOUT_PATH Path to logout endpoint /identity/logout
ROUTE_AFTER_REDIRECT Route name to redirect after successful auth homepage
PEEKABOO_APPLICATION_NAME Your application name registered with Peekaboo dev
PEEKABOO_APPLICATION_SECRET Your application secret (required)
PEEKABOO_AUTOLOGIN Auto-login provider (see below) (empty)
PEEKABOO_DEV_ROLES Override dev user roles (comma-separated) (empty = default roles)

Example .env:

Local Development

To test your app without connecting to the real identity server (useful for offline development), set:

This returns a hardcoded dev user with the following properties:

To test with different roles, set PEEKABOO_DEV_ROLES in .env.local:

Autologin

Set PEEKABOO_AUTOLOGIN to skip the login form and authenticate automatically:

Value Behavior
google Redirect directly to Google login
facebook Redirect directly to Facebook login
google_js Show login page, auto-click Google button
facebook_js Show login page, auto-click Facebook button
(empty) Show login form without autologin

Upgrading to 1.12.0

Upgrading to 1.11.2

Upgrading to 1.11.1

Upgrading to 1.11.0

Upgrading to 1.10.1

Upgrading to 1.10.0

Development

License

GPL-3.0-only


All versions of peekaboo-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.4
ext-json Version *
psr/log Version ^3.0
symfony/framework-bundle Version ^7.4|^8.0
symfony/http-client Version ^7.4|^8.0
symfony/http-foundation Version ^7.4|^8.0
symfony/http-kernel Version ^7.4|^8.0
symfony/routing Version ^7.4|^8.0
symfony/security-bundle Version ^7.4|^8.0
symfony/security-core Version ^7.4|^8.0
symfony/security-http Version ^7.4|^8.0
symfony/validator Version ^7.4|^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package peekabooauth/peekaboo-bundle contains the following files

Loading the files please wait ...