Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

feat(security): select mechanism #600

Merged
merged 3 commits into from
Aug 24, 2020
Merged

Conversation

levy5307
Copy link
Contributor

select a mechanism which is supported by both server and client.

negotiation process:

  client                             server
                                                     |---    SASL_LIST_MECHANISMS     -->|
                                                     |<--  SASL_LIST_MECHANISMS_RESP  ---|
                                                     |---   SASL_SELECT_MECHANISMS   --->|
                                                     |<-- SASL_SELECT_MECHANISMS_RESP ---|
                                                     |                                   |
                                                     |------     SASL_INITIATE    ------>|
                                                     |                                   |
                                                     |<----      SASL_CHALLENGE     -----|
                                                     |-----       SASL_RESPONSE     ---->|
                                                     |                                   |
                                                     |               .....               |
                                                     |                                   |
                                                     |<----      SASL_CHALLENGE     -----|
                                                     |-----       SASL_RESPONSE     ---->|
                                                     |                                   |        (authentication will succeed
                                                     |                                   |        if all chanllenges passed)
                                                     | <---         SASL_SUCC       -----|
    (client won't response                           |                                   |
     if servers says ok)                             |                                   |
                                                     | ----          RPC_CALL       ---> |
                                                     | <---          RPC_RESP        ----|

@acelyc111 acelyc111 merged commit abd93ac into XiaoMi:master Aug 24, 2020
@levy5307 levy5307 deleted the select-mechanism branch August 24, 2020 10:12
levy5307 added a commit to levy5307/rdsn that referenced this pull request Dec 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants