# Want to disable profile, email consent for the first party SPA app

**URL:** <https://community.auth0.com/t/want-to-disable-profile-email-consent-for-the-first-party-spa-app/184231>\
**Category:** Get Help\
**Tags:** login-prompt-new-experience, login-experience\
**Created:** [March 20, 2025, 8:30pm UTC](https://community.auth0.com/t/want-to-disable-profile-email-consent-for-the-first-party-spa-app/184231 "2025-03-20T20:30:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![varun.r](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/varun.r/32/73628_2.png) [@varun.r](https://community.auth0.com/u/varun.r)\
**Post date:** [March 20, 2025, 8:30pm UTC](https://community.auth0.com/t/want-to-disable-profile-email-consent-for-the-first-party-spa-app/184231/1 "2025-03-20T20:30:36Z")

</div>

Ready to post? 🔍 First, try searching for your answer.resource “auth0\_resource\_server”  
For a tenant - Dev tenant, the following is the api and app terraform configuration. when I login using the frontend\_app(SPA - RBAC enabled), I keep getting the consent message - ’ Frontend App is requesting access to your Dev Tenant account. \* **Profile:** access to your profile and email’ . I have skip\_consent\_for\_verifiable\_first\_party\_clients is set to true on api , is\_first\_party = true in the app, and all the scopes of api allowed in app including profile, email, openId etc. I want to remove that consent message in the flow.

resource “auth0\_resource\_server” “backend\_api” {  
name = “Backend API”  
identifier = var.backend\_identifier  
signing\_alg = “RS256”  
token\_dialect = “access\_token”  
enforce\_policies = true  
skip\_consent\_for\_verifiable\_first\_party\_clients = true  
token\_lifetime = 900  
token\_lifetime\_for\_web = 900  
}

resource “auth0\_resource\_server\_scopes” “backend\_api\_scopes” {  
resource\_server\_identifier = var.backend\_identifier  
depends\_on = [auth0\_resource\_server.backend\_api]  
scopes {  
name = “read:all”  
description = “Read all information”  
}  
scopes {  
name = “write:all”  
description = “Write all information”  
}  
scopes {  
name = “delete:all”  
description = “Delete all information”  
}  
}

resource “auth0\_client” “frontend\_app” {  
name = “Frontend App”  
app\_type = “spa”  
oidc\_conformant = true  
is\_first\_party = true

callbacks = var.frontend\_callback  
allowed\_logout\_urls = var.frontend\_logout\_urls  
web\_origins = var.frontend\_web\_origins

grant\_types = [  
“authorization\_code”,  
“implicit”,  
“refresh\_token”  
]

jwt\_configuration {  
alg = “RS256”  
lifetime\_in\_seconds = 36000 # 15 mins  
scopes = { }  
secret\_encoded = false  
}  
cross\_origin\_auth = true

refresh\_token {  
expiration\_type = “expiring”  
infinite\_idle\_token\_lifetime = true  
infinite\_token\_lifetime = false  
rotation\_type = “rotating”  
token\_lifetime = 172800 # 2 days  
}  
}

resource “auth0\_client\_grant” “frontend\_app\_management” {  
client\_id = auth0\_client.frontend\_app.client\_id  
audience = var.backend\_identifier  
scopes = [  
“profile”,  
“email”,  
“openid”,  
“read:all”,  
“write:all”,  
“delete:all”  
]  
}

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [March 20, 2025, 8:48pm UTC](https://community.auth0.com/t/want-to-disable-profile-email-consent-for-the-first-party-spa-app/184231/2 "2025-03-20T20:48:01Z")

</div>

Hi @varun.r

Welcome to the Auth0 Community!

If you have enabled skip\_consent\_for\_verifiable\_first\_party\_clients is set to true and you application is set is\_first\_party = true, can you verify if you don’t have the `localhost` in any form in your application **Allowed Callback URLs**? You can read more about that here → [User Consent and Third-Party Applications](https://auth0.com/docs/get-started/applications/confidential-and-public-applications/user-consent-and-third-party-applications#skip-consent-for-first-party-applications)

Thanks  
Dawid

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [April 3, 2025, 8:48pm UTC](https://community.auth0.com/t/want-to-disable-profile-email-consent-for-the-first-party-spa-app/184231/3 "2025-04-03T20:48:26Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
