Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"token_type" is required on access token response #32

Closed
wants to merge 1 commit into from

Conversation

boyander
Copy link

As defined on final standard "token_type" is required on Access Token
Response. Libraries like AFNetwokring expect token_type to be defined as
Bearer if access_token is passed as plain.
http://tools.ietf.org/html/rfc6749#section-4.2.2

As this lib uses bearer token type it can be hardcoded.

As defined on final standard "token_type" is required on Access Token
Response. Libraries like AFNetwokring expect token_type to be defined as
Bearer if access_token is passed as plain.
http://tools.ietf.org/html/rfc6749#section-4.2.2
@eculver
Copy link
Contributor

eculver commented Oct 26, 2013

Yes. You are correct. This is a bug and needs to be fixed. I'll pull in your changes and see if I can get this merged ASAP.

@eculver eculver closed this in d53a9fb Oct 26, 2013
ysavary pushed a commit to epyx-src/django-oauth2-provider that referenced this pull request Nov 20, 2014
* master: (29 commits)
  caffeinehit#56 - Uncomment an assertion in scope tests. It was commented out whilst adding support for Django 1.6.
  Fix get_access_token failing on single tracker mode after token refresh (caffeinehit#70).
  Removing django 1.3 from tox and travis-ci matrices since it's no longer officially supported.
  Fixing silly bug in test wrapper's django version detection.
  caffeinehit#55 - Update travis-ci config to include Django 1.6.
  Django 1.6 detection for test wrapper script.
  caffeinehit#55 - Removing another unnecessary import.
  caffeinehit#55 - Removing unnecessary imports.
  caffeinehit#55 Adding Django 1.6 to tox coverage matrix.
  caffeinehit#55 - Fallback to simplejson in older versions of Django.
  Fixes caffeinehit#55 - Handle non-list/non-tuple form field values for scope introduced in Django 1.6
  caffeinehit#51 caffeinehit#53 - Support for model serialization/deserialization. This addresses the issues in Django 1.6 involving new session storage backend behavior.
  Fix caffeinehit#26 by checking for invalid data before attempting access.
  Use `constants` instead of going directly through settings when invalidating tokens and grants. This also replaces 'clean' with 'delete' for the new setting to be more clear as to what's being done under the hood.
  implement OAUTH_CLEAN_EXPIRED, clean as you go
  Adding a License section to README.
  Fixes caffeinehit#32 - Add `token_type` to access token response to conform to section 4.2.2 of the OAuth 2.0 specification.
  caffeinehit#29 - Remove trailing slash that was causing installs to fail on Windows.
  Addressing caffeinehit#28 by replacing the BSD license reference with MIT to match what's in the repo.
  Bumping version to 0.2.7-dev to avoid ambiguity in an established package.
  ...

Conflicts:
	provider/__init__.py
	provider/oauth2/views.py
joestump pushed a commit to sprintly/django-oauth2-provider that referenced this pull request Jan 18, 2017
…-update

Updated the default scopes of the client credentials grant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants