f38a50b6b2
* fetch auth methods when going to the auth route and pass them to the auth form component * add boolean editType for form-fields * look in the data hash in the serializer * remove renderInPlace for info-tooltips as it does something goofy with widths * add new fields for auth methods * fix console refresh command on routes that use lazyPaginatedQuery * add wrapped_token param that logs you in via the token backend and show other backends if your list contains supported ones * handle casing when looking up supported backends * change listingVisibility to match the new API * move wrapped_token up to the vault route level so it works from the app root
30 lines
651 B
JavaScript
30 lines
651 B
JavaScript
import ClusterRouteBase from './cluster-route-base';
|
|
import Ember from 'ember';
|
|
|
|
const { RSVP } = Ember;
|
|
|
|
export default ClusterRouteBase.extend({
|
|
beforeModel() {
|
|
return this.store.unloadAll('auth-method');
|
|
},
|
|
model() {
|
|
let cluster = this._super(...arguments);
|
|
return this.store
|
|
.findAll('auth-method', {
|
|
adapterOptions: {
|
|
unauthenticated: true,
|
|
},
|
|
})
|
|
.then(result => {
|
|
return RSVP.hash({
|
|
cluster,
|
|
methods: result,
|
|
});
|
|
});
|
|
},
|
|
resetController(controller) {
|
|
controller.set('wrappedToken', '');
|
|
controller.set('authMethod', '');
|
|
},
|
|
});
|