Closed medjedovicm closed 8 months ago
I'm sorry, I missed a crucial commit... I think this structure makes more sense. Another commit is coming with an addressed rate limits comment.
@medjedovicm ive fixed the integration tests, do you mind rebasing off the main branch to incorporate the fix into yours?
@Cameri Yes sure, done.
Totals | |
---|---|
Change from base Build 7498690615: | -0.4% |
Covered Lines: | 1309 |
Relevant Lines: | 2357 |
:tada: This PR is included in version 2.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
Description
Created
admission router
andadmission check controller
which runs a check against the providedpubkey
in the URL parameter and returns JSON with information if the user (pubkey) is admitted or not.GET
/admissions/check/:pubkey
Response:
Related Issue
Closes #336
Motivation and Context
In our use case, we need to check if a user is admitted on our own relay before we let them log in. The user is redirected to the relay page (in the new tab) while we send a check request every 10 seconds or so, so we can automatically figure out when payment is done.
How Has This Been Tested?
Visited a new endpoint in the browser, looking for the response. As far as I am aware my changes do not affect any other parts of the code.
Screenshots (if appropriate):
Types of changes
Checklist: