mirror of
https://github.com/gravitational/teleport.git
synced 2026-10-30 18:29:21 +08:00
feat: add samlMeta field with SAMLServiceProviderPresets to ResourceSpec (#39208)
* feat: SAMLServiceProviderPresets enum to define SAML app config profile * SAMLServiceProviderPresets to SamlServiceProviderPreset
This commit is contained in:
@@ -20,12 +20,13 @@ import { DiscoverEventResource } from 'teleport/services/userEvent';
|
||||
|
||||
import { ResourceKind } from '../Shared';
|
||||
|
||||
import { ResourceSpec } from './types';
|
||||
import { ResourceSpec, SamlServiceProviderPreset } from './types';
|
||||
|
||||
export const SAML_APPLICATIONS: ResourceSpec[] = [
|
||||
{
|
||||
name: 'SAML Application',
|
||||
kind: ResourceKind.SamlApplication,
|
||||
samlMeta: { preset: SamlServiceProviderPreset.Unspecified },
|
||||
keywords: 'saml sso application idp',
|
||||
icon: 'Application',
|
||||
event: DiscoverEventResource.SamlApplication,
|
||||
@@ -33,6 +34,7 @@ export const SAML_APPLICATIONS: ResourceSpec[] = [
|
||||
{
|
||||
name: 'Grafana',
|
||||
kind: ResourceKind.SamlApplication,
|
||||
samlMeta: { preset: SamlServiceProviderPreset.Grafana },
|
||||
keywords: 'saml sso application idp grafana',
|
||||
icon: 'Grafana',
|
||||
event: DiscoverEventResource.SamlApplication,
|
||||
|
||||
@@ -66,10 +66,19 @@ export enum KubeLocation {
|
||||
Aws,
|
||||
}
|
||||
|
||||
/** SamlServiceProviderPreset defines SAML service provider preset types.
|
||||
* Used to define custom or pre-defined configuration flow.
|
||||
*/
|
||||
export enum SamlServiceProviderPreset {
|
||||
Unspecified = 'unspecified',
|
||||
Grafana = 'grafana',
|
||||
}
|
||||
|
||||
export interface ResourceSpec {
|
||||
dbMeta?: { location: DatabaseLocation; engine: DatabaseEngine };
|
||||
nodeMeta?: { location: ServerLocation };
|
||||
kubeMeta?: { location: KubeLocation };
|
||||
samlMeta?: { preset: SamlServiceProviderPreset };
|
||||
name: string;
|
||||
popular?: boolean;
|
||||
kind: ResourceKind;
|
||||
|
||||
Reference in New Issue
Block a user