Skip to content

fix(oauth):add roles support for microsoft oauth #814

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AcceisStaff
Copy link

Feature: Role-Based Access Control for Microsoft Authentication

What’s New

  • Added role-based access control to Microsoft authentication.
    • You can now define:
      • roleGeneralAccess: required role to access the application
      • roleAdminAccess: required role to access admin features

UI/UX Improvements

  • Refactored the OAuth configuration page for improved clarity:
    • Separated each authentication method into distinct sections
    • Added new fields for Microsoft auth:
      • usernameClaim
      • roleGeneralAccess
      • roleAdminAccess

Let me know if any changes are needed!

Copy link
Owner

@stonith404 stonith404 left a comment

Choose a reason for hiding this comment

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

Thank you, that's a nice addition. I also like the added dividers!

Please see my comments above and also add the English translations to en-US.ts, because that's the base language.

.filter(
(config) =>
config.key.startsWith("oauth.") &&
![
Copy link
Owner

Choose a reason for hiding this comment

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

Please move the OIDC list into a variable.

].some((provider) => config.key.includes(provider)),
)
.map((configVariable) => (
<Group key={configVariable.key} position="apart">
Copy link
Owner

Choose a reason for hiding this comment

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

Please move the code for the configuration variables that contains the title, description and input into a separate component. Currently this code is there twice.

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.

3 participants