Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Type
Enhancement, Documentation
Description
Changes walkthrough 📝
17 files
Admin.vue
Add Oauth2 settings tab in Admin view
frontend/src/views/Admin.vue
UserOauth2Settings.vue
UserOauth2Settings.vue
Create UserOauth2Settings component for Oauth2 management
frontend/src/views/admin/UserOauth2Settings.vue
UserLogin.vue
Add Oauth2 login functionality in UserLogin view
frontend/src/views/user/UserLogin.vue
UserOauth2Callback.vue
Create UserOauth2Callback component for Oauth2 login
frontend/src/views/user/UserOauth2Callback.vue
index.ts
Add common mail domains constant
frontend/src/constant/index.ts
index.ts
Add UserOauth2Settings type definition
frontend/src/models/index.ts
UserOauth2Settings
type definitionindex.ts
Add Oauth2 settings routes in admin API
worker/src/admin_api/index.ts
oauth2_settings.ts
Create handlers for Oauth2 settings in admin API
worker/src/admin_api/oauth2_settings.ts
constants.ts
Add Oauth2 settings key constant
worker/src/constants.ts
index.ts
Add UserOauth2Settings type definition
worker/src/models/index.ts
UserOauth2Settings
type definitionindex.ts
Add Oauth2 login and callback routes in user API
worker/src/user_api/index.ts
oauth2.ts
Create handlers for Oauth2 login and callback
worker/src/user_api/oauth2.ts
settings.ts
Update open settings with Oauth2 client IDs
worker/src/user_api/settings.ts
utils.ts
Enhance getJsonSetting utility with generics
worker/src/utils.ts
getJsonSetting
utility function to support generic typesworker.ts
Allow Oauth2 routes without authentication
worker/src/worker.ts
index.js
Add route for Oauth2 callback
frontend/src/router/index.js
index.js
Add state management for Oauth2 session
frontend/src/store/index.js
3 files
zh.ts
Update sidebar with Oauth2 documentation link
vitepress-docs/docs/.vitepress/zh.ts
CHANGELOG.md
Update changelog with Oauth2 login feature
CHANGELOG.md
user-oauth2.md
Add documentation for Oauth2 third-party login
vitepress-docs/docs/zh/guide/feature/user-oauth2.md