open-vault/ui/app/helpers/mountable-auth-methods.js
Matthew Irish 07fc7f16cf
UI - jwt auth config model (#6410)
* have jwt auth config generated from OpenAPI response

* support for viewing and enabling an 'oidc' auth type

* finish oidc config and clean up auth config form
2019-03-14 16:01:56 -05:00

99 lines
1.7 KiB
JavaScript

import { helper as buildHelper } from '@ember/component/helper';
const MOUNTABLE_AUTH_METHODS = [
{
displayName: 'AliCloud',
value: 'alicloud',
type: 'alicloud',
category: 'cloud',
},
{
displayName: 'AppRole',
value: 'approle',
type: 'approle',
category: 'generic',
},
{
displayName: 'AWS',
value: 'aws',
type: 'aws',
category: 'cloud',
},
{
displayName: 'Azure',
value: 'azure',
type: 'azure',
category: 'cloud',
},
{
displayName: 'Google Cloud',
value: 'gcp',
type: 'gcp',
category: 'cloud',
},
{
displayName: 'GitHub',
value: 'github',
type: 'github',
category: 'cloud',
},
{
displayName: 'JWT',
value: 'jwt',
type: 'jwt',
glyph: 'auth',
category: 'generic',
},
{
displayName: 'OIDC',
value: 'oidc',
type: 'oidc',
glyph: 'auth',
category: 'generic',
},
{
displayName: 'Kubernetes',
value: 'kubernetes',
type: 'kubernetes',
category: 'infra',
},
{
displayName: 'LDAP',
value: 'ldap',
type: 'ldap',
glyph: 'auth',
category: 'infra',
},
{
displayName: 'Okta',
value: 'okta',
type: 'okta',
category: 'infra',
},
{
displayName: 'RADIUS',
value: 'radius',
type: 'radius',
glyph: 'auth',
category: 'infra',
},
{
displayName: 'TLS Certificates',
value: 'cert',
type: 'cert',
category: 'generic',
},
{
displayName: 'Username & Password',
value: 'userpass',
type: 'userpass',
category: 'generic',
},
];
export function methods() {
return MOUNTABLE_AUTH_METHODS.slice();
}
export default buildHelper(methods);