2018-04-03 14:16:57 +00:00
|
|
|
import Ember from 'ember';
|
|
|
|
|
|
|
|
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',
|
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',
|
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',
|
2018-04-03 14:16:57 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'GitHub',
|
|
|
|
value: 'github',
|
|
|
|
type: 'github',
|
2018-08-28 05:03:55 +00:00
|
|
|
category: 'cloud',
|
2018-04-03 14:16:57 +00:00
|
|
|
},
|
2018-07-24 22:35:31 +00:00
|
|
|
{
|
|
|
|
displayName: 'JWT/OIDC',
|
|
|
|
value: 'jwt',
|
|
|
|
type: 'jwt',
|
2018-08-28 05:03:55 +00:00
|
|
|
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',
|
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',
|
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
|
|
|
}
|
|
|
|
|
|
|
|
export default Ember.Helper.helper(methods);
|