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

feat: support additional OIDC parameters #1567

Merged
merged 2 commits into from
Oct 10, 2023

Conversation

horus
Copy link
Contributor

@horus horus commented Aug 9, 2023

This commit allows some optional parameters to be passed along with the authentication request, including:

  • Client secret: currently the dashboard has no support for the "confidential" type
  • Additional scopes: for fine-grained access control

...could be a potential solution for the issue reported here.

Thank you!

@netlify
Copy link

netlify bot commented Aug 9, 2023

Deploy Preview for tidb-dashboard ready!

Name Link
🔨 Latest commit 4f7eebd
🔍 Latest deploy log https://app.netlify.com/sites/tidb-dashboard/deploys/6523c0e22139c600092364a3
😎 Deploy Preview https://deploy-preview-1567--tidb-dashboard.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@CLAassistant
Copy link

CLAassistant commented Aug 9, 2023

CLA assistant check
All committers have signed the CLA.

@netlify
Copy link

netlify bot commented Aug 9, 2023

Deploy Preview for tidb-dashboard-for-dbaas failed.

Name Link
🔨 Latest commit 5748baa
🔍 Latest deploy log https://app.netlify.com/sites/tidb-dashboard-for-dbaas/deploys/64d2ff731fedf500083a82a3

@ti-chi-bot ti-chi-bot bot requested a review from Renkai August 9, 2023 02:52
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Aug 9, 2023

Welcome @horus! It looks like this is your first PR to pingcap/tidb-dashboard 🎉

@ti-chi-bot ti-chi-bot bot added the size/M label Aug 9, 2023
@codecov
Copy link

codecov bot commented Aug 9, 2023

Codecov Report

Merging #1567 (4f7eebd) into master (38109d4) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1567      +/-   ##
==========================================
- Coverage   24.70%   24.70%   -0.01%     
==========================================
  Files         169      169              
  Lines       15218    15224       +6     
==========================================
+ Hits         3760     3761       +1     
- Misses      11176    11181       +5     
  Partials      282      282              
Flag Coverage Δ
backend_integration 9.31% <0.00%> (-0.01%) ⬇️
backend_ut 26.42% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 38109d4...4f7eebd. Read the comment docs.

@baurine
Copy link
Collaborator

baurine commented Aug 10, 2023

hi @horus , thanks for your contribution! It will take some time to review and test.

@baurine
Copy link
Collaborator

baurine commented Oct 9, 2023

hi @horus , can you sign the CLA? else the CI always fail.

@ti-chi-bot ti-chi-bot bot added the lgtm label Oct 10, 2023
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Oct 10, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: baurine

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Oct 10, 2023

[LGTM Timeline notifier]

Timeline:

  • 2023-10-10 09:37:27.729556742 +0000 UTC m=+1131445.316666883: ☑️ agreed by baurine.

@ti-chi-bot ti-chi-bot bot added the approved label Oct 10, 2023
Comment on lines +265 to +268
<Input
disabled={!isWriteable}
style={DEFAULT_FORM_ITEM_STYLE}
/>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be showed as password, not plain text. I will help refine it later.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be showed as password, not plain text. I will help refine it later.

Yes, you are correct. Thanks for pointing it out.

@baurine baurine merged commit e1ded02 into pingcap:master Oct 10, 2023
12 of 16 checks passed
@horus
Copy link
Contributor Author

horus commented Oct 11, 2023

@baurine,

Just signed.
Again, thank you very much for your review and help.

baurine added a commit that referenced this pull request Nov 8, 2023
Co-authored-by: Sparkle <1284531+baurine@users.noreply.github.com>
baurine added a commit that referenced this pull request Nov 8, 2023
* Revert "Release v2023.11.02.1 (#1609)"

This reverts commit 865955c.

* feat(statements): show `plan_cache_hits` field (#1598)

* tweak: make the goroutine profile more verbose (#1450)

* feat: support additional OIDC parameters (#1567)

Co-authored-by: Sparkle <1284531+baurine@users.noreply.github.com>

* chore(sso): improve client secret security (#1599)

* chore(topsql): adjust TopSQL for clinic (#1601)

* chore(sso): support customize OIDC scopes (#1602)

* chore(clinic): support redirect back after login for clinic (#1603)

* chore(topsql): remove username for clinic (#1605)

* chore(topsql): show cluster name and disable auto-refresh for clinic (#1606)

* profiling: Add the support for TiKV heap profiling (#1600)

* increase the upper limit of testing time (#1526)

* fix cannot login when use ipv6 address (#1516)

* tweak: explicitly set session max_execution_time to 600s (#1608)

* profiling: reuse convertDotToSVG to generate tikv heap profile svg (#1610)

* update release version to 2023.11.08.1

---------

Co-authored-by: Yexiang Zhang <mornyx.z@gmail.com>
Co-authored-by: horus <horus.li@gmail.com>
Co-authored-by: Connor <zbk602423539@gmail.com>
Co-authored-by: nexustar <inexustar@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants