open-vault/ui/app/helpers/mountable-auth-methods.js

110 lines
1.9 KiB
JavaScript
Raw Normal View History

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import { helper as buildHelper } from '@ember/component/helper';
2018-04-03 14:16:57 +00:00
const MOUNTABLE_AUTH_METHODS = [
{
displayName: 'AliCloud',
value: 'alicloud',
type: 'alicloud',
category: 'cloud',
},
2018-04-03 14:16:57 +00:00
{
displayName: 'AppRole',
value: 'approle',
type: 'approle',
2018-08-28 05:03:55 +00:00
category: 'generic',
2018-04-03 14:16:57 +00:00
},
{
displayName: 'AWS',
value: 'aws',
type: 'aws',
2018-08-28 05:03:55 +00:00
category: 'cloud',
2022-01-10 17:08:05 +00:00
glyph: 'aws-color',
2018-04-03 14:16:57 +00:00
},
{
displayName: 'Azure',
value: 'azure',
type: 'azure',
2018-08-28 05:03:55 +00:00
category: 'cloud',
2022-01-10 17:08:05 +00:00
glyph: 'azure-color',
},
2018-04-03 14:16:57 +00:00
{
displayName: 'Google Cloud',
value: 'gcp',
type: 'gcp',
2018-08-28 05:03:55 +00:00
category: 'cloud',
2022-01-10 17:08:05 +00:00
glyph: 'gcp-color',
2018-04-03 14:16:57 +00:00
},
{
displayName: 'GitHub',
value: 'github',
type: 'github',
2018-08-28 05:03:55 +00:00
category: 'cloud',
2022-01-10 17:08:05 +00:00
glyph: 'github-color',
2018-04-03 14:16:57 +00:00
},
{
displayName: 'JWT',
value: 'jwt',
type: 'jwt',
2018-08-28 05:03:55 +00:00
glyph: 'auth',
category: 'generic',
},
{
displayName: 'OIDC',
value: 'oidc',
type: 'oidc',
glyph: 'auth',
category: 'generic',
},
{
displayName: 'Kubernetes',
value: 'kubernetes',
type: 'kubernetes',
2018-08-28 05:03:55 +00:00
category: 'infra',
2022-01-10 17:08:05 +00:00
glyph: 'kubernetes-color',
},
2018-04-03 14:16:57 +00:00
{
displayName: 'LDAP',
value: 'ldap',
type: 'ldap',
2018-08-28 05:03:55 +00:00
glyph: 'auth',
category: 'infra',
2018-04-03 14:16:57 +00:00
},
{
displayName: 'Okta',
value: 'okta',
type: 'okta',
2018-08-28 05:03:55 +00:00
category: 'infra',
2022-01-10 17:08:05 +00:00
glyph: 'okta-color',
2018-04-03 14:16:57 +00:00
},
{
displayName: 'RADIUS',
value: 'radius',
type: 'radius',
2018-08-28 05:03:55 +00:00
glyph: 'auth',
category: 'infra',
2018-04-03 14:16:57 +00:00
},
{
displayName: 'TLS Certificates',
value: 'cert',
type: 'cert',
2018-08-28 05:03:55 +00:00
category: 'generic',
2018-04-03 14:16:57 +00:00
},
{
displayName: 'Username & Password',
value: 'userpass',
type: 'userpass',
2018-08-28 05:03:55 +00:00
category: 'generic',
2018-04-03 14:16:57 +00:00
},
];
export function methods() {
return MOUNTABLE_AUTH_METHODS.slice();
2018-04-03 14:16:57 +00:00
}
export default buildHelper(methods);