I'd like to create a frontend that utilizes the REST API of a device we use internally. This device requires authentication by a user, and I'm not really sure how to acquire the credentials from the user (ADS), and possibly store these credentials in a cookie or other location so that the user only needs to login every so often.
I've mostly done frontend work in web development so am a little lost as to what to do. Most searches I've done lead me to methods of setting up my own server for REST API with authentication, which means I probably don't know enough to even phrase the question properly.
Any advice or guides to set this up would be very helpful! The API guides for the device only show examples of Python/Curl which is fairly easy to work out, I'm just not sure how to start implementing this from a web page.
Sorry its been a while since we have responded.
This requirement gives you few options in regards to your question.
* You could ask for credentials when your user uses your web page and then use those credentials for REST api access ... this would limit access to ITA based on the credentials the user enters assuming that user account is not a full admin user.
* You could store credentials using your application. This means all web users are using the same access which may be fine if you're controlling API calls and use (which is probably the case).
Sorry I cannot offer you a better solution
Discuss challenges in energy and automation with 30,000+ experts and peers.
Find answers in 10,000+ support articles to help solve your product and business challenges.
Find peer based solutions to your questions. Provide answers for fellow community members!