-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Add mock identity provider for serverless #170852
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
Merged
thomheymann
merged 31 commits into
elastic:main
from
thomheymann:serverless-role-selector
Nov 15, 2023
Merged
Changes from 18 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
13a3831
Add mock identity provider for serverless
thomheymann 5358334
Merge branch 'main' of https://github.com/elastic/kibana into serverl…
thomheymann bc21dd2
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine b48a2c8
[CI] Auto-commit changed files from 'node scripts/lint_ts_projects --…
kibanamachine 12cf10e
[CI] Auto-commit changed files from 'node scripts/generate codeowners'
kibanamachine 0fec2e0
Fix errors
thomheymann 22b9e23
Merge branch 'serverless-role-selector' of https://github.com/thomhey…
thomheymann 478cd79
Explicit exports
thomheymann e4f17ac
[CI] Auto-commit changed files from 'node scripts/lint_ts_projects --…
kibanamachine 4f99a74
Fix logout flow and login selector validation
thomheymann 19af2ef
Merge branch 'serverless-role-selector' of https://github.com/thomhey…
thomheymann 0e60429
Add user roles
thomheymann f863db3
Fix cyclic project reference
thomheymann 4882634
[CI] Auto-commit changed files from 'node scripts/lint_ts_projects --…
kibanamachine 022f61b
Fix unit tests
thomheymann f7ce3a1
Merge branch 'serverless-role-selector' of https://github.com/thomhey…
thomheymann b635222
Merge branch 'main' of https://github.com/elastic/kibana into serverl…
thomheymann a993ab5
Merge branch 'main' into serverless-role-selector
thomheymann ebbf87d
Add unit tests
thomheymann d8fd42e
Merge branch 'serverless-role-selector' of https://github.com/thomhey…
thomheymann 936d0fc
[CI] Auto-commit changed files from 'node scripts/lint_ts_projects --…
kibanamachine 3bf667b
Merge branch 'main' into serverless-role-selector
thomheymann e1958ae
Update packages/kbn-es/src/utils/docker.ts
thomheymann e55955d
Merge branch 'main' of https://github.com/elastic/kibana into serverl…
thomheymann 6324b49
Fix unit test
thomheymann 52bb13c
Merge branch 'main' into serverless-role-selector
thomheymann 59a49fb
Merge branch 'main' into serverless-role-selector
thomheymann 11eb3c9
Merge branch 'main' into serverless-role-selector
thomheymann d8b0b01
Merge branch 'main' into serverless-role-selector
thomheymann 9449096
Merge branch 'main' into serverless-role-selector
thomheymann cf5aac0
Merge branch 'main' into serverless-role-selector
dmlemeshko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| /* | ||
| * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
| * or more contributor license agreements. Licensed under the Elastic License | ||
| * 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
| * in compliance with, at your election, the Elastic License 2.0 or the Server | ||
| * Side Public License, v 1. | ||
| */ | ||
|
|
||
| import { resolve } from 'path'; | ||
|
|
||
| export const MOCK_IDP_PLUGIN_PATH = resolve(__dirname, '..'); | ||
| export const MOCK_IDP_METADATA_PATH = resolve(MOCK_IDP_PLUGIN_PATH, 'metadata.xml'); | ||
|
|
||
| export const MOCK_IDP_LOGIN_PATH = '/mock_idp/login'; | ||
| export const MOCK_IDP_LOGOUT_PATH = '/mock_idp/logout'; | ||
|
|
||
| export const MOCK_IDP_REALM_NAME = 'mock-idp'; | ||
| export const MOCK_IDP_ENTITY_ID = 'urn:mock-idp'; // Must match `entityID` in `metadata.xml` | ||
| export const MOCK_IDP_ROLE_MAPPING_NAME = 'mock-idp-mapping'; | ||
|
|
||
| export const MOCK_IDP_ATTRIBUTE_PRINCIPAL = 'http://saml.elastic-cloud.com/attributes/principal'; | ||
| export const MOCK_IDP_ATTRIBUTE_ROLES = 'http://saml.elastic-cloud.com/attributes/roles'; | ||
| export const MOCK_IDP_ATTRIBUTE_EMAIL = 'http://saml.elastic-cloud.com/attributes/email'; | ||
| export const MOCK_IDP_ATTRIBUTE_NAME = 'http://saml.elastic-cloud.com/attributes/name'; |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| /* | ||
| * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
| * or more contributor license agreements. Licensed under the Elastic License | ||
| * 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
| * in compliance with, at your election, the Elastic License 2.0 or the Server | ||
| * Side Public License, v 1. | ||
| */ | ||
|
|
||
| export { | ||
| MOCK_IDP_PLUGIN_PATH, | ||
| MOCK_IDP_METADATA_PATH, | ||
| MOCK_IDP_LOGIN_PATH, | ||
| MOCK_IDP_LOGOUT_PATH, | ||
| MOCK_IDP_REALM_NAME, | ||
| MOCK_IDP_ENTITY_ID, | ||
| MOCK_IDP_ROLE_MAPPING_NAME, | ||
| MOCK_IDP_ATTRIBUTE_PRINCIPAL, | ||
| MOCK_IDP_ATTRIBUTE_ROLES, | ||
| MOCK_IDP_ATTRIBUTE_EMAIL, | ||
| MOCK_IDP_ATTRIBUTE_NAME, | ||
| } from './constants'; | ||
| export { | ||
| createMockIdpMetadata, | ||
| createSAMLResponse, | ||
| ensureSAMLRoleMapping, | ||
| parseSAMLAuthnRequest, | ||
| } from './utils'; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.