1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-23 17:14:27 +00:00
gitea/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>
2021-07-13 15:28:07 +02:00
..
archiver Rework repository archive (#14723) 2021-06-23 17:12:38 -04:00
auth Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
comments Enhance Ghost comment mitigation Settings (#14392) 2021-01-21 21:56:19 -05:00
externalaccount Allow externalID to be UUID (#8551) 2019-10-17 10:06:28 +08:00
forms Add option to provide signature for a token to verify key ownership (#14054) 2021-07-13 15:28:07 +02:00
gitdiff Detect encoding changes while parsing diff (#16330) 2021-07-13 03:13:52 +02:00
issue Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
lfs Rewrite of the LFS server (#15523) 2021-06-06 02:59:27 +03:00
mailer Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
mirror Add push to remote mirror repository (#15157) 2021-06-14 19:20:43 +02:00
pull Add checkbox to delete pull branch after successful merge (#16049) 2021-07-13 01:26:25 +02:00
release Add tag protection (#15629) 2021-06-25 16:28:55 +02:00
repository Implemented head_commit for webhooks (#16282) 2021-06-29 15:34:03 +02:00
webhook Refactor Webhook + Add X-Hub-Signature (#16176) 2021-06-27 20:21:09 +01:00
wiki Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00