You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/services
zeripath b82293270c
Add option to provide signature for a token to verify key ownership (#14054)
* Add option to provide signed token to verify key ownership

Currently we will only allow a key to be matched to a user if it matches
an activated email address. This PR provides a different mechanism - if
the user provides a signature for automatically generated token (based
on the timestamp, user creation time, user ID, username and primary
email.

* Ensure verified keys can act for all active emails for the user

* Add code to mark keys as verified

* Slight UI adjustments

* Slight UI adjustments 2

* Simplify signature verification slightly

* fix postgres test

* add api routes

* handle swapped primary-keys

* Verify the no-reply address for verified keys

* Only add email addresses that are activated to keys

* Fix committer shortcut properly

* Restructure gpg_keys.go

* Use common Verification Token code

Signed-off-by: Andrew Thornton <art27@cantab.net>
3 years ago
..
archiver Rework repository archive (#14723) 3 years ago
auth Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
comments Enhance Ghost comment mitigation Settings (#14392) 3 years ago
externalaccount
forms Add option to provide signature for a token to verify key ownership (#14054) 3 years ago
gitdiff Detect encoding changes while parsing diff (#16330) 3 years ago
issue Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
lfs Rewrite of the LFS server (#15523) 3 years ago
mailer Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
mirror Add push to remote mirror repository (#15157) 3 years ago
pull Add checkbox to delete pull branch after successful merge (#16049) 3 years ago
release Add tag protection (#15629) 3 years ago
repository Implemented head_commit for webhooks (#16282) 3 years ago
webhook Refactor Webhook + Add X-Hub-Signature (#16176) 3 years ago
wiki Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago