You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2017/04/26 09:44:57 UTC

[1/2] syncope git commit: Sample for create new domain

Repository: syncope
Updated Branches:
  refs/heads/2_0_X d7b337a9a -> 3672341a1
  refs/heads/master 5adb643d1 -> c23f4a698


Sample for create new domain


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/3672341a
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/3672341a
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/3672341a

Branch: refs/heads/2_0_X
Commit: 3672341a1af4029460dc86c9a57021cd40b04697
Parents: d7b337a
Author: Francesco Chicchiricc� <il...@apache.org>
Authored: Wed Apr 26 11:44:35 2017 +0200
Committer: Francesco Chicchiricc� <il...@apache.org>
Committed: Wed Apr 26 11:44:35 2017 +0200

----------------------------------------------------------------------
 .../systemadministration/domainsmanagement.adoc     | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/3672341a/src/main/asciidoc/reference-guide/workingwithapachesyncope/systemadministration/domainsmanagement.adoc
----------------------------------------------------------------------
diff --git a/src/main/asciidoc/reference-guide/workingwithapachesyncope/systemadministration/domainsmanagement.adoc b/src/main/asciidoc/reference-guide/workingwithapachesyncope/systemadministration/domainsmanagement.adoc
index 612ed30..913263e 100644
--- a/src/main/asciidoc/reference-guide/workingwithapachesyncope/systemadministration/domainsmanagement.adoc
+++ b/src/main/asciidoc/reference-guide/workingwithapachesyncope/systemadministration/domainsmanagement.adoc
@@ -33,3 +33,19 @@ Adding a new domain requires re-deploying the <<core>> application and restartin
 
 Once a new domain is added, the admin credentials for such domain can be set via the admin console, CLI or
 barely invoking the REST layer through http://curl.haxx.se/[curl^].
+
+[[sample-domain-create]]
+.Create new domain and set admin credentials
+====
+The JSON payload below, when sent via `POST` to the `/domains` endpoint, will create a new `newDomain` domain, and set
+the admin password to `newPassword`, to be stored via `SHA` cipher.
+
+[source,json]
+----
+{
+  "key": "newDomain",
+  "adminPwd": "newPassword",
+  "adminCipherAlgorithm": "SHA"
+}
+----
+====


[2/2] syncope git commit: Sample for create new domain

Posted by il...@apache.org.
Sample for create new domain


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/c23f4a69
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/c23f4a69
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/c23f4a69

Branch: refs/heads/master
Commit: c23f4a6985ef8e6ad58631940d75fff324f931db
Parents: 5adb643
Author: Francesco Chicchiricc� <il...@apache.org>
Authored: Wed Apr 26 11:44:35 2017 +0200
Committer: Francesco Chicchiricc� <il...@apache.org>
Committed: Wed Apr 26 11:44:48 2017 +0200

----------------------------------------------------------------------
 .../systemadministration/domainsmanagement.adoc     | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/c23f4a69/src/main/asciidoc/reference-guide/workingwithapachesyncope/systemadministration/domainsmanagement.adoc
----------------------------------------------------------------------
diff --git a/src/main/asciidoc/reference-guide/workingwithapachesyncope/systemadministration/domainsmanagement.adoc b/src/main/asciidoc/reference-guide/workingwithapachesyncope/systemadministration/domainsmanagement.adoc
index 612ed30..913263e 100644
--- a/src/main/asciidoc/reference-guide/workingwithapachesyncope/systemadministration/domainsmanagement.adoc
+++ b/src/main/asciidoc/reference-guide/workingwithapachesyncope/systemadministration/domainsmanagement.adoc
@@ -33,3 +33,19 @@ Adding a new domain requires re-deploying the <<core>> application and restartin
 
 Once a new domain is added, the admin credentials for such domain can be set via the admin console, CLI or
 barely invoking the REST layer through http://curl.haxx.se/[curl^].
+
+[[sample-domain-create]]
+.Create new domain and set admin credentials
+====
+The JSON payload below, when sent via `POST` to the `/domains` endpoint, will create a new `newDomain` domain, and set
+the admin password to `newPassword`, to be stored via `SHA` cipher.
+
+[source,json]
+----
+{
+  "key": "newDomain",
+  "adminPwd": "newPassword",
+  "adminCipherAlgorithm": "SHA"
+}
+----
+====