-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
- Loading branch information
Showing
28 changed files
with
449 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import Ember from 'ember'; | ||
|
||
export default Ember.Controller.extend({ | ||
queryParams: [ | ||
{ | ||
wrappedToken: 'wrapped_token', | ||
}, | ||
], | ||
wrappedToken: '', | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
import Ember from 'ember'; | ||
import { supportedAuthBackends } from 'vault/helpers/supported-auth-backends'; | ||
|
||
export default Ember.Controller.extend({ | ||
queryParams: ['with'], | ||
with: Ember.computed(function() { | ||
return supportedAuthBackends()[0].type; | ||
}), | ||
|
||
vaultController: Ember.inject.controller('vault'), | ||
queryParams: [{ authMethod: 'with' }], | ||
wrappedToken: Ember.computed.alias('vaultController.wrappedToken'), | ||
authMethod: '', | ||
redirectTo: null, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,29 @@ | ||
export { default } from './cluster-route-base'; | ||
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', ''); | ||
}, | ||
}); |
Oops, something went wrong.