jeff-blaisdell / passport-smartthings

A Passport.js OAuth 2.0 strategy for Smart Things.
Apache License 2.0
6 stars 3 forks source link

How this will work with samsung smart thing oauth 2? #1

Open arorasahil1234 opened 6 years ago

arorasahil1234 commented 6 years ago

How this will work with samsung smart thing oauth 2?I need to access the endpoint api so that i can use it in my custom application

jeff-blaisdell commented 6 years ago

Currently, the new Samsung SmartThings REST API doesn't support a traditional OAuth flow that you can launch from your external application. I know that support is coming soon.

If you're trying to build a custom ui application over the SmartThings REST API, using personal access tokens for now might be your best bet.

If I'm misunderstanding your request, please provide more details of your use case.

arorasahil1234 commented 6 years ago

Could you share any documentation so that I can call that custom rest api from my custom application and can toggle the switch or sensor I can follow any flow no issues with that any guidance or support will be a great help.

Regards, Sahil Arora

From: Jeff Blaisdell [mailto:notifications@github.com] Sent: Thursday, March 22, 2018 5:52 PM To: jeff-blaisdell/passport-smartthings passport-smartthings@noreply.github.com Cc: Arora, Sahil D. sahil.d.arora@accenture.com; Author author@noreply.github.com Subject: [External] Re: [jeff-blaisdell/passport-smartthings] How this will work with samsung smart thing oauth 2? (#1)

Currently, the new Samsung SmartThings REST API doesn't support a traditional OAuth flow that you can launch from your external application. I know that support is coming soon.

If you're trying to build a custom ui application over the SmartThings REST API, using personal access tokens for now might be your best bet.

If I'm misunderstanding your request, please provide more details of your use case.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_jeff-2Dblaisdell_passport-2Dsmartthings_issues_1-23issuecomment-2D375285117&d=DwMFaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=8gTAnMuU7eThQ2QuFJEQse3HN4VayplnHIQK0-5XqQE&m=dpgl0gUEJfENiPXw5KheUoj6LHVXtDiN2Ld-mMr32sM&s=hGu1Byl-1vSFQZVu0TmldXbi9tG3MTw65jBqsEP1SE4&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AgpRoEMAXFGc0BKcvu7JGxzyW7n4ezo9ks5tg5d-5FgaJpZM4S2u1t&d=DwMFaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=8gTAnMuU7eThQ2QuFJEQse3HN4VayplnHIQK0-5XqQE&m=dpgl0gUEJfENiPXw5KheUoj6LHVXtDiN2Ld-mMr32sM&s=XmdYw_qEM1Ub9qgtSVQd-RcVUbXZRz2jc_Iy_0pO43Q&e=.


This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy.


www.accenture.com

jeff-blaisdell commented 6 years ago

How to get a personal access token is documented here: Example With Postman and the SmartThings API Reference here.