mirror of
https://github.com/status-im/consul.git
synced 2025-02-04 09:55:49 +00:00
1507dd8ab3
* Create mock-api endpoints for auth-methods * Implement auth-method endpoints and model with tests * Create route and tab for auth-methods * Create auth-method list and type components with styles * Add JWT and OIDC svg logos to codebase * Add brand translations * Add SearchBar to Auth Methods * Add acceptance test for Auth Methods UI * Skip auth method repo test * Changes from review notes * Fixup auth-method modela and mock-data * Update SearhBar with rebased changes * Add filterBy source and sortBy max token ttl * Update to SortBy MethodName * Update UI acceptance tests * Update mock data DisplayNames * Skip repo test * Fix to breaking serializer test * Implement auth-method endpoints and model with tests * Add acceptance test for Auth Methods UI * Update SearhBar with rebased changes * Add filterBy source and sortBy max token ttl * Update to SortBy MethodName * Update UI acceptance tests * Update mock data DisplayNames * Fix to breaking serializer test * Update class for search * Add auth-methods link to sidebar * Fixup PR review notes * Fixup review notes * Only show OIDC filter with enterprise * Update conditionals for MaxTokenTTL & TokenLocality * Refactor
27 lines
681 B
JavaScript
27 lines
681 B
JavaScript
import RepositoryService from 'consul-ui/services/repository';
|
|
import statusFactory from 'consul-ui/utils/acls-status';
|
|
import isValidServerErrorFactory from 'consul-ui/utils/http/acl/is-valid-server-error';
|
|
import { PRIMARY_KEY, SLUG_KEY } from 'consul-ui/models/auth-method';
|
|
|
|
const isValidServerError = isValidServerErrorFactory();
|
|
const status = statusFactory(isValidServerError, Promise);
|
|
const MODEL_NAME = 'auth-method';
|
|
|
|
export default class AuthMethodService extends RepositoryService {
|
|
getModelName() {
|
|
return MODEL_NAME;
|
|
}
|
|
|
|
getPrimaryKey() {
|
|
return PRIMARY_KEY;
|
|
}
|
|
|
|
getSlugKey() {
|
|
return SLUG_KEY;
|
|
}
|
|
|
|
status(obj) {
|
|
return status(obj);
|
|
}
|
|
}
|