cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

Thingworx server login using Android App

KG_10929768
5-Regular Member

Thingworx server login using Android App

how to do basic authentication through REST API in thingworx without passing user name and password in Header

5 REPLIES 5
KG_10929768
5-Regular Member
(To:Arun_C)

Ok. But we have Login screen in android app and we want Thingworx user should login from android app. i.e we need basic authentication through API.

Is this possible with API.

1)What about all user -means every user has separate Key?

2)What about API key expiry- means we need to manually adjust date? 

2)we dose not want to send login credential in header.

 

 

Hello @KG_10929768

 

It looks like you have some responses from some community members. If any of these replies helped you solve your question please mark the appropriate reply as the Accepted Solution. 

Of course, if you have more to share on your issue, please let the Community know so other community members can continue to help you.

Thanks,
Vivek N.
Community Moderation Team.

You say you want basic auth, and then you say you don't want to sent credentials in the header.

This is a contradiction, as Basic Auth defines sending credentials in the header: https://en.wikipedia.org/wiki/Basic_access_authentication

 

Note that header information is encrypted when you use a HTTPS connection, which should be standard procedure today. So it's not going be sent in clear text over the network.

You can configure ThingWorx to delegate authentication to an external Identity Provider via OAuth -- this way your users will be able to authenticate with whatever credentials they have, and you'll be able to use one of the many OAuth authentication libraries in your Android app.

 

Configuring OAuth is described in ThingWorx Help.

Announcements


Top Tags