personium / app-uc-cell-creator

Sample App sources & Engine scripts to create new cells.
Apache License 2.0
1 stars 1 forks source link

Variable (unitUrl) not used in setup procedure #6

Closed dixonsiu closed 2 years ago

dixonsiu commented 7 years ago

unitUrl in the following source codes (user_cell_create.js) is not used.

// *******払い出されたユニットセルに合わせて"***"は書き換えてください*******
var ROOT_URL = "https://***/"; // Personiumドメイン
var UNIT_CELLNAME = "***"; // unit admin cell名
var unitUrl = {
    cellUrl: UNIT_CELLNAME,
    userId:"***", // unit admin cellのアカウント
    password:"***" // unit admin cellのアカウントパスワード
};
// ************************************************************************
dixonsiu commented 7 years ago

Sakamoto-san confirmed that unitUrl is supposed to be used in the following source codes.
I will rewrite them later.

// ********Get Token********
var urlT = ROOT_URL + UNIT_CELLNAME + "/__token";
var bodyT = "grant_type=password";
bodyT += "&username=***";
bodyT += "&password=***";
bodyT += "&p_target=" + ROOT_URL;
var headersT = {}
var contentTypeT = "application/x-www-form-urlencoded";
dixonsiu commented 2 years ago

上位互換的wizardのほうがあって、こちらはもう使わないし、見ないからです。