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

Help on application-specific scopes implementation #1438

Open
gr4n73 opened this issue Jul 18, 2024 · 7 comments
Open

Help on application-specific scopes implementation #1438

gr4n73 opened this issue Jul 18, 2024 · 7 comments

Comments

@gr4n73
Copy link

gr4n73 commented Jul 18, 2024

Hello,

Is it currently possible to define application-specific scopes? If so, could you provide guidance or point to any existing workarounds?

If this feature is not supported, how can I implement application-specific scopes? Specifically, I am looking for a way to define scopes tied to specific OAuth2 applications.

Also, I would appreciate any advice or direction on how to achieve this.

Thank you!

Tasks

No tasks being tracked yet.
@n2ygk
Copy link
Member

n2ygk commented Jul 18, 2024

Take a look at https://columbia-it-django-jsonapi-training.readthedocs.io/en/latest/ where the application backend decides what to do given various scopes.

The term "application" in DOT is similar merging of a misnomer as it represents a client app operating on behalf of a user.

@gr4n73
Copy link
Author

gr4n73 commented Jul 19, 2024

Hey @n2ygk ,

Thank you for sharing the resource. I was actually referring something similar to this,

#395.

@MattSmelly
Copy link

Hey @n2ygk ,

Thank you for sharing the resource. I was actually referring something similar to this,

#395.

Have you solved this problem? I'm also struggling with it. If you find a solution, please let me know. Thank you!

@n2ygk
Copy link
Member

n2ygk commented Oct 9, 2024

Wow 7 years ago there was already a plan. I'll see if any of those ideas or code can be brought forward.

@n2ygk
Copy link
Member

n2ygk commented Oct 9, 2024

I'm unable to find the scopes backend code referenced in the 2017 post by @synasius so I guess we need to start over on this.

@n2ygk n2ygk added this to the Future milestone Oct 9, 2024
@gr4n73
Copy link
Author

gr4n73 commented Oct 9, 2024

Hi @n2ygk ,

https://github.com/jazzband/django-oauth-toolkit/pull/395/files

Isn't these relavent part of the code?

@n2ygk
Copy link
Member

n2ygk commented Oct 9, 2024

@gr4n73 those files are based on the codebase 7 years ago, but, more importably, @synasius had commented that he had a preferred solution in the works in a branch that no longer exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants