Abdullah Al Noman Prince 9d6a680c13
Feature: basicAuth Helper is added (#17)
* Feature: basicAuth Helper is added

* refactor BasicAuth + examples

* update readme

* add custom basic auth example

---------

Co-authored-by: Jamie Barton <jamie@notrab.dev>
2024-08-28 14:29:13 +01:00

388 B

Basic Auth with custom verify Example

This example demonstrates how to use Basic authentication in Dumbo using a custom verify function.

Running the Example

  1. Install dependencies:

    composer install
    
  2. Start the server:

    composer start
    
  3. Access the protected route:

      curl -u user:password http://localhost:8000