-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
AttributeError: 'foo' object has no attribute 'required_scopes' #26
Comments
Hi @jayvdb, good catch. the scope parsing was just a very rudimentary first shot with a todo for later, which apparently was now 😄. i tried simulating what oauth toolkit is actually doing. i think that fix should cover most cases. can you confirm that the bug is resolved? |
fwiw, unrelated, the most common warnings I see are
(Yet another reason for me to switch to simplejwt..) I guess I can fix it by following the hint there. I guess they need to be added to https://github.com/tfranzel/drf-spectacular/blob/7578ca5209cf69c78143b393fab790b40032241e/drf_spectacular/contrib/authentication.py Is there a way to silence them other than implementing those? Doing a build using master... |
The exception has gone, however I have more warnings, and a lot of them are like:
Also lots of
And lots of identical repeats of that for
And lots of identical repeats for
But I am happy; I no longer need my hacky workaround, so you can close this issue if the above are expected side-effects of your change. |
regarding first post:
|
regarding second post: i suppose you have something like this for that "wrapped" stuff i need more context. looks like your view is somehow decorated and the introspection cannot access |
fwiw, we use the living & maintained fork at https://github.com/Styria-Digital/django-rest-framework-jwt |
let be back paddle on the ones similar to:
no that is a bug.... sry... the warning is just too broad. let me fix that |
@jayvdb incorrect warning should be gone. the warning did not reflect what was going on. better now? |
Nice. Back down to 899 warnings ;-) |
I created dummy plugins for socialauth and drf-jwt, and now I am down to 290 warnings. The list is getting manageable. |
I would like more context to. Perhaps try to get the (Found one use of |
I think we've finished this issue now. |
I am seeing a lot of occurrences of this
That is the django-oscar-api, but it is so many others also.
Would it be possible for this to trigger a warning, and affected parts of the API to be discarded from the schema?
The text was updated successfully, but these errors were encountered: