Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion faststream/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def get_requirement(self) -> list["dict[str, Any]"]:

def get_schema(self) -> dict[str, dict[str, str]]:
"""Get the security schema for SASL/OAUTHBEARER authentication."""
return {"oauthbearer": {"type": "oauth2", "$ref": ""}}
return {"oauthbearer": {"type": "oauth2"}}


class SASLGSSAPI(BaseSecurity):
Expand Down
2 changes: 1 addition & 1 deletion tests/asyncapi/confluent/v2_6_0/test_security.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class SecurityTestcase(AsyncAPI26Mixin):
}),
"components": IsPartialDict({
"securitySchemes": {
"oauthbearer": {"type": "oauth2", "$ref": ""},
"oauthbearer": {"type": "oauth2"},
},
}),
}),
Expand Down
2 changes: 1 addition & 1 deletion tests/asyncapi/confluent/v3_0_0/test_security.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class SecurityTestcase(AsyncAPI30Mixin):
}),
"components": IsPartialDict({
"securitySchemes": {
"oauthbearer": {"type": "oauth2", "$ref": ""},
"oauthbearer": {"type": "oauth2"},
},
}),
}),
Expand Down
2 changes: 1 addition & 1 deletion tests/asyncapi/kafka/v2_6_0/test_security.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ async def test_topic(msg: str) -> str:
{"oauthbearer": []},
]
sasl_oauthbearer_security_schema["components"]["securitySchemes"] = {
"oauthbearer": {"type": "oauth2", "$ref": ""},
"oauthbearer": {"type": "oauth2"},
}

assert schema == sasl_oauthbearer_security_schema
Expand Down
2 changes: 1 addition & 1 deletion tests/asyncapi/kafka/v3_0_0/test_security.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ async def test_topic(msg: str) -> str:
{"$ref": "#/components/securitySchemes/oauthbearer"},
]
sasl_oauthbearer_security_schema["components"]["securitySchemes"] = {
"oauthbearer": {"type": "oauth2", "$ref": ""},
"oauthbearer": {"type": "oauth2"},
}

assert schema == sasl_oauthbearer_security_schema
Expand Down
Loading