You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this is already possible or not.
The current entries endpoint might be susceptible to abuse as anyone can make the request to https://api.staticman.net/v2/entry/{GITHUB USERNAME}/{GITHUB REPOSITORY}/{BRANCH}/
Is there a way to authorise the request, maybe with an access token? So that only the requests with valid tokens make a PR?
Something like, https://api.staticman.net/v2/entry/{GITHUB USERNAME}/{GITHUB REPOSITORY}/{BRANCH}/ with token=xxyyzz as POST data
This way we can safely get rid of the moderation as well
The text was updated successfully, but these errors were encountered:
An encrypted Token field can be added to config and user can make the request with the original token.
The token from request can then be compared with the decrypted token from config to authorise the request.
r00tdaemon
changed the title
Authorising single user to push commits using Github access token
Authorising single user to push commits using access token
Feb 17, 2019
The current entries endpoint might be susceptible to abuse as anyone can make the request to https://api.staticman.net/v2/entry/{GITHUB USERNAME}/{GITHUB REPOSITORY}/{BRANCH}/.
Is there a way to authorise the request, maybe with an access token? So that only the requests with valid tokens make a PR?
This is already implemented in #219, and further enhanced in #231. You may test @staticmanlab, a public instance for GitLab, which has implemented the later unmerged PR.
N.B. My instance doens't have Akismet and Mailgun since the main goal for setting it up is to test its GitLab support, so I choose not to expose myself to their pricing plans.
I'm not sure if this is already possible or not.
The current entries endpoint might be susceptible to abuse as anyone can make the request to
https://api.staticman.net/v2/entry/{GITHUB USERNAME}/{GITHUB REPOSITORY}/{BRANCH}/
Is there a way to authorise the request, maybe with an access token? So that only the requests with valid tokens make a PR?
Something like,
https://api.staticman.net/v2/entry/{GITHUB USERNAME}/{GITHUB REPOSITORY}/{BRANCH}/
withtoken=xxyyzz
as POST dataThis way we can safely get rid of the moderation as well
The text was updated successfully, but these errors were encountered: