Skip to content

Commit

Permalink
Merge branch 'main' into password-strenght-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
derek-ho authored Apr 12, 2024
2 parents 72a63c0 + 8f0a52d commit 314ee80
Show file tree
Hide file tree
Showing 16 changed files with 527 additions and 52 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @cliu123 @cwperks @DarshitChanpura @davidlago @derek-ho @peternied @RyanL1997 @scrawfor99
* @cliu123 @cwperks @DarshitChanpura @derek-ho @peternied @RyanL1997 @scrawfor99
2 changes: 1 addition & 1 deletion MAINTAINERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ This document contains a list of maintainers in this repo. See [opensearch-proje
| ---------------- | ----------------------------------------------------- | ----------- |
| Chang Liu | [cliu123](https://github.com/cliu123) | Amazon |
| Darshit Chanpura | [DarshitChanpura](https://github.com/DarshitChanpura) | Amazon |
| Dave Lago | [davidlago](https://github.com/davidlago) | Amazon |
| Peter Nied | [peternied](https://github.com/peternied) | Amazon |
| Craig Perkins | [cwperks](https://github.com/cwperks) | Amazon |
| Ryan Liang | [RyanL1997](https://github.com/RyanL1997) | Amazon |
Expand All @@ -22,3 +21,4 @@ This document contains a list of maintainers in this repo. See [opensearch-proje
| Yan Zeng | [zengyan-amazon](https://github.com/zengyan-amazon) | Amazon |
| Bandini Bhopi | [bandinib-amzn](https://github.com/bandinib-amzn) | Amazon |
| Tianle Huang | [tianleh](https://github.com/tianleh) | Amazon |
| Dave Lago | [davidlago](https://github.com/davidlago) | Contributor |
1 change: 1 addition & 0 deletions common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export const OPENID_AUTH_LOGIN_WITH_FRAGMENT = '/auth/openid/captureUrlFragment'
export const SAML_AUTH_LOGIN = '/auth/saml/login';
export const SAML_AUTH_LOGIN_WITH_FRAGMENT = '/auth/saml/captureUrlFragment';
export const ANONYMOUS_AUTH_LOGIN = '/auth/anonymous';
export const AUTH_TYPE_PARAM = 'auth_type';

export const OPENID_AUTH_LOGOUT = '/auth/openid/logout';
export const SAML_AUTH_LOGOUT = '/auth/saml/logout';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ export function ConfigureTab1(props: AppDependencies) {
<EuiPageContentHeader>
<EuiPageContentHeaderSection>
<EuiTitle size="l">
<h3>Multi-tenancy</h3>
<h3>Dashboards multi-tenancy</h3>
</EuiTitle>
<EuiHorizontalRule />

Expand Down Expand Up @@ -360,15 +360,15 @@ export function ConfigureTab1(props: AppDependencies) {
<EuiPageContentHeader>
<EuiPageContentHeaderSection>
<EuiTitle size="l">
<h3>Tenants</h3>
<h3>Dashboards tenants</h3>
</EuiTitle>
<EuiHorizontalRule />
<EuiDescribedFormGroup
title={<h4>Global Tenant</h4>}
description={
<p4>
{' '}
Global tenant is shared amaong all Dashboards users and cannot be disabled.{' '}
Global tenant is shared among all Dashboards users and cannot be disabled.{' '}
</p4>
}
className="described-form-group2"
Expand Down Expand Up @@ -407,7 +407,7 @@ export function ConfigureTab1(props: AppDependencies) {
<EuiPageContentHeader>
<EuiPageContentHeaderSection>
<EuiTitle size="l">
<h3>Default tenant</h3>
<h3>Dashboards default tenant</h3>
</EuiTitle>
<EuiHorizontalRule />
<EuiDescribedFormGroup
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ export function ManageTab(props: AppDependencies) {
<EuiPageContentHeaderSection>
<EuiTitle size="s">
<h3>
Tenants
Dashboards tenants
<span className="panel-header-count">
{' '}
({Query.execute(query || '', tenantData).length})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export function TenantList(props: TenantListProps) {
<>
<EuiPageHeader>
<EuiTitle size="l">
<h1>Multi-tenancy</h1>
<h1>Dashboards multi-tenancy</h1>
</EuiTitle>
</EuiPageHeader>
<EuiText size="s" color="subdued" grow={true} textAlign={'left'}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ exports[`Tenant list Action menu click Duplicate click 1`] = `
size="s"
>
<h3>
Tenants
Dashboards tenants
<span
className="panel-header-count"
>
Expand Down Expand Up @@ -198,7 +198,7 @@ exports[`Tenant list Action menu click Edit click 1`] = `
size="s"
>
<h3>
Tenants
Dashboards tenants
<span
className="panel-header-count"
>
Expand Down
14 changes: 7 additions & 7 deletions public/apps/login/login-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -231,14 +231,14 @@ export function LoginPage(props: LoginPageDeps) {
</EuiFormRow>
);

if (authOpts.length > 1) {
if (props.config.auth.anonymous_auth_enabled) {
const anonymousConfig = props.config.ui[AuthType.ANONYMOUS].login;
formBody.push(
renderLoginButton(AuthType.ANONYMOUS, ANONYMOUS_AUTH_LOGIN, anonymousConfig)
);
}
if (props.config.auth.anonymous_auth_enabled) {
const anonymousConfig = props.config.ui[AuthType.ANONYMOUS].login;
formBody.push(
renderLoginButton(AuthType.ANONYMOUS, ANONYMOUS_AUTH_LOGIN, anonymousConfig)
);
}

if (authOpts.length > 1) {
formBody.push(<EuiSpacer size="xs" />);
formBody.push(<EuiHorizontalRule size="full" margin="xl" />);
formBody.push(<EuiSpacer size="xs" />);
Expand Down
Loading

0 comments on commit 314ee80

Please sign in to comment.