# \#jwtconfiguration

**URL:** https://community.auth0.com/tag/jwtconfiguration/814.md

[Latest](https://community.auth0.com/latest.md) · [Categories](https://community.auth0.com/categories.md) · [Tags](https://community.auth0.com/tags.md)

---

## [Exhange the access\_code for an id\_token using in php get the response error: access\_denied and error\_description: Unauthorized](https://community.auth0.com/t/exhange-the-access-code-for-an-id-token-using-in-php-get-the-response-error-access-denied-and-error-description-unauthorized/8416)

<div class="topic-metadata">

**Author:** [@rameshmrm](https://community.auth0.com/u/rameshmrm)\
**Replies:** 1\
**Last updated:** [October 9, 2017, 3:55pm UTC](https://community.auth0.com/t/exhange-the-access-code-for-an-id-token-using-in-php-get-the-response-error-access-denied-and-error-description-unauthorized/8416 "2017-10-09T15:55:56Z")

</div>

I am tried to using hosted page login URL based get the response code after that code based to try to get the JWT token in user profile details, Using PHP with curl but I got error response error:access\_denied, error\_…

---

## [How do I restrict scopes in auth\_token based on user profile?](https://community.auth0.com/t/how-do-i-restrict-scopes-in-auth-token-based-on-user-profile/7633)

<div class="topic-metadata">

**Author:** [@dimitrovs](https://community.auth0.com/u/dimitrovs)\
**Replies:** 1\
**Last updated:** [August 3, 2017, 7:55pm UTC](https://community.auth0.com/t/how-do-i-restrict-scopes-in-auth-token-based-on-user-profile/7633 "2017-08-03T19:55:33Z")

</div>

These are my business rules: Registered users have: app\_metadata: { "projects": "test", "test2", "test3" \] } If a user is requesting access\_token for audience “my.secret.api” then: The user may request at most o…
