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 feat: add arxiv operator #918 (#1683) 2024-07-24 11:36:23 +08:00
assistant.svg feat: render message reference and add avatar to MessageItem (#73) 2024-02-26 18:38:54 +08:00
baidu-fanyi.svg feat: Add component BaiduFanyi #1739 (#1874) 2024-08-08 17:52:45 +08:00
baidu.svg feat: add duckduckgo icon #918 (#1391) 2024-07-05 16:59:04 +08:00
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 feat: Add bing and google operator #918 (#1745) 2024-07-30 15:06:29 +08:00
cancel.svg feat: add batch operations for document list (#302) 2024-04-10 17:17:41 +08:00
chat-app-cube.svg feat: create a chat assistant and extract SimilaritySlider (#67) 2024-02-20 18:10:20 +08:00
chat-configuration-atom.svg feat: add temperature and top-p to ModelSetting and add ChatConfigurationModal and bind backend data to KnowledgeCard (#65) 2024-02-19 19:16:23 +08:00
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 feat: Add component DeepL #1739 (#1870) 2024-08-08 15:08:31 +08:00
delete.svg Theme switch support (#3568) 2024-12-10 11:42:04 +08:00
disable.svg feat: add batch operations for document list (#302) 2024-04-10 17:17:41 +08:00
duck.svg feat: add duckduckgo icon #918 (#1391) 2024-07-05 16:59:04 +08:00
email.svg Email sending tool (#3837) 2024-12-04 11:21:17 +08:00
enable.svg feat: support Xinference (#319) 2024-04-11 18:17:45 +08:00
es.svg feat: display the version and backend service status on the page (#848) 2024-05-20 18:28:36 +08:00
exesql.svg feat: Add tip to loop of ExeSQL #1739 (#1983) 2024-08-16 18:27:02 +08:00
file-management.svg
github.svg feat: Add component GitHub #1739 (#1871) 2024-08-08 16:03:21 +08:00
google-scholar.svg feat: Add GoogleScholar #918 (#1818) 2024-08-06 16:03:16 +08:00
google.svg feat: Add bing and google operator #918 (#1745) 2024-07-30 15:06:29 +08:00
graph.svg feat: replace the graph icon in the header #918 (#1376) 2024-07-04 16:31:34 +08:00
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 feat: replace dataset icon (#307) 2024-04-11 08:16:34 +08:00
knowledge-dataset.svg feat: replace dataset icon (#307) 2024-04-11 08:16:34 +08:00
knowledge-testing.svg feat: replace dataset icon (#307) 2024-04-11 08:16:34 +08:00
langfuse.svg Feat: Add LangfuseCard component. #6155 (#6468) 2025-03-24 19:07:55 +08:00
login-avatars.svg feat: add background image to login page and alter tooltip of base_url and add llm type to Added models List (#173) 2024-03-29 16:15:12 +08:00
login-background.svg feat: add background image to login page and alter tooltip of base_url and add llm type to Added models List (#173) 2024-03-29 16:15:12 +08:00
login-star.svg feat: add background image to login page and alter tooltip of base_url and add llm type to Added models List (#173) 2024-03-29 16:15:12 +08:00
logo-with-text-white.svg Feat: Add logo-with-text-white.svg #3221 (#6588) 2025-03-27 12:28:17 +08:00
logout.svg feat: generate select options for SystemModelSettingModal grouped by type and add llm icon and add upgrade button to UserSettingTeam and replace the icon in the sidebar of the user settings page (#128) 2024-03-18 16:45:01 +08:00
minio.svg feat: display the version and backend service status on the page (#848) 2024-05-20 18:28:36 +08:00
model-providers.svg feat: generate select options for SystemModelSettingModal grouped by type and add llm icon and add upgrade button to UserSettingTeam and replace the icon in the sidebar of the user settings page (#128) 2024-03-18 16:45:01 +08:00
moon.svg
more-model.svg feat: add SystemModelSettingModal (#127) 2024-03-15 19:35:59 +08:00
more.svg
move.svg feat: Move files in file manager #1826 (#1837) 2024-08-07 10:12:11 +08:00
mysql.svg feat: display the version and backend service status on the page (#848) 2024-05-20 18:28:36 +08:00
navigation-pointer.svg feat: add SelectFiles and add KnowledgeTesting (#60) 2024-02-08 11:58:43 +08:00
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 feat: create blank canvas #918 (#1356) 2024-07-03 17:06:48 +08:00
paper-clip.svg feat: Add MessageInput to the external chat page #1880 (#1963) 2024-08-15 16:10:21 +08:00
password.svg feat: generate select options for SystemModelSettingModal grouped by type and add llm icon and add upgrade button to UserSettingTeam and replace the icon in the sidebar of the user settings page (#128) 2024-03-18 16:45:01 +08:00
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 feat: generate select options for SystemModelSettingModal grouped by type and add llm icon and add upgrade button to UserSettingTeam and replace the icon in the sidebar of the user settings page (#128) 2024-03-18 16:45:01 +08:00
prompt.svg Theme switch support (#3568) 2024-12-10 11:42:04 +08:00
pubmed.svg feat: add PubMed operator #918 (#1589) 2024-07-18 15:45:34 +08:00
qweather.svg feat: Add component QWeather #1739 (#1881) 2024-08-09 13:40:13 +08:00
redis.svg feat: display the version and backend service status on the page (#848) 2024-05-20 18:28:36 +08:00
refresh.svg feat: remove KnowledgeSearching and add knowledge configuration page and add a run button to the document (#64) 2024-02-18 18:18:20 +08:00
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 feat: add batch operations for document list (#302) 2024-04-10 17:17:41 +08:00
select-files-end.svg feat: save the selected parser to the backend on the upload file page and upload document (#54) 2024-02-05 12:01:27 +08:00
select-files-start.svg feat: save the selected parser to the backend on the upload file page and upload document (#54) 2024-02-05 12:01:27 +08:00
selected-files-collapse.svg feat: add SelectFiles and add KnowledgeTesting (#60) 2024-02-08 11:58:43 +08:00
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 feat: generate select options for SystemModelSettingModal grouped by type and add llm icon and add upgrade button to UserSettingTeam and replace the icon in the sidebar of the user settings page (#128) 2024-03-18 16:45:01 +08:00
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 feat: add Wikipedia operator #918 (#1516) 2024-07-15 17:48:01 +08:00
yahoo-finance.svg feat: Add component YahooFinance #1739 (#2561) 2024-09-24 16:46:41 +08:00