{"action":"created","comment":{"url":"https://api.github.com/repos/okta/okta-signin-widget/pulls/comments/149755802","pull_request_review_id":75200727,"id":149755802,"diff_hunk":"@@ -854,6 +855,139 @@ registration: {\n ```\n - **registration.click** - Function that is called when the registration button is clicked\n \n+\n+## Registration\n+\n+```javascript\n+    var signIn = new OktaSignIn({\n+      baseUrl: 'https://acme.okta.com',\n+      clientId: '{{myClientId}}',\n+      registration: {\n+        parseSchema: function(schema, onSuccess, onFailure) {\n+           // handle parseSchema callback\n+        },\n+        preSubmit: function (postData, onSuccess, onFailure) {\n+           // handle preSubmit callback\n+        },\n+        postSubmit: function (response, onSuccess, onFailure) {\n+            // handle postsubmit callback\n+        }\n+      },\n+      features: {\n+         registration: true\n+      }\n+    });\n+```\n+\n+Following configurations are needed to enable registration on a self hosted sign in widget\n+\n+\n+- **features.registration:** Used to enable registration feature on the widget.\n+    ```javascript\n+    // https://github.com/okta/okta-signin-widget#feature-flags\n+    features.registration: 'true'\n+\n+    ```\n+- **clientId:** Client Id pre-registered with Okta for the OIDC authentication flow\n+\n+    ```javascript\n+    clientId: 'GHtf9iJdr60A9IYrR0jw'\n+    ```\n+Optional configurations :\n+\n+- **parseSchema:** Callback used to mold the JSON schema that comes back from Okta API.\n+\n+    ```javascript\n+    /**\n+     The callback function is passed 3 arguments:\n+     @params : schema, onSuccess, onFailure\n+     1) @param {Object} schema: json schema returned from the API.\n+     2) @param {Function} onSuccess: success callback.\n+     3) @param {Function} onFailure: failure callback. Note: accepts a errorObject that can be used to show form level or field level errors.\n+    **/\n+    parseSchema: function (schema, onSuccess, onFailure) {\n+      // This example will add an additional field to the registration form\n+        schema.profileSchema.properties.address = {\n+          'type': 'string',\n+          'description': 'Street Address',\n+          'default': 'Enter your street address',\n+          'maxLength': 255\n+        };\n+        schema.profileSchema.fieldOrder.push('address');\n+        onSuccess(schema);\n+    }\n+    onFailure callback accepts a errorObject that can be used to show form level or field level errors\n+    ```\n+ - **preSubmit :** Callback used primarily to modify the request parameters sent to Okta API.","path":"README.md","position":75,"original_position":75,"commit_id":"2ba03e8b559c4613753f6713cfec267e20fe1e07","original_commit_id":"2ba03e8b559c4613753f6713cfec267e20fe1e07","user":{"login":"nikhilvenkatraman-okta","id":23267876,"avatar_url":"https://avatars3.githubusercontent.com/u/23267876?v=4","gravatar_id":"","url":"https://api.github.com/users/nikhilvenkatraman-okta","html_url":"https://github.com/nikhilvenkatraman-okta","followers_url":"https://api.github.com/users/nikhilvenkatraman-okta/followers","following_url":"https://api.github.com/users/nikhilvenkatraman-okta/following{/other_user}","gists_url":"https://api.github.com/users/nikhilvenkatraman-okta/gists{/gist_id}","starred_url":"https://api.github.com/users/nikhilvenkatraman-okta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikhilvenkatraman-okta/subscriptions","organizations_url":"https://api.github.com/users/nikhilvenkatraman-okta/orgs","repos_url":"https://api.github.com/users/nikhilvenkatraman-okta/repos","events_url":"https://api.github.com/users/nikhilvenkatraman-okta/events{/privacy}","received_events_url":"https://api.github.com/users/nikhilvenkatraman-okta/received_events","type":"User","site_admin":false},"body":"Fixed.","created_at":"2017-11-08T18:27:51Z","updated_at":"2017-11-08T18:27:51Z","html_url":"https://github.com/okta/okta-signin-widget/pull/341#discussion_r149755802","pull_request_url":"https://api.github.com/repos/okta/okta-signin-widget/pulls/341","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/okta/okta-signin-widget/pulls/comments/149755802"},"html":{"href":"https://github.com/okta/okta-signin-widget/pull/341#discussion_r149755802"},"pull_request":{"href":"https://api.github.com/repos/okta/okta-signin-widget/pulls/341"}},"in_reply_to_id":149441497},"pull_request":{"url":"https://api.github.com/repos/okta/okta-signin-widget/pulls/341","id":151022979,"html_url":"https://github.com/okta/okta-signin-widget/pull/341","diff_url":"https://github.com/okta/okta-signin-widget/pull/341.diff","patch_url":"https://github.com/okta/okta-signin-widget/pull/341.patch","issue_url":"https://api.github.com/repos/okta/okta-signin-widget/issues/341","number":341,"state":"open","locked":false,"title":":memo: Add documentation for registration.","user":{"login":"nikhilvenkatraman-okta","id":23267876,"avatar_url":"https://avatars3.githubusercontent.com/u/23267876?v=4","gravatar_id":"","url":"https://api.github.com/users/nikhilvenkatraman-okta","html_url":"https://github.com/nikhilvenkatraman-okta","followers_url":"https://api.github.com/users/nikhilvenkatraman-okta/followers","following_url":"https://api.github.com/users/nikhilvenkatraman-okta/following{/other_user}","gists_url":"https://api.github.com/users/nikhilvenkatraman-okta/gists{/gist_id}","starred_url":"https://api.github.com/users/nikhilvenkatraman-okta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikhilvenkatraman-okta/subscriptions","organizations_url":"https://api.github.com/users/nikhilvenkatraman-okta/orgs","repos_url":"https://api.github.com/users/nikhilvenkatraman-okta/repos","events_url":"https://api.github.com/users/nikhilvenkatraman-okta/events{/privacy}","received_events_url":"https://api.github.com/users/nikhilvenkatraman-okta/received_events","type":"User","site_admin":false},"body":":memo: Added documentation to configure sign in widget for registration usage.\r\n\r\nResolves: OKTA-147067\r\n\r\nhttps://hackmd.io/GYBgHAJgrAbDIFoCcAmAjIgLAQwMZQQCMUB2YBbKEkAUzTW3BuyA?view\r\n\r\n@mystiberry-okta @hor-kanchan-okta @ahmedalbahar-okta ","created_at":"2017-11-07T04:30:56Z","updated_at":"2017-11-08T18:27:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"50ee3790cfa0ffde79ec6143faf3d1e0f3f0dbdc","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/okta/okta-signin-widget/pulls/341/commits","review_comments_url":"https://api.github.com/repos/okta/okta-signin-widget/pulls/341/comments","review_comment_url":"https://api.github.com/repos/okta/okta-signin-widget/pulls/comments{/number}","comments_url":"https://api.github.com/repos/okta/okta-signin-widget/issues/341/comments","statuses_url":"https://api.github.com/repos/okta/okta-signin-widget/statuses/2ba03e8b559c4613753f6713cfec267e20fe1e07","head":{"label":"nikhilvenkatraman-okta:raas-docs","ref":"raas-docs","sha":"2ba03e8b559c4613753f6713cfec267e20fe1e07","user":{"login":"nikhilvenkatraman-okta","id":23267876,"avatar_url":"https://avatars3.githubusercontent.com/u/23267876?v=4","gravatar_id":"","url":"https://api.github.com/users/nikhilvenkatraman-okta","html_url":"https://github.com/nikhilvenkatraman-okta","followers_url":"https://api.github.com/users/nikhilvenkatraman-okta/followers","following_url":"https://api.github.com/users/nikhilvenkatraman-okta/following{/other_user}","gists_url":"https://api.github.com/users/nikhilvenkatraman-okta/gists{/gist_id}","starred_url":"https://api.github.com/users/nikhilvenkatraman-okta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikhilvenkatraman-okta/subscriptions","organizations_url":"https://api.github.com/users/nikhilvenkatraman-okta/orgs","repos_url":"https://api.github.com/users/nikhilvenkatraman-okta/repos","events_url":"https://api.github.com/users/nikhilvenkatraman-okta/events{/privacy}","received_events_url":"https://api.github.com/users/nikhilvenkatraman-okta/received_events","type":"User","site_admin":false},"repo":{"id":74056869,"name":"okta-signin-widget","full_name":"nikhilvenkatraman-okta/okta-signin-widget","owner":{"login":"nikhilvenkatraman-okta","id":23267876,"avatar_url":"https://avatars3.githubusercontent.com/u/23267876?v=4","gravatar_id":"","url":"https://api.github.com/users/nikhilvenkatraman-okta","html_url":"https://github.com/nikhilvenkatraman-okta","followers_url":"https://api.github.com/users/nikhilvenkatraman-okta/followers","following_url":"https://api.github.com/users/nikhilvenkatraman-okta/following{/other_user}","gists_url":"https://api.github.com/users/nikhilvenkatraman-okta/gists{/gist_id}","starred_url":"https://api.github.com/users/nikhilvenkatraman-okta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikhilvenkatraman-okta/subscriptions","organizations_url":"https://api.github.com/users/nikhilvenkatraman-okta/orgs","repos_url":"https://api.github.com/users/nikhilvenkatraman-okta/repos","events_url":"https://api.github.com/users/nikhilvenkatraman-okta/events{/privacy}","received_events_url":"https://api.github.com/users/nikhilvenkatraman-okta/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nikhilvenkatraman-okta/okta-signin-widget","description":"Okta SignIn widget that renders the new login/auth/recovery flows","fork":true,"url":"https://api.github.com/repos/nikhilvenkatraman-okta/okta-signin-widget","forks_url":"https://api.github.com/repos/nikhilvenkatraman-okta/okta-signin-widget/forks","keys_url":"https://api.github.com/repos/nikhilvenkatraman-okta/okta-signin-widget/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nikhilvenkatraman-okta/okta-signin-widget/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nikhilvenkatraman-okta/okta-signin-widget/teams","hooks_url":"https://api.github.com/repos/nikhilvenkatraman-okta/okta-signin-widget/hooks","issue_events_url":"https://api.github.com/repos/nikhilvenkatraman-okta/okta-signin-widget/issues/events{/number}","events_url":"https://api.github.com/repos/nikhilvenkatraman-okta/okta-signin-widget/events","assignees_url":"https://api.github.com/repos/nikhilvenkatraman-okta/okta-signin-widget/assignees{/user}","branches_url":"https://api.github.com/repos/nikhilvenkatraman-okta/okta-signin-widget/branches{/branch}","tags_url":"https://api.github.com/repos/nikhilvenkatraman-okta/okta-signin-widget/tags","blobs_url":"https://api.github.com/repos/nikhilvenkatraman-okta/okta-signin-widget/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nikhilvenkatraman-okta/okta-signin-widget/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nikhilvenkatraman-okta/okta-signin-widget/git/refs{/sha}","trees_url":"https://api.github.com/repos/nikhilvenkatraman-okta/okta-signin-widget/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nikhilvenkatraman-okta/okta-signin-widget/statuses/{sha}","languages_url":"https://api.github.com/repos/nikhilvenkatraman-okta/okta-signin-widget/languages","stargazers_url":"https://api.github.com/repos/nikhilvenkatraman-okta/okta-signin-widget/stargazers","contributors_url":"https://api.github.com/repos/nikhilvenkatraman-okta/okta-signin-widget/contributors","subscribers_url":"https://api.github.com/repos/nikhilvenkatraman-okta/okta-signin-widget/subscribers","subscription_url":"https://api.github.com/repos/nikhilvenkatraman-okta/okta-signin-widget/subscription","commits_url":"https://api.github.com/repos/nikhilvenkatraman-okta/okta-signin-widget/commits{/sha}","git_commits_url":"https://api.github.com/repos/nikhilvenkatraman-okta/okta-signin-widget/git/commits{/sha}","comments_url":"https://api.github.com/repos/nikhilvenkatraman-okta/okta-signin-widget/comments{/number}","issue_comment_url":"https://api.github.com/repos/nikhilvenkatraman-okta/okta-signin-widget/issues/comments{/number}","contents_url":"https://api.github.com/repos/nikhilvenkatraman-okta/okta-signin-widget/contents/{+path}","compare_url":"https://api.github.com/repos/nikhilvenkatraman-okta/okta-signin-widget/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nikhilvenkatraman-okta/okta-signin-widget/merges","archive_url":"https://api.github.com/repos/nikhilvenkatraman-okta/okta-signin-widget/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nikhilvenkatraman-okta/okta-signin-widget/downloads","issues_url":"https://api.github.com/repos/nikhilvenkatraman-okta/okta-signin-widget/issues{/number}","pulls_url":"https://api.github.com/repos/nikhilvenkatraman-okta/okta-signin-widget/pulls{/number}","milestones_url":"https://api.github.com/repos/nikhilvenkatraman-okta/okta-signin-widget/milestones{/number}","notifications_url":"https://api.github.com/repos/nikhilvenkatraman-okta/okta-signin-widget/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nikhilvenkatraman-okta/okta-signin-widget/labels{/name}","releases_url":"https://api.github.com/repos/nikhilvenkatraman-okta/okta-signin-widget/releases{/id}","deployments_url":"https://api.github.com/repos/nikhilvenkatraman-okta/okta-signin-widget/deployments","created_at":"2016-11-17T18:47:28Z","updated_at":"2016-11-17T18:47:31Z","pushed_at":"2017-11-07T04:29:50Z","git_url":"git://github.com/nikhilvenkatraman-okta/okta-signin-widget.git","ssh_url":"git@github.com:nikhilvenkatraman-okta/okta-signin-widget.git","clone_url":"https://github.com/nikhilvenkatraman-okta/okta-signin-widget.git","svn_url":"https://github.com/nikhilvenkatraman-okta/okta-signin-widget","homepage":null,"size":17547,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"okta:master","ref":"master","sha":"c1735aa40ef98917929925111deb609ee30fe4e6","user":{"login":"okta","id":362460,"avatar_url":"https://avatars1.githubusercontent.com/u/362460?v=4","gravatar_id":"","url":"https://api.github.com/users/okta","html_url":"https://github.com/okta","followers_url":"https://api.github.com/users/okta/followers","following_url":"https://api.github.com/users/okta/following{/other_user}","gists_url":"https://api.github.com/users/okta/gists{/gist_id}","starred_url":"https://api.github.com/users/okta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okta/subscriptions","organizations_url":"https://api.github.com/users/okta/orgs","repos_url":"https://api.github.com/users/okta/repos","events_url":"https://api.github.com/users/okta/events{/privacy}","received_events_url":"https://api.github.com/users/okta/received_events","type":"Organization","site_admin":false},"repo":{"id":46365690,"name":"okta-signin-widget","full_name":"okta/okta-signin-widget","owner":{"login":"okta","id":362460,"avatar_url":"https://avatars1.githubusercontent.com/u/362460?v=4","gravatar_id":"","url":"https://api.github.com/users/okta","html_url":"https://github.com/okta","followers_url":"https://api.github.com/users/okta/followers","following_url":"https://api.github.com/users/okta/following{/other_user}","gists_url":"https://api.github.com/users/okta/gists{/gist_id}","starred_url":"https://api.github.com/users/okta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okta/subscriptions","organizations_url":"https://api.github.com/users/okta/orgs","repos_url":"https://api.github.com/users/okta/repos","events_url":"https://api.github.com/users/okta/events{/privacy}","received_events_url":"https://api.github.com/users/okta/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/okta/okta-signin-widget","description":"Okta SignIn widget that renders the new login/auth/recovery flows","fork":false,"url":"https://api.github.com/repos/okta/okta-signin-widget","forks_url":"https://api.github.com/repos/okta/okta-signin-widget/forks","keys_url":"https://api.github.com/repos/okta/okta-signin-widget/keys{/key_id}","collaborators_url":"https://api.github.com/repos/okta/okta-signin-widget/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/okta/okta-signin-widget/teams","hooks_url":"https://api.github.com/repos/okta/okta-signin-widget/hooks","issue_events_url":"https://api.github.com/repos/okta/okta-signin-widget/issues/events{/number}","events_url":"https://api.github.com/repos/okta/okta-signin-widget/events","assignees_url":"https://api.github.com/repos/okta/okta-signin-widget/assignees{/user}","branches_url":"https://api.github.com/repos/okta/okta-signin-widget/branches{/branch}","tags_url":"https://api.github.com/repos/okta/okta-signin-widget/tags","blobs_url":"https://api.github.com/repos/okta/okta-signin-widget/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/okta/okta-signin-widget/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/okta/okta-signin-widget/git/refs{/sha}","trees_url":"https://api.github.com/repos/okta/okta-signin-widget/git/trees{/sha}","statuses_url":"https://api.github.com/repos/okta/okta-signin-widget/statuses/{sha}","languages_url":"https://api.github.com/repos/okta/okta-signin-widget/languages","stargazers_url":"https://api.github.com/repos/okta/okta-signin-widget/stargazers","contributors_url":"https://api.github.com/repos/okta/okta-signin-widget/contributors","subscribers_url":"https://api.github.com/repos/okta/okta-signin-widget/subscribers","subscription_url":"https://api.github.com/repos/okta/okta-signin-widget/subscription","commits_url":"https://api.github.com/repos/okta/okta-signin-widget/commits{/sha}","git_commits_url":"https://api.github.com/repos/okta/okta-signin-widget/git/commits{/sha}","comments_url":"https://api.github.com/repos/okta/okta-signin-widget/comments{/number}","issue_comment_url":"https://api.github.com/repos/okta/okta-signin-widget/issues/comments{/number}","contents_url":"https://api.github.com/repos/okta/okta-signin-widget/contents/{+path}","compare_url":"https://api.github.com/repos/okta/okta-signin-widget/compare/{base}...{head}","merges_url":"https://api.github.com/repos/okta/okta-signin-widget/merges","archive_url":"https://api.github.com/repos/okta/okta-signin-widget/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/okta/okta-signin-widget/downloads","issues_url":"https://api.github.com/repos/okta/okta-signin-widget/issues{/number}","pulls_url":"https://api.github.com/repos/okta/okta-signin-widget/pulls{/number}","milestones_url":"https://api.github.com/repos/okta/okta-signin-widget/milestones{/number}","notifications_url":"https://api.github.com/repos/okta/okta-signin-widget/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/okta/okta-signin-widget/labels{/name}","releases_url":"https://api.github.com/repos/okta/okta-signin-widget/releases{/id}","deployments_url":"https://api.github.com/repos/okta/okta-signin-widget/deployments","created_at":"2015-11-17T18:08:41Z","updated_at":"2017-11-08T14:48:48Z","pushed_at":"2017-11-08T00:32:52Z","git_url":"git://github.com/okta/okta-signin-widget.git","ssh_url":"git@github.com:okta/okta-signin-widget.git","clone_url":"https://github.com/okta/okta-signin-widget.git","svn_url":"https://github.com/okta/okta-signin-widget","homepage":null,"size":17477,"stargazers_count":29,"watchers_count":29,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":48,"mirror_url":null,"archived":false,"open_issues_count":29,"forks":48,"open_issues":29,"watchers":29,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/okta/okta-signin-widget/pulls/341"},"html":{"href":"https://github.com/okta/okta-signin-widget/pull/341"},"issue":{"href":"https://api.github.com/repos/okta/okta-signin-widget/issues/341"},"comments":{"href":"https://api.github.com/repos/okta/okta-signin-widget/issues/341/comments"},"review_comments":{"href":"https://api.github.com/repos/okta/okta-signin-widget/pulls/341/comments"},"review_comment":{"href":"https://api.github.com/repos/okta/okta-signin-widget/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/okta/okta-signin-widget/pulls/341/commits"},"statuses":{"href":"https://api.github.com/repos/okta/okta-signin-widget/statuses/2ba03e8b559c4613753f6713cfec267e20fe1e07"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"nikhilvenkatraman-okta"}}