# First login for user created via Java API does not ask for consent

**URL:** <https://community.auth0.com/t/first-login-for-user-created-via-java-api-does-not-ask-for-consent/42782>\
**Category:** Get Help\
**Tags:** sdk:java, auth0-java, auth0\
**Created:** [May 11, 2020, 8:47pm UTC](https://community.auth0.com/t/first-login-for-user-created-via-java-api-does-not-ask-for-consent/42782 "2020-05-11T20:47:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wazy.software](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/wazy.software/32/17272_2.png) [@wazy.software](https://community.auth0.com/u/wazy.software)\
**Post date:** [May 11, 2020, 8:47pm UTC](https://community.auth0.com/t/first-login-for-user-created-via-java-api-does-not-ask-for-consent/42782/1 "2020-05-11T20:47:47Z")

</div>

I am using java API for user signup. The issue is that for each of the users created via Java API first login doesn’t ask for consent and this generates errors in my application. The Maven dependency is the following:

```auto
<dependency>
            <groupId>com.auth0</groupId>
            <artifactId>auth0</artifactId>
            <version>1.15.0</version>
</dependency>

```

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [May 27, 2020, 8:51pm UTC](https://community.auth0.com/t/first-login-for-user-created-via-java-api-does-not-ask-for-consent/42782/3 "2020-05-27T20:51:12Z")

</div>

Hi @wazy.software,

You can force users to provide consent with prompt=consent.

> **[User Consent and Third-Party Applications](https://auth0.com/docs/get-started/applications/confidential-and-public-applications/user-consent-and-third-party-applications)**
>
> Learn how to decouple APIs from applications that consume them and define third-party apps that you don't control or may not trust.

Hope this helps,  
Dan

---

<div class="post-metadata">

**Author:** ![wazy.software](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/wazy.software/32/17272_2.png) [@wazy.software](https://community.auth0.com/u/wazy.software)\
**Post date:** [June 1, 2020, 8:16pm UTC](https://community.auth0.com/t/first-login-for-user-created-via-java-api-does-not-ask-for-consent/42782/4 "2020-06-01T20:16:09Z")

</div>

Hi. This means that whenever the user logs in, he must consent? That’s a bad workaround. Can you please open a Github issue task and provide the ID?

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [June 1, 2020, 8:17pm UTC](https://community.auth0.com/t/first-login-for-user-created-via-java-api-does-not-ask-for-consent/42782/5 "2020-06-01T20:17:15Z")

</div>

First party apps aren’t required to give consent, this isn’t a bug.

---

<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:** [June 16, 2020, 8:18pm UTC](https://community.auth0.com/t/first-login-for-user-created-via-java-api-does-not-ask-for-consent/42782/6 "2020-06-16T20:18:28Z")

</div>

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