# Example of authentication and authorization in mezzio app

**URL:** <https://discourse.laminas.dev/t/example-of-authentication-and-authorization-in-mezzio-app/1385>\
**Category:** Show and Tell\
**Created:** [February 17, 2020, 7:23pm UTC](https://discourse.laminas.dev/t/example-of-authentication-and-authorization-in-mezzio-app/1385 "2020-02-17T19:23:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![samsonasik](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/samsonasik/32/777_2.png) [@samsonasik](https://discourse.laminas.dev/u/samsonasik)\
**Post date:** [February 17, 2020, 7:23pm UTC](https://discourse.laminas.dev/t/example-of-authentication-and-authorization-in-mezzio-app/1385/1 "2020-02-17T19:23:40Z")

</div>

I created an example project for authentication and authorization in mezzio application. It uses acl. It featuring prg, csrf, flash, and rememberme functionality.

It can be used wth MySQL or PostgreSQL database.

The repository is at [https://github.com/samsonasik/mezzio-authentication-with-authorization](https://github.com/samsonasik/mezzio-authentication-with-authorization)

You can give it a try by run:

```bash
composer create-project samsonasik/mezzio-authentication-with-authorization -sdev

```

and follow the readme.

---

<div class="post-metadata">

**Author:** ![Jose\_Antonio\_Campos](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/jose_antonio_campos/32/1231_2.png) [@Jose\_Antonio\_Campos](https://discourse.laminas.dev/u/Jose_Antonio_Campos)\
**Post date:** [March 29, 2022, 7:43am UTC](https://discourse.laminas.dev/t/example-of-authentication-and-authorization-in-mezzio-app/1385/2 "2022-03-29T07:43:38Z")

</div>

Hi,  
Can you use the tutorial you have on your blog for Zend Expressive, to work with Mezzio? I want to learn how to do it, login, authentication, authorization, in a project based on skeleton mezzio.  
I have seen the code you have on Github, [GitHub - samsonasik/mezzio-authentication-with-authorization: mezzio authentication with ACL authorization demo](https://github.com/samsonasik/mezzio-authentication-with-authorization)  
but everything is already created and i want to learn how to create it.  
Thanks.
