Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
fedcd1c5
Commit
fedcd1c5
authored
Nov 06, 2017
by
Robert Knight
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add OAuth client registration steps to developer docs
parent
d2eaac97
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
developing.rst
docs/developers/developing.rst
+13
-2
No files found.
docs/developers/developing.rst
View file @
fedcd1c5
...
@@ -86,11 +86,22 @@ run:
...
@@ -86,11 +86,22 @@ run:
export SIDEBAR_APP_URL=http://localhost:5000/app.html
export SIDEBAR_APP_URL=http://localhost:5000/app.html
gulp watch
gulp watch
**In the `hypothesis/h` repository**, set the :envvar:`CLIENT_URL` env var to
Next, you'll need to create an OAuth client which enables the Hypothesis client
tell h where to load the client from, before running ``make dev``:
to request an access token from the service in order to make API calls.
1. Go to http://localhost:5000/admin/oauthclients
2. Select "Register a new OAuth client"
3. Choose a name (eg. "Client") and set the redirect URL to
http://localhost:5000/app.html. Leave the other settings at their default values.
4. After creating the client, make a note of the randomly generated client ID.
**In the `hypothesis/h` repository**, set the :envvar:`CLIENT_URL` and
:envvar:`CLIENT_OAUTH_ID` env vars to tell h where to load the client from and
what OAuth client to use, before running ``make dev``:
.. code-block:: sh
.. code-block:: sh
export CLIENT_OAUTH_ID={ OAuth client ID from step above }
export CLIENT_URL=http://localhost:3001/hypothesis
export CLIENT_URL=http://localhost:3001/hypothesis
make dev
make dev
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment