Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@reynir
Copy link
Member

@reynir reynir commented May 18, 2025

Useful for keeping information such as what username was authenticated with, or what public key was used.

Useful for keeping information such as what username was authenticated
with.
@hannesm
Copy link
Member

hannesm commented May 19, 2025

looks fine

@reynir
Copy link
Member Author

reynir commented May 19, 2025

I am considering adding type 'authie event = ... in server.ml so all events except Disconnected will carry the authentication information. Otherwise, the effectful layer will have to check the authentication state is Done _ which it should always be.

@reynir reynir merged commit add9c5a into main May 21, 2025
1 check passed
@reynir reynir deleted the authie branch May 21, 2025 13:53
@reynir
Copy link
Member Author

reynir commented May 21, 2025

I merged it as it is. I can experiment with threading authentication information further at a later point and open another PR.

reynir added a commit to reynir/opam-repository that referenced this pull request May 28, 2025
CHANGES:

* Add `Server.close`, fix close message semantics (mirage/awa-ssh#79 @reynir, review @hannesm)
* Add authentication information in `Server.auth_state` `Done _` constructor (mirage/awa-ssh#80 @reynir, review @hannesm)
* Make `Awa_mirage.Auth.lookup_user` public as it were before mirage/awa-ssh#74 (mirage/awa-ssh#81 @palainp, review @reynir)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants