27 Commits (fcc7cdab112e64c2b158c594c7d46746ff6c46f8)

Author SHA1 Message Date
Sandro Santilli 71d16f69ff Login via OpenID-2.0 (#618) 7 years ago
Willem van Dreumel 01d957677f Oauth2 consumer (#679)
* initial stuff for oauth2 login, fails on:
* login button on the signIn page to start the OAuth2 flow and a callback for each provider
Only GitHub is implemented for now
* show login button only when the OAuth2 consumer is configured (and activated)
* create macaron group for oauth2 urls
* prevent net/http in modules (other then oauth2)
* use a new data sessions oauth2 folder for storing the oauth2 session data
* add missing 2FA when this is enabled on the user
* add password option for OAuth2 user , for use with git over http and login to the GUI
* add tip for registering a GitHub OAuth application
* at startup of Gitea register all configured providers and also on adding/deleting of new providers
* custom handling of errors in oauth2 request init + show better tip
* add ExternalLoginUser model and migration script to add it to database
* link a external account to an existing account (still need to handle wrong login and signup) and remove if user is removed
* remove the linked external account from the user his settings
* if user is unknown we allow him to register a new account or link it to some existing account
* sign up with button on signin page (als change OAuth2Provider structure so we can store basic stuff about providers)

* from gorilla/sessions docs:
"Important Note: If you aren't using gorilla/mux, you need to wrap your handlers with context.ClearHandler as or else you will leak memory!"
(we're using gorilla/sessions for storing oauth2 sessions)

* use updated goth lib that now supports getting the OAuth2 user if the AccessToken is still valid instead of re-authenticating (prevent flooding the OAuth2 provider)
7 years ago
unclejack 8bc431952f public/img: reduce the size of PNG images (#734)
Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com>
8 years ago
Andrey Nering 96c9fef35f Update home page to Gitea (#138) 8 years ago
Rachid Zarouali c040f2fbb1 first batch of Readme updates (#65) 8 years ago
Sandro Santilli 8a248696e9 Use a gopher as default avatar (rather than the gravatar logo) (#3208)
Also changes the avatar from a jpeg to a png, to allow for
transparent background. The indexed png is also smaller in size.

Note that at the moment the default avatar is only used when
the user requested a custom avatar and the custom avatar file
is not found (should never happen).

In the future the default avatar could be used as a default
return when by-mail avatar lookups fail too (both gravatar
and libravatar support passing a default)
8 years ago
Florian Kaiser eb009923f4 Fix chmod for several files in conf/locale/ and public/ 8 years ago
Matt Hamilton 45659d0fd2 optipng 9 years ago
Unknwon f4e54aafa5 typo in logo 9 years ago
Unknwon d185f601d3 #1622 comment with whitespace 9 years ago
Unknwon 3b0c2cb480 #633 Add Emoji support 9 years ago
Unknwon 4217c2333c new create webhook UI 9 years ago
Unknwon 2e30b421b4 comletely remove v1 UI files of Gogs 9 years ago
Unknwon b6f8b486c7 add sr-only class, change to new tag line 9 years ago
Unknwon 5c4bc3c848 Huge updates!!!!! Be careful to merge!!!! 10 years ago
Unknwon 8dd07c0ddd New UI merge in progress 10 years ago
FuXiaoHei 61641d9c63 issue label ui design 10 years ago
Unknown 2401e68d7e Prepare for v0.3.1 hotfix 10 years ago
Unknown 660b47373d Prepare for release v0.3.0 10 years ago
Unknown 006c45e21d Mirror change 10 years ago
Unknown 6bc7ae971a Mirror fix 10 years ago
skyblue 4bac361605 merge with branch master 10 years ago
skyblue b9302749dd update default image 10 years ago
Gogs 964e537479 append route to web 10 years ago
FuXiaoHei 13b6e06943 404 and 500 page ui 10 years ago
FuXiaoHei 71bae3ebd3 ui for repo/create page 10 years ago
Unknown b5ba387891 Setup static resources 11 years ago