{"action":"created","comment":{"url":"https://api.github.com/repos/edx/edx-documentation/pulls/comments/56262321","id":56262321,"diff_hunk":"@@ -0,0 +1,281 @@\n+.. _Manage Credentials:\n+\n+#####################\n+Manage Credentials\n+#####################\n+\n+When you work with credentials, you must configure a site and a certificate for\n+at least one course. You can create certificates for individual courses, or for\n+programs that include more than one course. Each certificate includes at least\n+one signatory.\n+\n+.. contents::\n+   :depth: 1\n+   :local:\n+\n+*******************************\n+Adding a Credentials Site\n+*******************************\n+\n+To add a site, you use the edX ``SiteConfiguration`` model that extends\n+the `Django sites framework`_. With this model, you map domains to a **site**\n+object, which consists of an ID and a name.\n+\n+Each site can have only one configuration.\n+\n+======================\n+Add a Site\n+======================\n+\n+To add a Credentials site, follow these steps. All fields are required.\n+\n+#. In a browser, go to ``http://localhost:8002/admin`` to open the Django\n+   administration panel.\n+#. Under **Core**, select **Site configurations**.\n+#. On the **Select site configuration to change** page, select **Add site\n+   configuration**.\n+#. For a devstack installation, for **Site**, leave the default value of\n+   ``example.com``.\n+\n+   For any other installation, for **Site**, use the hostname under which your\n+   service is running. For example, the hostname may be ``localhost:8002``.\n+\n+#. For **LMS base url for custom site/microsite**, enter\n+   ``http://localhost:8000``.\n+#. For **Path to custom site theme**, enter ``main.scss``.\n+#. Select **Save**.\n+\n+======================\n+Edit a Site\n+======================\n+\n+To edit a Credentials site, follow these steps. All fields are required.\n+\n+#. In a browser, go to ``http://localhost:8002/admin`` to open the Django\n+   administration panel.\n+#. Under **Core**, select **Site configurations**.\n+#. On the **Select site configuration to change** page, select the site that\n+   you want to change.\n+#. Make the changes that you want, and then select **Save**.\n+\n+.. _Credentials Adding a Certificate Template:\n+\n+********************************************\n+(Optional) Adding a Certificate Template\n+********************************************\n+\n+This configuration adds certificate-specific templates. This configuration is\n+optional. If you do not add a certificate-specific template, certificates use\n+the default template.\n+\n+======================\n+Add a Template\n+======================\n+\n+To add a certificate template, use the ``CertificateTemplate``\n+model.\n+\n+#. In a browser, go to ``http://localhost:8002/admin/credentials/`` to open the\n+   **Credentials administration** page in the Django administration panel.\n+#. Under **Credentials**, select **Certificate Templates**.\n+#. On the **Select certificate template to change** page, select **Add\n+   certificate template**.\n+#. For **Name**, type the name of the certificate template that you want to\n+   create. This name must be unique across all certficate templates in your\n+   course or organization.\n+#. For **Content**, add the HTML for your template.\n+\n+    .. code-block:: bash\n+\n+     SAMPLE CODE\n+\n+#. Select **Save**.\n+\n+======================\n+Edit a Template\n+======================\n+\n+To edit a certificate template, use the ``CertificateTemplate``\n+model.\n+\n+#. In a browser, go to ``http://localhost:8002/admin/credentials/`` to open the\n+   **Credentials administration** page in the Django administration panel.\n+#. Under **Credentials**, select **Certificate Templates**.\n+#. On the **Select certificate template to change** page, select the template\n+   that you want to change.\n+#. Make any changes that you want, and then select **Save**.\n+\n+==========================================\n+Upload a Certificate Template to Amazon S3\n+==========================================\n+\n+To upload a certificate template to S3, you use the\n+``CertificateTemplateAsset`` model. The ``CertificateTemplate`` model consumes\n+the assets that you upload.\n+\n+To upload a certificate template to S3, follow these steps. All fields are\n+required.\n+\n+#. In a browser, go to ``http://localhost:8002/admin/credentials/`` to open the\n+   **Credentials administration** page in the Django administration panel.\n+#. Under **Credentials**, select **Certificate template assets**.\n+#. On the **Select certificate template asset to change** page, select **Add\n+   certificate template asset**.\n+#. For **Name**, type the name of the asset that you want to\n+   create.\n+\n+   .. Does this name have to be unique across all certficate template assets in\n+   .. the course or organization?\n+\n+#. For **Asset file**, select **Choose File**.\n+#. In the **Choose File** dialog box, browse to your file, and then select\n+   **Open**.\n+#. Select **Save**.\n+\n+\n+*********************************\n+Adding or Editing a Signatory\n+*********************************\n+\n+Every certificate must include at least one signatory. You use the\n+``Signatory`` model to add or update a signatory.\n+\n+Each signatory must include an image file of the signatory's signature. The\n+image file must be a square .png file and must be smaller than 250 KB.\n+\n+.. _Credentials Add a Signatory:\n+\n+======================\n+Add a Signatory\n+======================\n+\n+To add a signatory, follow these steps. All fields are required.\n+\n+#. In a browser, go to ``http://localhost:8002/admin/`` to open the Django\n+   administration panel.\n+#. Under **Credentials**, select **Signatories**.\n+#. On the **Select signatory to change** page, select **Add signatory**.\n+#. On the **Add signatory** page, enter the signatory's information in the\n+   **Name** and **Title** fields.\n+#. For **Image**, select **Choose File**, browse to the file that you want, and\n+   then select **Open**.\n+#. Select **Save**.\n+\n+======================\n+Edit a Signatory\n+======================\n+\n+#. In a browser, go to ``http://localhost:8002/admin/`` to open the Django\n+   administration panel.\n+#. Under **Credentials**, select **Signatories**.\n+#. On the **Select signatory to change** page, select the signatory that you\n+   want to change.\n+#. On the **Change signatory** page, make the changes that you want.\n+#. Select **Save**.\n+\n+\n+****************************************\n+Adding or Editing a Course Certificate\n+****************************************\n+\n+This procedure creates a new ``CourseCertificate`` object that is used to award\n+course certificates to learners. You use the ``CourseCertificate`` model to add\n+or update a course certificate.\n+\n+.. note::\n+ The **Site**, **Course ID**, and **Certificate type** fields for the\n+ ``CourseCertificate`` model have a **unique together** constraint. In this\n+ model, the same site, course ID, and certificate type cannot have more than\n+ one entry.\n+\n+You must add at least one signatory before you add a course certificate. For\n+more information, see :ref:`Credentials Add a Signatory`.\n+\n+===========================\n+Add a Course Certificate\n+===========================\n+\n+#. In a browser, go to ``http://localhost:8002/admin/`` to open the Django\n+   administration panel.\n+#. Under **Credentials**, select **Course certificate configurations**.\n+#. On the **Select course certificate configuration to change** page, select\n+   **Add course certificate configuration**.\n+#. For a devstack installation, for **Site**, leave the default value of\n+   ``example.com``.\n+\n+   For any other installation, for **Site**, use the hostname under which your\n+   service is running. For example, the hostname may be ``localhost:8002``.\n+\n+#. Select the **Is active** check box.\n+#. For **Signatories**, select the signatories that you want. Hold down the\n+   Control or Command keys to select multiple signatories.\n+#. (Optional) For **Template**, select a template that you have added. For more\n+   information, see :ref:`Credentials Adding a Certificate Template`.\n+#. (Optional) For **Title**, enter...\n+#. For **Course id**, enter <part of the URL for your course>.\n+#. For **Certificate type**, select <where do these options come from?>.","path":"en_us/install_operations/source/credentials/manage_credentials.rst","position":216,"original_position":216,"commit_id":"738f9861ac181e1c7c4f5142f761432443ab5ab2","original_commit_id":"738f9861ac181e1c7c4f5142f761432443ab5ab2","user":{"login":"srpearce","id":3493253,"avatar_url":"https://avatars.githubusercontent.com/u/3493253?v=3","gravatar_id":"","url":"https://api.github.com/users/srpearce","html_url":"https://github.com/srpearce","followers_url":"https://api.github.com/users/srpearce/followers","following_url":"https://api.github.com/users/srpearce/following{/other_user}","gists_url":"https://api.github.com/users/srpearce/gists{/gist_id}","starred_url":"https://api.github.com/users/srpearce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srpearce/subscriptions","organizations_url":"https://api.github.com/users/srpearce/orgs","repos_url":"https://api.github.com/users/srpearce/repos","events_url":"https://api.github.com/users/srpearce/events{/privacy}","received_events_url":"https://api.github.com/users/srpearce/received_events","type":"User","site_admin":false},"body":"Can you answer this? ^^","created_at":"2016-03-16T00:00:26Z","updated_at":"2016-03-16T00:00:26Z","html_url":"https://github.com/edx/edx-documentation/pull/922#discussion_r56262321","pull_request_url":"https://api.github.com/repos/edx/edx-documentation/pulls/922","_links":{"self":{"href":"https://api.github.com/repos/edx/edx-documentation/pulls/comments/56262321"},"html":{"href":"https://github.com/edx/edx-documentation/pull/922#discussion_r56262321"},"pull_request":{"href":"https://api.github.com/repos/edx/edx-documentation/pulls/922"}}},"pull_request":{"url":"https://api.github.com/repos/edx/edx-documentation/pulls/922","id":62995379,"html_url":"https://github.com/edx/edx-documentation/pull/922","diff_url":"https://github.com/edx/edx-documentation/pull/922.diff","patch_url":"https://github.com/edx/edx-documentation/pull/922.patch","issue_url":"https://api.github.com/repos/edx/edx-documentation/issues/922","number":922,"state":"open","locked":false,"title":"Add documentation for Credentials service","user":{"login":"srpearce","id":3493253,"avatar_url":"https://avatars.githubusercontent.com/u/3493253?v=3","gravatar_id":"","url":"https://api.github.com/users/srpearce","html_url":"https://github.com/srpearce","followers_url":"https://api.github.com/users/srpearce/followers","following_url":"https://api.github.com/users/srpearce/following{/other_user}","gists_url":"https://api.github.com/users/srpearce/gists{/gist_id}","starred_url":"https://api.github.com/users/srpearce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srpearce/subscriptions","organizations_url":"https://api.github.com/users/srpearce/orgs","repos_url":"https://api.github.com/users/srpearce/repos","events_url":"https://api.github.com/users/srpearce/events{/privacy}","received_events_url":"https://api.github.com/users/srpearce/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-15T23:49:30Z","updated_at":"2016-03-16T00:00:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/edx/edx-documentation/pulls/922/commits","review_comments_url":"https://api.github.com/repos/edx/edx-documentation/pulls/922/comments","review_comment_url":"https://api.github.com/repos/edx/edx-documentation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/edx/edx-documentation/issues/922/comments","statuses_url":"https://api.github.com/repos/edx/edx-documentation/statuses/738f9861ac181e1c7c4f5142f761432443ab5ab2","head":{"label":"edx:sylvia/DOC-2791","ref":"sylvia/DOC-2791","sha":"738f9861ac181e1c7c4f5142f761432443ab5ab2","user":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"repo":{"id":23839256,"name":"edx-documentation","full_name":"edx/edx-documentation","owner":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/edx/edx-documentation","description":"For published versions of the edX documentation, visit:","fork":false,"url":"https://api.github.com/repos/edx/edx-documentation","forks_url":"https://api.github.com/repos/edx/edx-documentation/forks","keys_url":"https://api.github.com/repos/edx/edx-documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edx/edx-documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edx/edx-documentation/teams","hooks_url":"https://api.github.com/repos/edx/edx-documentation/hooks","issue_events_url":"https://api.github.com/repos/edx/edx-documentation/issues/events{/number}","events_url":"https://api.github.com/repos/edx/edx-documentation/events","assignees_url":"https://api.github.com/repos/edx/edx-documentation/assignees{/user}","branches_url":"https://api.github.com/repos/edx/edx-documentation/branches{/branch}","tags_url":"https://api.github.com/repos/edx/edx-documentation/tags","blobs_url":"https://api.github.com/repos/edx/edx-documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edx/edx-documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edx/edx-documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/edx/edx-documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edx/edx-documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/edx/edx-documentation/languages","stargazers_url":"https://api.github.com/repos/edx/edx-documentation/stargazers","contributors_url":"https://api.github.com/repos/edx/edx-documentation/contributors","subscribers_url":"https://api.github.com/repos/edx/edx-documentation/subscribers","subscription_url":"https://api.github.com/repos/edx/edx-documentation/subscription","commits_url":"https://api.github.com/repos/edx/edx-documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/edx/edx-documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/edx/edx-documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/edx/edx-documentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/edx/edx-documentation/contents/{+path}","compare_url":"https://api.github.com/repos/edx/edx-documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edx/edx-documentation/merges","archive_url":"https://api.github.com/repos/edx/edx-documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edx/edx-documentation/downloads","issues_url":"https://api.github.com/repos/edx/edx-documentation/issues{/number}","pulls_url":"https://api.github.com/repos/edx/edx-documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/edx/edx-documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/edx/edx-documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edx/edx-documentation/labels{/name}","releases_url":"https://api.github.com/repos/edx/edx-documentation/releases{/id}","deployments_url":"https://api.github.com/repos/edx/edx-documentation/deployments","created_at":"2014-09-09T15:29:04Z","updated_at":"2016-03-15T18:08:23Z","pushed_at":"2016-03-15T23:58:16Z","git_url":"git://github.com/edx/edx-documentation.git","ssh_url":"git@github.com:edx/edx-documentation.git","clone_url":"https://github.com/edx/edx-documentation.git","svn_url":"https://github.com/edx/edx-documentation","homepage":" http://docs.edx.org","size":95030,"stargazers_count":34,"watchers_count":34,"language":"Makefile","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":122,"mirror_url":null,"open_issues_count":24,"forks":122,"open_issues":24,"watchers":34,"default_branch":"master"}},"base":{"label":"edx:master","ref":"master","sha":"1f7975c86423e27a4c5554a36deb045622a90910","user":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"repo":{"id":23839256,"name":"edx-documentation","full_name":"edx/edx-documentation","owner":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/edx/edx-documentation","description":"For published versions of the edX documentation, visit:","fork":false,"url":"https://api.github.com/repos/edx/edx-documentation","forks_url":"https://api.github.com/repos/edx/edx-documentation/forks","keys_url":"https://api.github.com/repos/edx/edx-documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edx/edx-documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edx/edx-documentation/teams","hooks_url":"https://api.github.com/repos/edx/edx-documentation/hooks","issue_events_url":"https://api.github.com/repos/edx/edx-documentation/issues/events{/number}","events_url":"https://api.github.com/repos/edx/edx-documentation/events","assignees_url":"https://api.github.com/repos/edx/edx-documentation/assignees{/user}","branches_url":"https://api.github.com/repos/edx/edx-documentation/branches{/branch}","tags_url":"https://api.github.com/repos/edx/edx-documentation/tags","blobs_url":"https://api.github.com/repos/edx/edx-documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edx/edx-documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edx/edx-documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/edx/edx-documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edx/edx-documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/edx/edx-documentation/languages","stargazers_url":"https://api.github.com/repos/edx/edx-documentation/stargazers","contributors_url":"https://api.github.com/repos/edx/edx-documentation/contributors","subscribers_url":"https://api.github.com/repos/edx/edx-documentation/subscribers","subscription_url":"https://api.github.com/repos/edx/edx-documentation/subscription","commits_url":"https://api.github.com/repos/edx/edx-documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/edx/edx-documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/edx/edx-documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/edx/edx-documentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/edx/edx-documentation/contents/{+path}","compare_url":"https://api.github.com/repos/edx/edx-documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edx/edx-documentation/merges","archive_url":"https://api.github.com/repos/edx/edx-documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edx/edx-documentation/downloads","issues_url":"https://api.github.com/repos/edx/edx-documentation/issues{/number}","pulls_url":"https://api.github.com/repos/edx/edx-documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/edx/edx-documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/edx/edx-documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edx/edx-documentation/labels{/name}","releases_url":"https://api.github.com/repos/edx/edx-documentation/releases{/id}","deployments_url":"https://api.github.com/repos/edx/edx-documentation/deployments","created_at":"2014-09-09T15:29:04Z","updated_at":"2016-03-15T18:08:23Z","pushed_at":"2016-03-15T23:58:16Z","git_url":"git://github.com/edx/edx-documentation.git","ssh_url":"git@github.com:edx/edx-documentation.git","clone_url":"https://github.com/edx/edx-documentation.git","svn_url":"https://github.com/edx/edx-documentation","homepage":" http://docs.edx.org","size":95030,"stargazers_count":34,"watchers_count":34,"language":"Makefile","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":122,"mirror_url":null,"open_issues_count":24,"forks":122,"open_issues":24,"watchers":34,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/edx/edx-documentation/pulls/922"},"html":{"href":"https://github.com/edx/edx-documentation/pull/922"},"issue":{"href":"https://api.github.com/repos/edx/edx-documentation/issues/922"},"comments":{"href":"https://api.github.com/repos/edx/edx-documentation/issues/922/comments"},"review_comments":{"href":"https://api.github.com/repos/edx/edx-documentation/pulls/922/comments"},"review_comment":{"href":"https://api.github.com/repos/edx/edx-documentation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/edx/edx-documentation/pulls/922/commits"},"statuses":{"href":"https://api.github.com/repos/edx/edx-documentation/statuses/738f9861ac181e1c7c4f5142f761432443ab5ab2"}}}}