forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly handle password change for users authenticated with provider…
… other than `basic`. (elastic#55206)
- Loading branch information
Showing
33 changed files
with
284 additions
and
255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ import { AuthenticatedUser } from '../../common/model'; | |
import { AccountManagementPage } from './account_management_page'; | ||
|
||
import { coreMock } from 'src/core/public/mocks'; | ||
import { mockAuthenticatedUser } from '../../common/model/authenticated_user.mock'; | ||
import { securityMock } from '../mocks'; | ||
import { userAPIClientMock } from '../management/users/index.mock'; | ||
|
||
|
@@ -19,11 +20,10 @@ interface Options { | |
realm?: string; | ||
} | ||
const createUser = ({ withFullName = true, withEmail = true, realm = 'native' }: Options = {}) => { | ||
return { | ||
return mockAuthenticatedUser({ | ||
full_name: withFullName ? 'Casey Smith' : '', | ||
username: 'csmith', | ||
email: withEmail ? '[email protected]' : '', | ||
enabled: true, | ||
roles: [], | ||
authentication_realm: { | ||
type: realm, | ||
|
@@ -33,7 +33,7 @@ const createUser = ({ withFullName = true, withEmail = true, realm = 'native' }: | |
type: realm, | ||
name: realm, | ||
}, | ||
}; | ||
}); | ||
}; | ||
|
||
function getSecuritySetupMock({ currentUser }: { currentUser: AuthenticatedUser }) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.