Différences entre versions de « Spark-Could-API-Auth »

De MCHobby - Wiki
Sauter à la navigation Sauter à la recherche
(Page créée avec « {{Spark.IO-Could-API-NAV}} == Authentification == Just because you've connected your Spark Core to the internet doesn't mean anyone else should have access to it. Permission... »)
 
Ligne 18 : Ligne 18 :
 
# LESSON: Protect your access token.</nowiki>
 
# LESSON: Protect your access token.</nowiki>
  
 +
* [https://www.spark.io/build Cliquez ici pour vous brancher sur '''SPARK BUILD''']
 +
 +
[[Fichier:Spark-Build-Icon.jpg|link=http://www.spark.io/build]]
 +
 +
When you connect your Spark Core to the Cloud for the first time, it will be associated with your account, and only you will have permission to control your Spark Core—using your access token.
 +
 +
 +
If you need to transfer ownership of the core to another user, the easiest way is to simply log into the [http://www.spark.io/build Spark build site], click on the 'cores' drawer on the bottom left, and then click the small 'right arrow' by the core you want to release, then click "Remove Core". This will make it possible for the other person you are transfering the core to, to go through the normal claiming process.
 +
 +
 +
In the future, you will be able to provision access to your Spark Core to other accounts and to third-party app developers; however, these features are not yet available.
 
{{Spark.IO-Could-API-TRAILER}}
 
{{Spark.IO-Could-API-TRAILER}}

Version du 6 janvier 2015 à 07:13


MCHobby investit du temps et de l'argent dans la réalisation de traduction et/ou documentation. C'est un travail long et fastidieux réalisé dans l'esprit Open-Source... donc gratuit et librement accessible.
SI vous aimez nos traductions et documentations ALORS aidez nous à en produire plus en achetant vos produits chez MCHobby.

Authentification

Just because you've connected your Spark Core to the internet doesn't mean anyone else should have access to it. Permissions for controlling and communciating with your Spark Core are managed with OAuth2.

# You type in your terminal
curl https://api.spark.io/v1/devices/0123456789abcdef01234567/brew \
     -d access_token=9876987698769876987698769876987698769876
# Response status is 200 OK, which means
# the Core says, "Yes ma'am!"

# Sneaky Pete tries the same thing in his terminal
curl https://api.spark.io/v1/devices/0123456789abcdef01234567/brew \
     -d access_token=1234123412341234123412341234123412341234
# Response status is 403 Forbidden, which means
# the Core says, "You ain't the boss of me."

# LESSON: Protect your access token.

Spark-Build-Icon.jpg

When you connect your Spark Core to the Cloud for the first time, it will be associated with your account, and only you will have permission to control your Spark Core—using your access token.


If you need to transfer ownership of the core to another user, the easiest way is to simply log into the Spark build site, click on the 'cores' drawer on the bottom left, and then click the small 'right arrow' by the core you want to release, then click "Remove Core". This will make it possible for the other person you are transfering the core to, to go through the normal claiming process.


In the future, you will be able to provision access to your Spark Core to other accounts and to third-party app developers; however, these features are not yet available.


Source: Cloud CODE (API) créé par Spark.IO.

Traduction réalisée par Meurisse D pour MCHobby.be - Translated by Meurisse D. for MCHobby.be

Traduit avec l'autorisation de Spark.IO - Translated with the permission from Spark.IO - Spark.IO

Toute référence, mention ou extrait de cette traduction doit être explicitement accompagné du texte suivant : «  Traduction par MCHobby (www.MCHobby.be) - Vente de kit et composants » avec un lien vers la source (donc cette page) et ce quelque soit le média utilisé.

L'utilisation commercial de la traduction (texte) et/ou réalisation, même partielle, pourrait être soumis à redevance. Dans tous les cas de figures, vous devez également obtenir l'accord du(des) détenteur initial des droits. Celui de MC Hobby s'arrêtant au travail de traduction proprement dit.