forked from aklivity/zilla
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support http authorization in asyncapi generation (aklivity#1145)
* Adjust padding to accommodate good enough headers and don't include partial data frame while computing crc32c value * Support http oauth in asyncapi
- Loading branch information
Showing
12 changed files
with
160 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
.../io/aklivity/zilla/runtime/binding/asyncapi/internal/view/AsyncapiSecuritySchemeView.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* | ||
* Copyright 2021-2023 Aklivity Inc | ||
* | ||
* Licensed under the Aklivity Community License (the "License"); you may not use | ||
* this file except in compliance with the License. You may obtain a copy of the | ||
* License at | ||
* | ||
* https://www.aklivity.io/aklivity-community-license/ | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OF ANY KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations under the License. | ||
*/ | ||
package io.aklivity.zilla.runtime.binding.asyncapi.internal.view; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
import io.aklivity.zilla.runtime.binding.asyncapi.internal.model.AsyncapiSecurityScheme; | ||
|
||
public final class AsyncapiSecuritySchemeView extends AsyncapiResolvable<AsyncapiSecurityScheme> | ||
{ | ||
private final AsyncapiSecurityScheme scheme; | ||
|
||
public String type() | ||
{ | ||
return scheme.type; | ||
} | ||
|
||
public List<String> scopes() | ||
{ | ||
return scheme.scopes; | ||
} | ||
|
||
public String refKey() | ||
{ | ||
return key; | ||
} | ||
|
||
public static AsyncapiSecuritySchemeView of( | ||
Map<String, AsyncapiSecurityScheme> schemes, | ||
AsyncapiSecurityScheme scheme) | ||
{ | ||
return new AsyncapiSecuritySchemeView(schemes, scheme); | ||
} | ||
|
||
private AsyncapiSecuritySchemeView( | ||
Map<String, AsyncapiSecurityScheme> schemes, | ||
AsyncapiSecurityScheme scheme) | ||
{ | ||
super(schemes, "#/components/securitySchemes/(.+)"); | ||
this.scheme = scheme.ref == null ? scheme : resolveRef(scheme.ref); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters