mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-14 05:05:11 +00:00
[ADD/WIP] Add some HTTP request code
We can now *register* users!
This commit is contained in:
parent
47c98cbbe3
commit
0fa95c2d14
12 changed files with 320 additions and 11 deletions
18
src/include/AS.h
Normal file
18
src/include/AS.h
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#ifndef PARSEE_AS_H
|
||||
#define PARSEE_AS_H
|
||||
|
||||
#include <Cytoplasm/HttpClient.h>
|
||||
#include <Cytoplasm/Json.h>
|
||||
|
||||
#include <Parsee.h>
|
||||
#include <Routes.h>
|
||||
|
||||
/* Verifies a request from the homeserver to match the
|
||||
* hs_token. */
|
||||
extern HashMap * ASVerifyRequest(ParseeHttpArg *);
|
||||
|
||||
/* Authenticates a request with the correct as_token.
|
||||
* It does not send the request, however. */
|
||||
extern void ASAuthenticateRequest(ParseeConfig *, HttpClientContext *);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue