Skip to content

make lookup_user public#81

Merged
reynir merged 1 commit intomirage:mainfrom
palainp:add-lookupuser
May 27, 2025
Merged

make lookup_user public#81
reynir merged 1 commit intomirage:mainfrom
palainp:add-lookupuser

Conversation

@palainp
Copy link
Member

@palainp palainp commented May 25, 2025

This PR wants to add the ability to check the presence of an existing user in the user database.
Before the Auth refactoring, I could call Awa.Auth.lookup_user user db, but not anymore. With this PR I'm able to call Awa_mirage.Auth.lookup_user again :)
The other solution, if there is another path to check that, is to change my code, but I haven't figured out yet.
I don't know if, while I'm at it, I should also make verify public, so you can tell me :)
Best

Copy link
Member

@reynir reynir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Eventually, I'd like to push that stuff out of awa_mirage and into the user's code. Sorry for breaking your code!

@reynir reynir merged commit 9541e67 into mirage:main May 27, 2025
1 check passed
@palainp palainp deleted the add-lookupuser branch May 28, 2025 05:48
@palainp
Copy link
Member Author

palainp commented May 28, 2025

Thank you @reynir , you didn't broke anything, I need to keep my code updated with recent releases ;)
I agree with you that moving the user DB to user's code would be great!

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

2 participants