07fc7f16cf
* 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
99 lines
1.7 KiB
JavaScript
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);
|