Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: init commit for security feature #75

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

chore: init commit for security feature #75

wants to merge 6 commits into from

Conversation

medcl
Copy link
Member

@medcl medcl commented Feb 19, 2025

What does this PR do

For your easy testing purpose, if you are listen on localhost:9000 by default, use this config :

security:
  enabled: true
  authc:
    realms:
      oauth:
        google:
          enabled: true
          client_id: "646402462230-sms3aq4teo05uot33on8mgpke6dbjcef.apps.googleusercontent.com"
          client_secret: "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"
          authorize_url: "https://accounts.google.com/o/oauth2/v2/auth"
          token_url: "https://oauth2.googleapis.com/token"
          redirect_url: "http://localhost:9000/sso/callback/google"
          success_page: "/auth/sso_success"
          failed_page: "/#/user/sso/failed"
          scopes: [ "openid","email","profile"]
        github:
          enabled: true
          client_id: "Ov23liLzRCT8n2cRSV3Y"
          client_secret: "0ff3cd64a0b1b61aab46ade56fed3c415ff5a44d"
          authorize_url: "https://github.com/login/oauth/authorize"
          token_url: "https://github.com/login/oauth/access_token"
          redirect_url: ""
          success_page: "/auth/sso_success"
          failed_page: "/#/user/sso/failed"
          scopes: []

Rationale for this change

Standards checklist

  • The PR title is descriptive
  • The commit messages are semantic
  • Necessary tests are added
  • Updated the release notes
  • Necessary documents have been added if this is a new feature
  • Performance tests checked, no obvious performance degradation

@medcl medcl marked this pull request as draft February 19, 2025 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant