Skip to content

Blog post "how-to-implement-a-basic-activitypub-server" misses the field Digest #17299

Closed
mastodon/blog
#1
@green-coder

Description

@green-coder

Steps to reproduce the problem

  1. Read the blog article at https://blog.joinmastodon.org/2018/06/how-to-implement-a-basic-activitypub-server/
  2. Try to send a POST request to a Mastodon instance.

Expected behaviour

The POST request should be accepted by the server (code 202)

Actual behaviour

The server answers an error 401

Specifications

The blog post is missing the information about the Digest field.

See

raise SignatureVerificationError, 'Mastodon requires the Digest header to be signed when doing a POST request' if request.post? && !signed_headers.include?('digest')

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions