[OAuth2Provider] Add dependencies and urls to provide OAuth2 support for external services
Review Request #7897 — Created Jan. 20, 2016 and discarded
Added into list of installed apps package django-tool-kit which provides
end-points and basic logic to manage client applications. All the end-points
for OAuth2 authorization with external services is moved to /oauth2/.
All the tool to manage client applications is a part of preference menuAdded package django-tool-kit into setup.py so that it will get install
with ReviewBoard during setup time. Even though the lastest version is 0.10,
the chosen version is 0.9 in order to be compatible with Django 1.6.Note: please contact
lehoangminh@live.com
when you try to land the feature into master. I am more than happy to support the final integration
Manually tested the urls are setup correctly
Reran python setup.py develop
Description | From | Last Updated |
---|---|---|
The first import should be: from __future__ import unicode_literals |
brennie | |
Docstrings should be of the form: """Single line summary. Multi-line description. """ |
brennie | |
Blank line between these. |
brennie | |
Col: 5 E265 block comment should start with '# ' |
reviewbot | |
Col: 9 W292 no newline at end of file |
reviewbot | |
Unnecessary. |
brennie | |
We're only importing one set of views here. I think we should do: from oauth2_provider import views |
brennie | |
"Review Board" "OAuth" Missing a period. |
brennie | |
Single quotes. Same below. |
brennie | |
"OAuth" Also missing a period. |
brennie | |
Use patterns() |
brennie | |
No blank line here. |
brennie | |
Col: 2 W292 no newline at end of file |
reviewbot | |
'django_reset' imported but unused |
reviewbot | |
'from settings_local import *' used; unable to detect undefined names |
reviewbot | |
'PIPELINE_CSS' imported but unused |
reviewbot | |
'PIPELINE_JS' imported but unused |
reviewbot | |
Missing a trailing comma. |
brennie | |
Please keep these imports in alphabetical order. |
brennie | |
Unnecessary comment. |
brennie | |
This isn't the right place for this. account/ URLs should go in reviewboard/accounts/urls.py. There, you can leave off the account/ … |
brennie | |
Col: 34 W292 no newline at end of file |
reviewbot | |
'django_reset' imported but unused |
reviewbot | |
'from settings_local import *' used; unable to detect undefined names |
reviewbot | |
'PIPELINE_CSS' imported but unused |
reviewbot | |
'PIPELINE_JS' imported but unused |
reviewbot | |
Alphabetize these. |
brennie | |
This import doesn't need the as ... clause. When you do from x import y as y it is the … |
brennie | |
url(r'^preferences/oauth2/', include(apps_urlpatterns, namespace='oauth2_provider')) |
brennie | |
Why are we including this with a namespace? |
brennie | |
'django_reset' imported but unused |
reviewbot | |
'from settings_local import *' used; unable to detect undefined names |
reviewbot | |
'PIPELINE_CSS' imported but unused |
reviewbot | |
'PIPELINE_JS' imported but unused |
reviewbot | |
'django_reset' imported but unused |
reviewbot | |
'from settings_local import *' used; unable to detect undefined names |
reviewbot | |
'PIPELINE_CSS' imported but unused |
reviewbot | |
'PIPELINE_JS' imported but unused |
reviewbot | |
'django_reset' imported but unused |
reviewbot | |
'from settings_local import *' used; unable to detect undefined names |
reviewbot | |
'PIPELINE_CSS' imported but unused |
reviewbot | |
'PIPELINE_JS' imported but unused |
reviewbot | |
Should use url(). |
chipx86 | |
I might be wrong, but I think since we're just doing an include, you can put this up above where … |
chipx86 | |
Alignment issue here. |
chipx86 | |
No space after """. I'd also change this to "An OAuth2 client application registered by a user." |
chipx86 | |
"URL" and "users". |
chipx86 | |
Let's name this oauth2_apps_urlpatterns. |
chipx86 | |
Let's put the view on its own line, for consistency. |
chipx86 | |
Blank line between these. |
chipx86 | |
This should probably go before the reviewboard imports. Ours should be last. Also, reviewboard.oauth2 should be in alphabetical order. |
chipx86 | |
'django_reset' imported but unused |
reviewbot | |
'from settings_local import *' used; unable to detect undefined names |
reviewbot | |
'PIPELINE_CSS' imported but unused |
reviewbot | |
'PIPELINE_JS' imported but unused |
reviewbot | |
Can you document this? |
chipx86 | |
Should be listed in alphabetical order. |
chipx86 | |
'django_reset' imported but unused |
reviewbot | |
'from settings_local import *' used; unable to detect undefined names |
reviewbot | |
'PIPELINE_CSS' imported but unused |
reviewbot | |
'PIPELINE_JS' imported but unused |
reviewbot | |
No space after """. |
chipx86 | |
Blank line between these. |
chipx86 | |
Is this covered in a future change? (I'll find out in a moment I'm sure). If so, we'll want to … |
chipx86 | |
'django_reset' imported but unused |
reviewbot | |
'from settings_local import *' used; unable to detect undefined names |
reviewbot | |
'PIPELINE_CSS' imported but unused |
reviewbot | |
'PIPELINE_JS' imported but unused |
reviewbot | |
'django_reset' imported but unused |
reviewbot | |
'from settings_local import *' used; unable to detect undefined names |
reviewbot |
-
Tool: Pyflakes Processed Files: reviewboard/settings.py reviewboard/oauth2/models.py reviewboard/accounts/urls.py reviewboard/oauth2/urls.py reviewboard/urls.py setup.py Ignored Files: reviewboard/oauth2/__init__.py Tool: PEP8 Style Checker Processed Files: reviewboard/settings.py reviewboard/oauth2/models.py reviewboard/accounts/urls.py reviewboard/oauth2/urls.py reviewboard/urls.py setup.py Ignored Files: reviewboard/oauth2/__init__.py
-
-
-
-
-
Tool: PEP8 Style Checker Processed Files: reviewboard/settings.py reviewboard/oauth2/models.py reviewboard/accounts/urls.py reviewboard/oauth2/urls.py reviewboard/urls.py setup.py Ignored Files: reviewboard/oauth2/__init__.py Tool: Pyflakes Processed Files: reviewboard/settings.py reviewboard/oauth2/models.py reviewboard/accounts/urls.py reviewboard/oauth2/urls.py reviewboard/urls.py setup.py Ignored Files: reviewboard/oauth2/__init__.py
-
-
-
-
-
So I think you may be heading in the wrong direction here. You will probably want to expose setting OAuth2 configuration per-user via the API. You should ask Christian about this to double check.
-
-
This import doesn't need the
as ...
clause. When you dofrom x import y as y
it is the same as doingfrom x import y
. -
-
-
Tool: Pyflakes Processed Files: reviewboard/settings.py reviewboard/oauth2/models.py reviewboard/accounts/urls.py reviewboard/oauth2/urls.py reviewboard/urls.py setup.py Ignored Files: reviewboard/oauth2/__init__.py Tool: PEP8 Style Checker Processed Files: reviewboard/settings.py reviewboard/oauth2/models.py reviewboard/accounts/urls.py reviewboard/oauth2/urls.py reviewboard/urls.py setup.py Ignored Files: reviewboard/oauth2/__init__.py
-
-
-
-
-
Tool: PEP8 Style Checker Processed Files: reviewboard/oauth2/urls.py reviewboard/oauth2/models.py reviewboard/settings.py setup.py reviewboard/urls.py Ignored Files: reviewboard/oauth2/__init__.py Tool: Pyflakes Processed Files: reviewboard/oauth2/urls.py reviewboard/oauth2/models.py reviewboard/settings.py setup.py reviewboard/urls.py Ignored Files: reviewboard/oauth2/__init__.py
-
-
-
-
- Change Summary:
-
Remove WIP, update discussion
- Summary:
-
[WIP] Add dependencies and urls to provide OAuth2 support for external servicesAdd dependencies and urls to provide OAuth2 support for external services
-
Tool: Pyflakes Processed Files: reviewboard/settings.py reviewboard/oauth2/models.py reviewboard/accounts/urls.py reviewboard/oauth2/urls.py reviewboard/urls.py setup.py Ignored Files: reviewboard/oauth2/__init__.py Tool: PEP8 Style Checker Processed Files: reviewboard/settings.py reviewboard/oauth2/models.py reviewboard/accounts/urls.py reviewboard/oauth2/urls.py reviewboard/urls.py setup.py Ignored Files: reviewboard/oauth2/__init__.py
-
-
-
-
- Change Summary:
-
Add reviewer + Add prefix to RC
- Summary:
-
Add dependencies and urls to provide OAuth2 support for external services[OAuth2Provider] Add dependencies and urls to provide OAuth2 support for external services
- People:
-
-
-
I might be wrong, but I think since we're just doing an
include
, you can put this up above where we define the "preferences/" URL without having to worry about that view prefix argument topatterns
causing problems. -
-
-
-
-
-
-
This should probably go before the reviewboard imports. Ours should be last.
Also,
reviewboard.oauth2
should be in alphabetical order. -
-
-
Tool: PEP8 Style Checker Processed Files: reviewboard/settings.py reviewboard/oauth2/models.py reviewboard/accounts/urls.py reviewboard/oauth2/urls.py reviewboard/urls.py setup.py Ignored Files: reviewboard/oauth2/__init__.py Tool: Pyflakes Processed Files: reviewboard/settings.py reviewboard/oauth2/models.py reviewboard/accounts/urls.py reviewboard/oauth2/urls.py reviewboard/urls.py setup.py Ignored Files: reviewboard/oauth2/__init__.py
-
-
-
-
- Change Summary:
-
Update oauth lib version and remove unessesary urls
- Description:
-
Added into list of installed apps package django-tool-kit which provides
end-points and basic logic to manage client applications. All the end-points for OAuth2 authorization with external services is moved to /oauth2/. ~ All the tool to manage client applications is moved to ~ All the tool to manage client applications is a part of preference menu - /account/preferences/oauth2/ since the OAuth setup is a part of preference menu ~ Added package django-tool-kit into setup.py so that it will get install with
~ ReviewBoard during setup time. The chosen version is the lasest version - 0.10 ~ Added package django-tool-kit into setup.py so that it will get install
~ with ReviewBoard during setup time. Even though the lastest version is 0.10, + the chosen version is 0.9 in order to be compatible with Django 1.6.
-
Tool: Pyflakes Processed Files: reviewboard/oauth2/urls.py reviewboard/oauth2/models.py reviewboard/settings.py setup.py reviewboard/urls.py Ignored Files: reviewboard/oauth2/__init__.py Tool: PEP8 Style Checker Processed Files: reviewboard/oauth2/urls.py reviewboard/oauth2/models.py reviewboard/settings.py setup.py reviewboard/urls.py Ignored Files: reviewboard/oauth2/__init__.py
-
-
-
-
-
Tool: Pyflakes Processed Files: reviewboard/oauth2/urls.py reviewboard/oauth2/models.py reviewboard/settings.py setup.py reviewboard/urls.py Ignored Files: reviewboard/oauth2/__init__.py Tool: PEP8 Style Checker Processed Files: reviewboard/oauth2/urls.py reviewboard/oauth2/models.py reviewboard/settings.py setup.py reviewboard/urls.py Ignored Files: reviewboard/oauth2/__init__.py
-
-
- Change Summary:
-
Adding reminder
- Description:
-
Added into list of installed apps package django-tool-kit which provides
end-points and basic logic to manage client applications. All the end-points for OAuth2 authorization with external services is moved to /oauth2/. All the tool to manage client applications is a part of preference menu Added package django-tool-kit into setup.py so that it will get install
with ReviewBoard during setup time. Even though the lastest version is 0.10, the chosen version is 0.9 in order to be compatible with Django 1.6. + + Note: please contact
lehoangminh@live.com
when you try to land the feature into master. I am more than happy to support the final integration