oauth/README.md
author durandn
Tue, 16 Feb 2016 15:46:00 +0100
changeset 2 d5c583f9a035
parent 1 5f50937893ac
child 5 4407b131a70e
permissions -rw-r--r--
fixed commited oauth settings + edited tmpls and readme
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
d5c583f9a035 fixed commited oauth settings + edited tmpls and readme
durandn
parents: 1
diff changeset
     1
# Example OAuth 2 Server & GED mock client
1
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
     2
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
     3
# INSTALLATION
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
     4
2
d5c583f9a035 fixed commited oauth settings + edited tmpls and readme
durandn
parents: 1
diff changeset
     5
use a different virtualenv than the one for the django metaeducation app
d5c583f9a035 fixed commited oauth settings + edited tmpls and readme
durandn
parents: 1
diff changeset
     6
d5c583f9a035 fixed commited oauth settings + edited tmpls and readme
durandn
parents: 1
diff changeset
     7
$ mkvirtualenv mtdc_oauth_env
1
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
     8
$ pip install -r requirements.txt
2
d5c583f9a035 fixed commited oauth settings + edited tmpls and readme
durandn
parents: 1
diff changeset
     9
d5c583f9a035 fixed commited oauth settings + edited tmpls and readme
durandn
parents: 1
diff changeset
    10
# CONFIGURATION
d5c583f9a035 fixed commited oauth settings + edited tmpls and readme
durandn
parents: 1
diff changeset
    11
d5c583f9a035 fixed commited oauth settings + edited tmpls and readme
durandn
parents: 1
diff changeset
    12
Edit client_settings.py.tmpl and oauth_settings.py.tmpl to match your renkan django app config.
d5c583f9a035 fixed commited oauth settings + edited tmpls and readme
durandn
parents: 1
diff changeset
    13
d5c583f9a035 fixed commited oauth settings + edited tmpls and readme
durandn
parents: 1
diff changeset
    14
# RUNNING
d5c583f9a035 fixed commited oauth settings + edited tmpls and readme
durandn
parents: 1
diff changeset
    15
d5c583f9a035 fixed commited oauth settings + edited tmpls and readme
durandn
parents: 1
diff changeset
    16
To run the oauth server:
d5c583f9a035 fixed commited oauth settings + edited tmpls and readme
durandn
parents: 1
diff changeset
    17
d5c583f9a035 fixed commited oauth settings + edited tmpls and readme
durandn
parents: 1
diff changeset
    18
$ workon mtdc_oauth_env
d5c583f9a035 fixed commited oauth settings + edited tmpls and readme
durandn
parents: 1
diff changeset
    19
$ python oauth.py
d5c583f9a035 fixed commited oauth settings + edited tmpls and readme
durandn
parents: 1
diff changeset
    20
d5c583f9a035 fixed commited oauth settings + edited tmpls and readme
durandn
parents: 1
diff changeset
    21
To run the GED mock client:
d5c583f9a035 fixed commited oauth settings + edited tmpls and readme
durandn
parents: 1
diff changeset
    22
d5c583f9a035 fixed commited oauth settings + edited tmpls and readme
durandn
parents: 1
diff changeset
    23
$ workon mtdc_oauth_env
d5c583f9a035 fixed commited oauth settings + edited tmpls and readme
durandn
parents: 1
diff changeset
    24
$ python client.py