ragflow/web/src/assets/svg
Chaoxi Weng e7a6a9e47e
Feat: Add frontend support for third-party login integration (#7553)
### What problem does this PR solve?

Add frontend support for third-party login integration:

- Used `getLoginChannels` API to fetch available login channels from the
server
- Used `loginWithChannel` function to initiate login based on the
selected channel
- Refactored `useLoginWithGithub` hook to `useOAuthCallback` for
generalized OAuth callback handling
- Updated the login page to dynamically render third-party login buttons
based on the fetched channel list
- Styled third-party login buttons to improve user experience
- Removed unused code snippets

> This PR removes the previously hardcoded GitHub login button. Since
the functionality only worked when `location.host` was equal to
`demo.ragflow.io`, and the authentication logic is now based on
`login.ragflow.io`, this change does not affect the existing logic and
is considered a non-breaking change
---
#### Frontend Screenshot && Backend Configuration


![image](https://github.com/user-attachments/assets/190ad3a5-3718-409a-ad0e-01e7aca39069)

```yaml
# docker/service_conf.yaml.template

# ...
oauth:
  github:
    icon: github
    display_name: "Github"
    # ...

  custom_channel:
    display_name: "OIDC"
    # ...

  custom_channel_2:
    display_name: "OAuth2"
    # ...
```
---
- Related pull requests:
  - #7379
  - #7521 
- Related issues:
  - #3495 

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
- [x] Refactoring
- [x] Performance Improvement
2025-05-14 12:19:28 +08:00
..
chunk-method Feat: Add description for tag parsing method #4368 (#4402) 2025-01-07 19:33:53 +08:00
file-icon feat: Added md.svg #345 (#2289) 2024-09-06 18:32:06 +08:00
llm Feat: Replace the logo of novita (#7287) 2025-04-24 21:20:36 +08:00
akshare.svg feat: Add component AkShare #1739 (#2390) 2024-09-12 17:58:05 +08:00
api.svg Theme switch support (#3568) 2024-12-10 11:42:04 +08:00
arxiv.svg
assistant.svg
baidu-fanyi.svg
baidu.svg
begin.svg feat: Add hint for operators, round to square, input variable, readable operator ID. #3056 (#3057) 2024-10-28 14:31:19 +08:00
bing.svg
cancel.svg
chat-app-cube.svg
chat-configuration-atom.svg
chat-star.svg
concentrator.svg feat: Add hint for operators, round to square, input variable, readable operator ID. #3056 (#3057) 2024-10-28 14:31:19 +08:00
crawler.svg feat: Replace crawler icon #2915 (#2916) 2024-10-21 14:28:30 +08:00
database.svg Web: Display the icon of the currently used storage. (#2504) 2024-09-20 09:49:16 +08:00
deepl.svg
delete.svg Theme switch support (#3568) 2024-12-10 11:42:04 +08:00
disable.svg
duck.svg
email.svg Email sending tool (#3837) 2024-12-04 11:21:17 +08:00
enable.svg
es.svg
exesql.svg feat: Add tip to loop of ExeSQL #1739 (#1983) 2024-08-16 18:27:02 +08:00
file-management.svg
github.svg
google-scholar.svg
google.svg
graph.svg
invoke-ai.svg feat: Add component Invoke #2908 (#3067) 2024-10-28 18:56:38 +08:00
jin10.svg Update jin10.svg (#4159) 2024-12-23 10:34:13 +08:00
keyword.svg feat: Add hint for operators, round to square, input variable, readable operator ID. #3056 (#3057) 2024-10-28 14:31:19 +08:00
knowledge-base.svg
knowledge-configration.svg
knowledge-dataset.svg
knowledge-testing.svg
langfuse.svg Feat: Add LangfuseCard component. #6155 (#6468) 2025-03-24 19:07:55 +08:00
login-avatars.svg
login-background.svg
login-star.svg
logo-with-text-white.svg Feat: Add logo-with-text-white.svg #3221 (#6588) 2025-03-27 12:28:17 +08:00
logout.svg
minio.svg
model-providers.svg
moon.svg
more-model.svg
more.svg
move.svg
mysql.svg
navigation-pointer.svg
next-login-bg.svg Feat: Replace next-login-bg.svg #3221 (#5046) 2025-02-17 19:33:34 +08:00
note.svg feat: Add a note node to the agent canvas #2767 (#2768) 2024-10-09 19:39:04 +08:00
nothing.svg
paper-clip.svg
password.svg
plus-circle-fill.svg feat: Add hint for operators, round to square, input variable, readable operator ID. #3056 (#3057) 2024-10-28 14:31:19 +08:00
plus.svg feat: Add hint for operators, round to square, input variable, readable operator ID. #3056 (#3057) 2024-10-28 14:31:19 +08:00
profile.svg
prompt.svg Theme switch support (#3568) 2024-12-10 11:42:04 +08:00
pubmed.svg
qweather.svg
redis.svg
refresh.svg
resize.svg feat: Add hint for operators, round to square, input variable, readable operator ID. #3056 (#3057) 2024-10-28 14:31:19 +08:00
run.svg
select-files-end.svg
select-files-start.svg
selected-files-collapse.svg
sso.svg Feat: Add frontend support for third-party login integration (#7553) 2025-05-14 12:19:28 +08:00
storage.svg Web: Display the icon of the currently used storage. (#2504) 2024-09-20 09:49:16 +08:00
switch.svg feat: Add hint for operators, round to square, input variable, readable operator ID. #3056 (#3057) 2024-10-28 14:31:19 +08:00
team.svg
template.svg Feat: Add Template operator #3556 (#3559) 2024-11-21 18:05:31 +08:00
translation.svg
tushare.svg feat: Add component TuShare #1739 (#2745) 2024-10-08 15:35:30 +08:00
wencai.svg feat: Add component AkShare #1739 (#2390) 2024-09-12 17:58:05 +08:00
wikipedia.svg
yahoo-finance.svg feat: Add component YahooFinance #1739 (#2561) 2024-09-24 16:46:41 +08:00