Skip to content

Feat[MQB]: add authn protocol #696

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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
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
66 changes: 65 additions & 1 deletion src/groups/bmq/bmqp/bmqp_ctrlmsg.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -1585,7 +1585,7 @@
</restriction>
</simpleType>

<!-- ========================================================================
<!-- ========================================================================
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
: NEGOTIATION MESSAGE :
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::#
Expand Down Expand Up @@ -1755,4 +1755,68 @@
<element name='clusterNodeId' type='int' default='-1'/>
</sequence>
</complexType>

<!-- ========================================================================
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
: AUTHENTICATION MESSAGE :
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::#
==================================================================== -->

<complexType name='AuthenticationMessage'>
<annotation>
<documentation>
This type is the top level type for any message being exchanged during
authentication of a connection with the broker, whether by a BlazingMQ
client or another broker.

choice.: enumerates all the different type of authentication packets

During negotiation, the process (whether a client using the libbmq SDK,
or a bmqbrkr) sends a 'authenticateRequest' message; to which the remote
peer will reply with a 'authenticateResponse' message.
</documentation>
</annotation>
<choice>
<element name='authenticateRequest' type='tns:AuthenticateRequest'/>
<element name='authenticateResponse' type='tns:AuthenticateResponse'/>
</choice>
</complexType>

<complexType name='AuthenticateRequest'>
<annotation>
<documentation>
This request is a messages sent from a client to a broker during
session initiation or reauthentication. The message indicates the client
is attempting to authenticate with the supplied authentication material
to initiate a session.

mechanism.: The authentication mechanism the client intends to use
data......: The client's authentication material
</documentation>
</annotation>
<sequence>
<element name='mechanism' type='string'/>
<element name='data' type='hexBinary' minOccurs='0'/>
</sequence>
</complexType>

<complexType name='AuthenticateResponse'>
<annotation>
<documentation>
Response of an 'AuthenticateRequest' request indicating the result of
the operation. The message is sent to a client from a broker during
authentication.

status.....: Status of the request
lifetimeMs.: The duration (in milliseconds) the client's session is
valid for. The client must re-authenticate before the
lifetime expires or it will be disconnected.
</documentation>
</annotation>
<sequence>
<element name='status' type='tns:Status' />
<element name='lifetimeMs' type='long' minOccurs='0'/>
</sequence>
</complexType>

</schema>
Loading
Loading