Dynamic Scopes #3983
janwilmake
started this conversation in
Enhancements
Dynamic Scopes
#3983
Replies: 1 comment
-
@CodeFromAnywhere I am very keen to evolve how OpenAPI and OAuth metadata/OpenID Discovery metadata work together. The existing approach is used in Security Scheme objects, for me, too brittle right now. I jotted some thoughts down in a completely unrelated Issue I raised on the 3.2.0 implementation of CIBA: #4106 It might provide some context on where my head is at. If you are up for collaborating on some ideas, let me know. I am keen to take this stuff to FAPI WG to see if there is any appetite from members to evolve the approach. It's all a bit disconnected as things stand. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
After trying to architect a good way for doing RAR with OAuth2, I stumbled upon the question on how to implement fine-grained access control. How to do this right? My intuition was to add
{variableName}
in the scope to make it more fine-grained, and document it clearly.I found these materials that confirmed my strategy:
All in all, it seems that it's possible to create scopes with dynamic parts. Maybe disliked by some developers and authorities (such as Vittorio Bertocci) but definitely possible - and implemented by some people - and not uncompatible with oauth2.
As an example, I will implement my database management and use API like this:
To make things clearer, I'll add
x-scope-parameters
to my openapi specification, as such:Just sharing my research and ADR here. Maybe it helps, and curious to hear others takes on this!
Beta Was this translation helpful? Give feedback.
All reactions