-
Notifications
You must be signed in to change notification settings - Fork 902
feat: create idp sync page skeleton #14543
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
Changes from 1 commit
b2c3e11
2de6bfc
8298346
a75ad85
492ca5f
b73ad32
6e39fcf
f2281e9
b83118f
2c2f677
1eedda8
3d1fcdb
2059be8
1523025
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,38 @@ import { useOrganizationSettings } from "../ManagementSettingsLayout"; | |
import { IdpSyncHelpTooltip } from "./IdpSyncHelpTooltip"; | ||
import IdpSyncPageView from "./IdpSyncPageView"; | ||
|
||
const mockOIDCConfig = { | ||
allow_signups: true, | ||
client_id: "test", | ||
client_secret: "test", | ||
client_key_file: "test", | ||
client_cert_file: "test", | ||
email_domain: [], | ||
issuer_url: "test", | ||
scopes: [], | ||
ignore_email_verified: true, | ||
username_field: "", | ||
name_field: "", | ||
email_field: "", | ||
auth_url_params: {}, | ||
ignore_user_info: true, | ||
organization_field: "", | ||
organization_mapping: {}, | ||
organization_assign_default: true, | ||
group_auto_create: false, | ||
group_regex_filter: "^Coder-.*$", | ||
group_allow_list: [], | ||
groups_field: "groups", | ||
group_mapping: { group1: "developers", group2: "admin", group3: "auditors" }, | ||
user_role_field: "roles", | ||
user_role_mapping: { role1: ["role1", "role2"] }, | ||
user_roles_default: [], | ||
sign_in_text: "", | ||
icon_url: "", | ||
signups_disabled_text: "string", | ||
skip_issuer_checks: true, | ||
}; | ||
|
||
export const IdpSyncPage: FC = () => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just calling this out because I don't see anything about this in the commented-out code: do we want to do a redirect if the user navigates to this page if I know we're using that property to define whether we show the page link in the side navbar, but is there anything stopping someone from navigating to the page directly? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Parkreiner I haven't addressed permissions yet because a permission hasn't been defined for this page. Btw, how do other pages handle this case when the user doesn't have the permissions? |
||
const queryClient = useQueryClient(); | ||
// const { custom_roles: isCustomRolesEnabled } = useFeatureVisibility(); | ||
|
@@ -77,7 +109,7 @@ export const IdpSyncPage: FC = () => { | |
</Stack> | ||
</Stack> | ||
|
||
<IdpSyncPageView roles={[]} /> | ||
<IdpSyncPageView oidcConfig={mockOIDCConfig} /> | ||
</> | ||
); | ||
}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know this is a mock value, but could I get more context on where this regex is used? Is it strictly server-controlled?
Wondering because the
.*$
at the end literally does nothing in this case except make the regex run slowerThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the data is readonly and for now I just took the value from Steven. Im still learning myself how this feature works.