PrivateNoob@sopuli.xyz to Lemmy SupportEnglish · 1 year agoI want to post with a Lemmy bot, but where can I authenticate?sopuli.xyzimagemessage-square5fedilinkarrow-up111arrow-down11file-text
arrow-up110arrow-down1imageI want to post with a Lemmy bot, but where can I authenticate?sopuli.xyzPrivateNoob@sopuli.xyz to Lemmy SupportEnglish · 1 year agomessage-square5fedilinkfile-text
Where can I get the auth key or is this just the password of the registered bot? Also what is honeypot good for?
minus-squaremarsara9@lemmy.worldlinkfedilinkEnglisharrow-up3·1 year agoFYI: https://en.m.wikipedia.org/wiki/Honeypot_(computing) But there should also be a separate endpoint to get an auth token. (I don’t remember it off the top of my head). Then your bot should store that somewhere and send it as the auth parameter in every request.
minus-squareRoundSparrowlinkfedilinkEnglisharrow-up2·1 year agoI know what a honeypot is ;) It exists outside computing, such as spy vs. spy. What I have no idea of is what Lemmy does internally with a honeypot post it creates. Auto-report comments on them?
minus-squaremarsara9@lemmy.worldlinkfedilinkEnglisharrow-up4·1 year agohttps://github.com/LemmyNet/lemmy/blob/d909f3455ddb89d45f35c78c4ce96bd0896469b1/crates/api_common/src/utils.rs#L302 If the honeypot is set the request is simply discarded.
FYI: https://en.m.wikipedia.org/wiki/Honeypot_(computing)
But there should also be a separate endpoint to get an auth token. (I don’t remember it off the top of my head). Then your bot should store that somewhere and send it as the
auth
parameter in every request.I know what a honeypot is ;) It exists outside computing, such as spy vs. spy.
What I have no idea of is what Lemmy does internally with a honeypot post it creates. Auto-report comments on them?
https://github.com/LemmyNet/lemmy/blob/d909f3455ddb89d45f35c78c4ce96bd0896469b1/crates/api_common/src/utils.rs#L302
If the honeypot is set the request is simply discarded.