「認証とセキュリティ」の版間の差分
1行目: | 1行目: | ||
+ | <br />この記事は、自動翻訳ソフトウェアで行うからです。 [[:fr:Authentification et sécurité|記事のソースはここ]]を参照してくださいすることができます。<br /><span data-translate="fr"></span><br /> | ||
<span data-link_translate_he_title="אבטחה ואימות" data-link_translate_he_url="%D7%90%D7%91%D7%98%D7%97%D7%94+%D7%95%D7%90%D7%99%D7%9E%D7%95%D7%AA"></span>[[:he:אבטחה ואימות]][[he:אבטחה ואימות]] | <span data-link_translate_he_title="אבטחה ואימות" data-link_translate_he_url="%D7%90%D7%91%D7%98%D7%97%D7%94+%D7%95%D7%90%D7%99%D7%9E%D7%95%D7%AA"></span>[[:he:אבטחה ואימות]][[he:אבטחה ואימות]] | ||
<span data-link_translate_ro_title="Autentificare și securitate" data-link_translate_ro_url="Autentificare+%C8%99i+securitate"></span>[[:ro:Autentificare și securitate]][[ro:Autentificare și securitate]] | <span data-link_translate_ro_title="Autentificare și securitate" data-link_translate_ro_url="Autentificare+%C8%99i+securitate"></span>[[:ro:Autentificare și securitate]][[ro:Autentificare și securitate]] | ||
+ | <span data-link_translate_ru_title="Проверка подлинности и безопасность" data-link_translate_ru_url="%D0%9F%D1%80%D0%BE%D0%B2%D0%B5%D1%80%D0%BA%D0%B0+%D0%BF%D0%BE%D0%B4%D0%BB%D0%B8%D0%BD%D0%BD%D0%BE%D1%81%D1%82%D0%B8+%D0%B8+%D0%B1%D0%B5%D0%B7%D0%BE%D0%BF%D0%B0%D1%81%D0%BD%D0%BE%D1%81%D1%82%D1%8C"></span>[[:ru:Проверка подлинности и безопасность]][[ru:Проверка подлинности и безопасность]] | ||
<span data-link_translate_pl_title="Uwierzytelniania i zabezpieczeń" data-link_translate_pl_url="Uwierzytelniania+i+zabezpiecze%C5%84"></span>[[:pl:Uwierzytelniania i zabezpieczeń]][[pl:Uwierzytelniania i zabezpieczeń]] | <span data-link_translate_pl_title="Uwierzytelniania i zabezpieczeń" data-link_translate_pl_url="Uwierzytelniania+i+zabezpiecze%C5%84"></span>[[:pl:Uwierzytelniania i zabezpieczeń]][[pl:Uwierzytelniania i zabezpieczeń]] | ||
+ | <span data-link_translate_ja_title="認証とセキュリティ" data-link_translate_ja_url="%E8%AA%8D%E8%A8%BC%E3%81%A8%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3"></span>[[:ja:認証とセキュリティ]][[ja:認証とセキュリティ]] | ||
+ | <span data-link_translate_ar_title="الأمان والمصادقة" data-link_translate_ar_url="%D8%A7%D9%84%D8%A3%D9%85%D8%A7%D9%86+%D9%88%D8%A7%D9%84%D9%85%D8%B5%D8%A7%D8%AF%D9%82%D8%A9"></span>[[:ar:الأمان والمصادقة]][[ar:الأمان والمصادقة]] | ||
+ | <span data-link_translate_zh_title="身份验证和安全" data-link_translate_zh_url="%E8%BA%AB%E4%BB%BD%E9%AA%8C%E8%AF%81%E5%92%8C%E5%AE%89%E5%85%A8"></span>[[:zh:身份验证和安全]][[zh:身份验证和安全]] | ||
<span data-link_translate_de_title="Authentifizierung und Sicherheit" data-link_translate_de_url="Authentifizierung+und+Sicherheit"></span>[[:de:Authentifizierung und Sicherheit]][[de:Authentifizierung und Sicherheit]] | <span data-link_translate_de_title="Authentifizierung und Sicherheit" data-link_translate_de_url="Authentifizierung+und+Sicherheit"></span>[[:de:Authentifizierung und Sicherheit]][[de:Authentifizierung und Sicherheit]] | ||
<span data-link_translate_nl_title="Verificatie en beveiliging" data-link_translate_nl_url="Verificatie+en+beveiliging"></span>[[:nl:Verificatie en beveiliging]][[nl:Verificatie en beveiliging]] | <span data-link_translate_nl_title="Verificatie en beveiliging" data-link_translate_nl_url="Verificatie+en+beveiliging"></span>[[:nl:Verificatie en beveiliging]][[nl:Verificatie en beveiliging]] | ||
8行目: | 13行目: | ||
<span data-link_translate_es_title="Autenticación y seguridad" data-link_translate_es_url="Autenticaci%C3%B3n+y+seguridad"></span>[[:es:Autenticación y seguridad]][[es:Autenticación y seguridad]] | <span data-link_translate_es_title="Autenticación y seguridad" data-link_translate_es_url="Autenticaci%C3%B3n+y+seguridad"></span>[[:es:Autenticación y seguridad]][[es:Autenticación y seguridad]] | ||
<span data-link_translate_en_title="Authentication and security" data-link_translate_en_url="Authentication+and+security"></span>[[:en:Authentication and security]][[en:Authentication and security]] | <span data-link_translate_en_title="Authentication and security" data-link_translate_en_url="Authentication+and+security"></span>[[:en:Authentication and security]][[en:Authentication and security]] | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<!-- Début de l'article. Placez votre texte ci-après et n'hésitez pas à personnaliser les chapitres selon votre besoin --> | <!-- Début de l'article. Placez votre texte ci-après et n'hésitez pas à personnaliser les chapitres selon votre besoin --> | ||
− | == | + | ==導入== |
− | API Ikoula | + | API Ikoula とポリシーの認証方法 {{Template:Sécurité}} ? |
− | ==説明 == | + | ==説明== |
− | + | Pour des raisons évidentes de {{Template:Sécurité}}, l'API Ikoula exige une authentification. Celle-ci est basée sur un identifiant, un mot de passe et une 署名 :<br /> | |
− | * ID | + | * ID が Ikoula アカウントに接続するために使用するメール アドレスまたはエクストラネットへ。渡すパラメーターの名前は常に <span class="notranslate">'''ログイン'''</span> ; |
− | * | + | * パスワードも、クリア テキストで提供です。 (パラメーター <span class="notranslate">'''password'''</span>)、Ikoula によって提供される公開キーを使用して特定の機能を介して暗号化されます (パラメーター <span class="notranslate">'''crypted_password'''</span>) 基本64_encode ; |
− | * API | + | * API の呼び出し時に指定されたパラメーターに基づいて署名が生成されます。 (署名生成プロセスを参照してください。 ==> [[Génération_de_la_signature|Génération de la signature]]). |
<br /> | <br /> | ||
− | ''' | + | '''これらの設定する必要があります常に GET で API に渡されます !''' |
<br /><br />注意 :<br /> | <br /><br />注意 :<br /> | ||
− | クリア テキスト | + | クリア テキスト パスワードの通路は API の処理を容易にするために提供され、デバッグとして機能します。API をテスト用、たとえば、これらのテストに専念する一時的なユーザーを使用して平文でパスワードを使用して認証 (ス utilisateur を作成するための Wiki を参照してください。: https://support.ikoula.com/index-1-2-2835.html).<br /><br /> |
− | + | 運用環境または非裁判所の用語で公開キー Ikoula とパスワードの暗号化の使用が欠かせません。<br /> | |
− | API | + | API 呼び出しは、スクリプトやプログラムを介して使用する運命にある場合、我々 この目的専用ユーザの作成をお勧めしますではなくエクストラネット ユーザー クラシックを使用します。<br /> |
− | 2 | + | 2 つのオプションがあります。 :<br /> |
− | * | + | * エクストラネットのユーザーを作成するため当社のサポートに連絡します。 ; |
− | * エクストラネット アカウントのホームページから直接ス utilisateur | + | * エクストラネット アカウントのホームページから直接ス utilisateur を作成します。 (ス utilisateur を作成するための WIKI を参照してください。: https://support.ikoula.com/index-1-2-2835.html). |
+ | Attention à ne pas oublier '''de lui mettre les droits sur les prestations souhaitées'''. | ||
<br /><br /> | <br /><br /> | ||
− | ; | + | ;パスワードの公開キー暗号化は次のアドレスでご利用いただけます: |
: https://api.ikoula.com/downloads/Ikoula.API.RSAKeyPub.pem | : https://api.ikoula.com/downloads/Ikoula.API.RSAKeyPub.pem | ||
− | ==例 == | + | ==例== |
− | この例では、ログインになります | + | この例では、ログインになります "ikoulasupport".<br /> |
− | + | パスワードを暗号化するには、公開キーを使用して関数の例です。 {{Template:IKoula}} :<br /><br /> | |
<syntaxhighlight lang="php"> | <syntaxhighlight lang="php"> | ||
// Chemin local vers la clef publique téléchargée à http://api.ikoula.com/downloads/Ikoula.API.RSAKeyPub.pem | // Chemin local vers la clef publique téléchargée à http://api.ikoula.com/downloads/Ikoula.API.RSAKeyPub.pem | ||
101行目: | 91行目: | ||
echo "Erreur lors du cryptage du mot de passe."; | echo "Erreur lors du cryptage du mot de passe."; | ||
− | |||
// ==> $password_crypt contient donc le mot de passe crypté | // ==> $password_crypt contient donc le mot de passe crypté | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | ==結論 == | + | ==結論== |
− | + | パスワードは、暗号化され、署名を暗号化、一度我々 は API 呼び出しのパラメーターを持つを行うことができます。 (上記の例に従うなら) :<br /> | |
− | * login = ikoulasupport | + | * login = ikoulasupport ; |
− | * crypted_password = | + | * crypted_password = ベース64_encode($password_crypt) ; |
− | * signature = | + | * signature = 生成した署名 (署名生成プロセスを参照してください。 ==> [[Génération_de_la_signature|Génération de la signature]]). |
<br /> | <br /> | ||
− | '''NB : Url_encoder | + | '''NB : Url_encoder 各パラメーターが渡されることを忘れないでください。 !''' |
− | |||
<!-- Fin de l'article --> | <!-- Fin de l'article --> | ||
<br /><br /> | <br /><br /> | ||
− | + | この記事はあなたに役に立つよう ? <vote /> | |
<!-- Placez ici la catégorie à laquelle se rapporte votre article. Ex: [[Category:貢献]] --> | <!-- Placez ici la catégorie à laquelle se rapporte votre article. Ex: [[Category:貢献]] --> | ||
− | [[ | + | [[Catégorie:API]] |
− | |||
<!-- Gestion SEO. Indiquez les informations manquantes --> | <!-- Gestion SEO. Indiquez les informations manquantes --> | ||
<br /> | <br /> | ||
<comments /> | <comments /> |
2017年2月8日 (水) 16:59時点における版
この記事は、自動翻訳ソフトウェアで行うからです。 記事のソースはここを参照してくださいすることができます。
he:אבטחה ואימות
ro:Autentificare și securitate
ru:Проверка подлинности и безопасность
pl:Uwierzytelniania i zabezpieczeń
ja:認証とセキュリティ
ar:الأمان والمصادقة
zh:身份验证和安全
de:Authentifizierung und Sicherheit
nl:Verificatie en beveiliging
it:Autenticazione e protezione
pt:Autenticação e segurança
es:Autenticación y seguridad
en:Authentication and security
導入
API Ikoula とポリシーの認証方法 セキュリティ ?
説明
Pour des raisons évidentes de セキュリティ, l'API Ikoula exige une authentification. Celle-ci est basée sur un identifiant, un mot de passe et une 署名 :
- ID が Ikoula アカウントに接続するために使用するメール アドレスまたはエクストラネットへ。渡すパラメーターの名前は常に ログイン ;
- パスワードも、クリア テキストで提供です。 (パラメーター password)、Ikoula によって提供される公開キーを使用して特定の機能を介して暗号化されます (パラメーター crypted_password) 基本64_encode ;
- API の呼び出し時に指定されたパラメーターに基づいて署名が生成されます。 (署名生成プロセスを参照してください。 ==> Génération de la signature).
これらの設定する必要があります常に GET で API に渡されます !
注意 :
クリア テキスト パスワードの通路は API の処理を容易にするために提供され、デバッグとして機能します。API をテスト用、たとえば、これらのテストに専念する一時的なユーザーを使用して平文でパスワードを使用して認証 (ス utilisateur を作成するための Wiki を参照してください。: https://support.ikoula.com/index-1-2-2835.html).
運用環境または非裁判所の用語で公開キー Ikoula とパスワードの暗号化の使用が欠かせません。
API 呼び出しは、スクリプトやプログラムを介して使用する運命にある場合、我々 この目的専用ユーザの作成をお勧めしますではなくエクストラネット ユーザー クラシックを使用します。
2 つのオプションがあります。 :
- エクストラネットのユーザーを作成するため当社のサポートに連絡します。 ;
- エクストラネット アカウントのホームページから直接ス utilisateur を作成します。 (ス utilisateur を作成するための WIKI を参照してください。: https://support.ikoula.com/index-1-2-2835.html).
Attention à ne pas oublier de lui mettre les droits sur les prestations souhaitées.
- パスワードの公開キー暗号化は次のアドレスでご利用いただけます
- https://api.ikoula.com/downloads/Ikoula.API.RSAKeyPub.pem
例
この例では、ログインになります "ikoulasupport".
パスワードを暗号化するには、公開キーを使用して関数の例です。 ikoula :
// Chemin local vers la clef publique téléchargée à http://api.ikoula.com/downloads/Ikoula.API.RSAKeyPub.pem
define('API_PUB_KEY_PATH', dirname(__FILE__) . '/Ikoula.API.RSAKeyPub.pem');
// Fonction de cryptage du mot de passe via la clef publique Ikoula
function opensslEncryptPublic($password)
{
// Vérification de la présence de la clef publique
if(file_exists(API_PUB_KEY_PATH))
{
if(!empty($password))
{
// on récupére la clef public
$publicKey = openssl_pkey_get_public('file://'.realpath(API_PUB_KEY_PATH));
// Si il n'y a pas eu d'erreur lors de la récupération de la clef publique on continue
if ($publicKey !== FALSE)
{
// Si chiffrement clef publique OK
if(openssl_public_encrypt($password, $crypted, $publicKey) === TRUE)
{
// Renvoie du passe crypté
return $crypted;
}
else
{
return NULL;
}
}
else
return NULL;
}
else
return NULL;
}
else
{
echo("Erreur la clée public n'est pas présente.\n");
return NULL;
}
}
// Utilisation de la fonction de cryptage
$password_crypt = opensslEncryptPublic("Mot de passe non crypté");
if($password_crypt != NULL)
echo "OK Mot de passe crypté: ".$password_crypt;
else
echo "Erreur lors du cryptage du mot de passe.";
// ==> $password_crypt contient donc le mot de passe crypté
結論
パスワードは、暗号化され、署名を暗号化、一度我々 は API 呼び出しのパラメーターを持つを行うことができます。 (上記の例に従うなら) :
- login = ikoulasupport ;
- crypted_password = ベース64_encode($password_crypt) ;
- signature = 生成した署名 (署名生成プロセスを参照してください。 ==> Génération de la signature).
NB : Url_encoder 各パラメーターが渡されることを忘れないでください。 !
この記事はあなたに役に立つよう ?
コメントの自動更新を有効化