mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-08 11:11:10 -06:00
hell yeah
This commit is contained in:
parent
276ce6cd98
commit
9e1f61c373
10 changed files with 496 additions and 112 deletions
|
|
@ -157,6 +157,9 @@ func (f *federator) AuthenticateFederatedRequest(username string, r *http.Reques
|
|||
if err != nil {
|
||||
return nil, fmt.Errorf("could not parse public key from block bytes: %s", err)
|
||||
}
|
||||
if p == nil {
|
||||
return nil, errors.New("returned public key was empty")
|
||||
}
|
||||
|
||||
// do the actual authentication here!
|
||||
algo := httpsig.RSA_SHA256 // TODO: make this more robust
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue