Skip to content
#

oauth2

Here are 272 public repositories matching this topic...

openpencil
openpencil commented May 13, 2017

Dear Guillaume,
There is a tiny error in your documentation here: http://gmvault.org/in_depth.html
This line:

You can renew a saved oauth token with the option --renew-oauth-tok

should read:

You can renew a saved oauth token with the option --renew-oauth2-tok

The 2 is missing. The missing 2 causes an error when a user tries to renew the Oauth token. Would be great if you co

ejochman
ejochman commented Apr 2, 2019

There are a couple issues open right now that suggest a general restructuring of GAM code, which I agree would be good. However, one simple fix that would help both with code structure and readability of contributed code is a style guide that could be enforced during PR review.

The main file is over 13k lines, at this point, and lacks a consistent style and structure throughout, making it diff

anuj9196
anuj9196 commented Mar 25, 2020

Describe the bug
In my application, based on the user property, I need to change the request.user to a different user.

class CustomMiddleware:
  def __init__(self, get_response):
     self.get_response = get_response

  def __call__(self, request):
     print(request.user)

     response = self.get_response(request)
     return response

and the MIDDLEWARE stack is

authlib
jcassee
jcassee commented Sep 20, 2018

authlib contains pretty much all you need to implement JWT token validation. It would be nice if there was a simple default one provided. I'm not sure how many moving parts it would have. If no single validator would cover 80% of cases, maybe provide more docs on how to assemble one.

@lepture If you have a general idea of how you would like to see this implemented I would probably be able to do

taoweibang
taoweibang commented Apr 9, 2019
$ curl 'http://127.0.0.1:5000/auth/oauth2/token?grant_type=client_credentials' --user 'documentation:KQ()SWK)SQK)QWSKQW(SKQ)S(QWSQW(SJ*HQ&HQW*SQ*^SSQWSGQSG'
{"access_token": "lYoijoYaTgXZi1bLQTs4PuItKsNHNY", "token_type": "Bearer", "expires_in": 3600, "scope": "users:write teams:write auth:write users:read auth:read teams:read"}

Grab the above access_token and access protected resour

Improve this page

Add a description, image, and links to the oauth2 topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the oauth2 topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.