1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-24 08:57:03 -05:00
forgejo/services/auth/source/oauth2
Giteabot 9cef7a4600
Use inline SVG for built-in OAuth providers (#25171) (#25234)
Backport #25171 by @silverwind

The plan is that all built-in auth providers use inline SVG for more
flexibility in styling and to get the GitHub icon to follow
`currentcolor`. This only removes the `public/img/auth` directory and
adds the missing svgs to our svg build.

It should map the built-in providers to these SVGs and render them. If
the user has set a Icon URL, it should render that as an `img` tag
instead.

```
gitea-azure-ad
gitea-bitbucket
gitea-discord
gitea-dropbox
gitea-facebook
gitea-gitea
gitea-gitlab
gitea-google
gitea-mastodon
gitea-microsoftonline
gitea-nextcloud
gitea-twitter
gitea-yandex
octicon-mark-github
```

GitHub logo is now white again on dark theme:

<img width="431" alt="Screenshot 2023-06-12 at 21 45 34"
src="https://github.com/go-gitea/gitea/assets/115237/27a43504-d60a-4132-a502-336b25883e4d">

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2023-06-13 12:04:40 +00:00
..
assert_interface_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
init.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
jwtsigningkey.go Add Alpine package registry (#23714) 2023-05-12 17:27:50 +00:00
providers.go Use inline SVG for built-in OAuth providers (#25171) (#25234) 2023-06-13 12:04:40 +00:00
providers_base.go Use inline SVG for built-in OAuth providers (#25171) (#25234) 2023-06-13 12:04:40 +00:00
providers_custom.go Modify OAuth login ui and fix display name, iconurl related logic (#25030) (#25161) 2023-06-09 10:59:18 +00:00
providers_openid.go Use inline SVG for built-in OAuth providers (#25171) (#25234) 2023-06-13 12:04:40 +00:00
providers_simple.go Modify OAuth login ui and fix display name, iconurl related logic (#25030) (#25161) 2023-06-09 10:59:18 +00:00
source.go Map OIDC groups to Orgs/Teams (#21441) 2023-02-08 14:44:42 +08:00
source_authenticate.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
source_callout.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
source_name.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
source_register.go Handle OpenID discovery URL errors a little nicer when creating/editing sources (#23397) 2023-03-10 01:14:43 -05:00
store.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
token.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
urlmapping.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00