# Using Java SDK Samples without password grant

**URL:** <https://www.thethingsnetwork.org/forum/t/using-java-sdk-samples-without-password-grant/27592>\
**Category:** Uncategorized\
**Created:** [June 28, 2019, 4:07pm UTC](https://www.thethingsnetwork.org/forum/t/using-java-sdk-samples-without-password-grant/27592 "2019-06-28T16:07:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fikaIPO4](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/fikaipo4/32/25844_2.png) [@fikaIPO4](https://www.thethingsnetwork.org/forum/u/fikaIPO4)\
**Post date:** [June 28, 2019, 4:07pm UTC](https://www.thethingsnetwork.org/forum/t/using-java-sdk-samples-without-password-grant/27592/1 "2019-06-28T16:07:24Z")

</div>

Hi all.

I’m trying to run **Java SDK Samples** to gain some knowledge in order to develop my own app.  
The thing is when I requested a ClientID, TTN answered me that they don’t issue the **Password** grant, only the **Authorization\_code**.

This way I have to use the **AuthorizationCodeSync** and follow the **redirect\_uri** link to manually copy and paste the **code**.

I want to be able to create and manage applications and devices without having to interact with my app.

Can anyone help me? Am I getting it all wrong? 😕

---

<div class="post-metadata">

**Author:** ![radiobridge\_maurya](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/radiobridge_maurya/32/25844_2.png) [@radiobridge\_maurya](https://www.thethingsnetwork.org/forum/u/radiobridge_maurya)\
**Post date:** [March 8, 2020, 9:23am UTC](https://www.thethingsnetwork.org/forum/t/using-java-sdk-samples-without-password-grant/27592/2 "2020-03-08T09:23:41Z")

</div>

How did you resolve this problem? I am also facing same issue as you, They have rejected the Client request with Password grant multiple times without any reason. Its very difficult to implement such application that doesn’t require human interaction for the api call authorization.

For every Account server API call we need to request an access token with the specific object scope and this is not possible to do the human authorization for every object.

This is frustrating that TTN is not approving the Password grant. @TheThingsNetwork Please help us in this case.

With the gateways scope we are able to add new gateways, but When we try to delete the gateway it says “You do not have access to for right gateway:delete to gateway \*\*\*\*\*\*\*”

We are trying to integrate the API in our application, so that we can use our interface to add/edit/delete the gateways.
