2018-09-25 16:28:26 +00:00
|
|
|
import { helper as buildHelper } from '@ember/component/helper';
|
2018-04-03 14:16:57 +00:00
|
|
|
|
|
|
|
const MOUNTABLE_AUTH_METHODS = [
|
2018-09-05 16:21:29 +00:00
|
|
|
{
|
|
|
|
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
|
|
|
},
|
2018-04-09 19:44:53 +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-09 19:44:53 +00:00
|
|
|
},
|
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
|
|
|
},
|
2018-07-24 22:35:31 +00:00
|
|
|
{
|
2019-03-14 21:01:56 +00:00
|
|
|
displayName: 'JWT',
|
2018-07-24 22:35:31 +00:00
|
|
|
value: 'jwt',
|
|
|
|
type: 'jwt',
|
2018-08-28 05:03:55 +00:00
|
|
|
glyph: 'auth',
|
|
|
|
category: 'generic',
|
2018-07-24 22:35:31 +00:00
|
|
|
},
|
2019-03-14 21:01:56 +00:00
|
|
|
{
|
|
|
|
displayName: 'OIDC',
|
|
|
|
value: 'oidc',
|
|
|
|
type: 'oidc',
|
|
|
|
glyph: 'auth',
|
|
|
|
category: 'generic',
|
|
|
|
},
|
2018-07-24 22:35:31 +00:00
|
|
|
{
|
|
|
|
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-07-24 22:35:31 +00:00
|
|
|
},
|
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() {
|
2018-09-05 16:21:29 +00:00
|
|
|
return MOUNTABLE_AUTH_METHODS.slice();
|
2018-04-03 14:16:57 +00:00
|
|
|
}
|
|
|
|
|
2018-09-25 16:28:26 +00:00
|
|
|
export default buildHelper(methods);
|