Skip to main content
6-Contributor
November 18, 2024
Question

Thingworx server login using Android App

  • November 18, 2024
  • 2 replies
  • 1807 views

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

2 replies

6-Contributor
November 19, 2024

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.

 

 

Community Moderator
November 22, 2024

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.

18-Opal
November 19, 2024

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.

6-Contributor
November 27, 2024

Thanks for the replay ....

  we have to use session login and fetch the data from ThingWorx server.

Is their any other way?

Also please provide link for Configuring OAuth details.

18-Opal
November 27, 2024

Here's the configuration guide for configuring OAuth with PingFederate. I would expect the steps to be similar if you use another IdP like Keycloak or Auth0.