Title: authenticate user using wp-rest-api through android app
Last modified: May 15, 2017

---

# authenticate user using wp-rest-api through android app

 *  [mrcool174](https://wordpress.org/support/users/mrcool174/)
 * (@mrcool174)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/authenticate-user-using-wp-rest-api-through-android-app/)
 * Hi,
    I have created a web application in wordpress, and for authentication I 
   have used auth_redirect() in functions.php. Now I would like to write rest api
   to use in android app but unable in hitting api without authentication. So my
   question is: How to authenticate the wordpress user using android app.
 * thanks in advance!!

Viewing 1 replies (of 1 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [9 years ago](https://wordpress.org/support/topic/authenticate-user-using-wp-rest-api-through-android-app/#post-9134959)
 * In order to use the default cookie authentication, the user needs to login using
   the normal web interface so the proper cookies are set. Naturally requiring such
   a login often defeats the purpose of having a mobile app. In such cases you should
   utilize one of the [authentication plugins](https://developer.wordpress.org/rest-api/using-the-rest-api/authentication/#authentication-plugins).

Viewing 1 replies (of 1 total)

The topic ‘authenticate user using wp-rest-api through android app’ is closed to
new replies.

## Tags

 * [authentication](https://wordpress.org/support/topic-tag/authentication/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 1 reply
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/authenticate-user-using-wp-rest-api-through-android-app/#post-9134959)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
