-
-
Notifications
You must be signed in to change notification settings - Fork 289
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
[FEATURE REQUEST] security scope #418
Comments
Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue. |
Hi @cappelaere, could you please format the code sample with markdown so it is easier to read? Thanks |
Updated the example to follow OpenAPI 3.0 to apply security scopes at the message level. |
This issue has been automatically marked as stale because it has not had recent activity 😴 |
This issue has been automatically marked as stale because it has not had recent activity 😴 |
I too would very much like this feature to be included in the base specification, since as of now the authorization constructs are not very advanced and being able to specify scopes at an Operation level would allow a much more fine grained control and documentation as well as code generation. Is there any way to support this feature, eg. would a pull request be considered? |
This issue has been automatically marked as stale because it has not had recent activity 😴 |
@Neverbolt contribution is always welcome, have a look at our contribution guide that explains how to contribute changes to the spec. Most important before PR is to discuss the solution first. Would love to see how you imagine it fixed in the spec. |
@cappelaere @Neverbolt you should definitely have a look at #584 |
This issue has been automatically marked as stale because it has not had recent activity 😴 |
@cappelaere @Neverbolt did you have a chance to look at #584 ? |
This issue has been automatically marked as stale because it has not had recent activity 😴 It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation. There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model. Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here. Thank you for your patience ❤️ |
I'm closing this one as there are no responses |
Is your feature request related to a problem? Please describe.
Current security scopes are at the full API level. Given the granularity available, it would be great to have it at the message level.
Can't it be tackled using specification extensions?
Since scopes are already defined at securty scheme level, they ought to be used at the message level and used for code generation as well.
Describe the solution you'd like
I would like to have the ability to define an array of scopes at the message level that would be necessary for a user to have in order to publish or subscribe. The array would allow anyone of the scopes to be acceptable,
Example:
The text was updated successfully, but these errors were encountered: