# \#mezzio-authentication

**URL:** https://discourse.laminas.dev/tag/mezzio-authentication/71.md

[Latest](https://discourse.laminas.dev/latest.md) · [Categories](https://discourse.laminas.dev/categories.md) · [Tags](https://discourse.laminas.dev/tags.md)

---

## [Mezzio authenticate - additional fields](https://discourse.laminas.dev/t/mezzio-authenticate-additional-fields/2920)

<div class="topic-metadata">

**Author:** [@Kriss\_Kals](https://discourse.laminas.dev/u/Kriss_Kals)\
**Replies:** 2\
**Last updated:** [June 14, 2022, 8:29am UTC](https://discourse.laminas.dev/t/mezzio-authenticate-additional-fields/2920 "2022-06-14T08:29:14Z")

</div>

Hi, does mezzio authentication allow to configure/add additional fields to the authenticate method, like is\_active and/or is\_deleted or set the validation method to the password field with additional salt from the datab…

---

## [Redirect after login](https://discourse.laminas.dev/t/redirect-after-login/2552)

<div class="topic-metadata">

**Author:** [@Brad\_MacGregor](https://discourse.laminas.dev/u/Brad_MacGregor)\
**Replies:** 7\
**Last updated:** [January 22, 2022, 3:24pm UTC](https://discourse.laminas.dev/t/redirect-after-login/2552 "2022-01-22T15:24:33Z")

</div>

I’m following the documentation for authentication using mezzio-authentication-session that lives here: https://docs.mezzio.dev/mezzio-authentication-session/v1/login-handler/ It works to log me in, but it doesn’t appe…

---

## [OAuth2: Responding to token request when requested scopes differ](https://discourse.laminas.dev/t/oauth2-responding-to-token-request-when-requested-scopes-differ/2696)

<div class="topic-metadata">

**Author:** [@vigcraig](https://discourse.laminas.dev/u/vigcraig)\
**Replies:** 1\
**Last updated:** [January 12, 2022, 12:49pm UTC](https://discourse.laminas.dev/t/oauth2-responding-to-token-request-when-requested-scopes-differ/2696 "2022-01-12T12:49:10Z")

</div>

Hi, looking for opinions on an scenario of authentication with oAuth2. I am using the grant\_type of ‘client\_credentials’ in the mezzio-authentication-oauth2 library. When requesting a token, the client includes the sco…

---

## [OAuth2 error in Mezzio](https://discourse.laminas.dev/t/oauth2-error-in-mezzio/2302)

<div class="topic-metadata">

**Author:** [@mh\_sam](https://discourse.laminas.dev/u/mh_sam)\
**Replies:** 5\
**Last updated:** [December 29, 2021, 6:49pm UTC](https://discourse.laminas.dev/t/oauth2-error-in-mezzio/2302 "2021-12-29T18:49:42Z")

</div>

hi everyone, i’m using mezzio for api and chose OAuth2 for authentication when send user info to TokenEndpointHandler for request token, ( grant\_type = password) reterun this error: { “error”: “access\_token\_duplica…

---

## [Unsupported\_grant\_type with mezzio-authentication-oauth2](https://discourse.laminas.dev/t/unsupported-grant-type-with-mezzio-authentication-oauth2/2650)

<div class="topic-metadata">

**Author:** [@vigcraig](https://discourse.laminas.dev/u/vigcraig)\
**Replies:** 3\
**Last updated:** [December 14, 2021, 12:02pm UTC](https://discourse.laminas.dev/t/unsupported-grant-type-with-mezzio-authentication-oauth2/2650 "2021-12-14T12:02:24Z")

</div>

Hi, I am just getting started with mezzio-authentication-oauth2 library and I am having a little trouble with progressing it. I have started with at mezzio skeleton, added the mezzio-authentication-oauth2 library and c…

---

## [Alias not working with mezzio-authentication-oauth2](https://discourse.laminas.dev/t/alias-not-working-with-mezzio-authentication-oauth2/2568)

<div class="topic-metadata">

**Author:** [@vigcraig](https://discourse.laminas.dev/u/vigcraig)\
**Replies:** 3\
**Last updated:** [October 28, 2021, 7:48pm UTC](https://discourse.laminas.dev/t/alias-not-working-with-mezzio-authentication-oauth2/2568 "2021-10-28T19:48:50Z")

</div>

Hi, I am trying to get the oAuth2 working with a mezzio application using mezzio-authentication-oauth2. I can’t seem to get past an error: Too few arguments to function Mezzio\\Authentication\\AuthenticationMiddleware::…

---

## [Fill roles\[\] (UserInterface) after authenticate (oauth2)](https://discourse.laminas.dev/t/fill-roles-userinterface-after-authenticate-oauth2/2546)

<div class="topic-metadata">

**Author:** [@MichaelB](https://discourse.laminas.dev/u/MichaelB)\
**Replies:** 6\
**Last updated:** [October 20, 2021, 12:15pm UTC](https://discourse.laminas.dev/t/fill-roles-userinterface-after-authenticate-oauth2/2546 "2021-10-20T12:15:32Z")

</div>

Hi all, mezzio-authentication return a DefaultUser immutable for security reasons. I use it with mezzio-authentication-oauth2 and oauth2 do not use the roles\[\] attribute (UserInterface) but i need it to use mezzio-autho…
