1f6329b1c2
* Add new route w/ controller oidc-provider * oidc-provider controller has params, template has success message (temporary), model requests correct endpoint * Move oidc-provider route to under identity * Do not redirect after poll if on oidc-provider page * WIP provider -- beforeModel handles prompt, logout, redirect * Auth service fetch method rejects with fetch response if status >= 300 * New component OidcConsentBlock * Fix redirect to/from auth with cluster name, show error and consent form if applicable * Show error and consent form on template * Add component test, update docs * Test for oidc-consent-block component * Add changelog * fix tests * Add authorize to end of router path * Remove unused tests * Update changelog with feature name * Add descriptions for OidcConsentBlock component * glimmerize token-expire-warning and don't override yield if on oidc-provider route * remove text on token-expire-warning * Fix null transition.to on cluster redirect * Hide nav links if oidc-provider route
15 lines
390 B
JavaScript
15 lines
390 B
JavaScript
import Component from '@glimmer/component';
|
|
import { inject as service } from '@ember/service';
|
|
|
|
export default class TokenExpireWarning extends Component {
|
|
@service router;
|
|
|
|
get showWarning() {
|
|
let currentRoute = this.router.currentRouteName;
|
|
if ('vault.cluster.identity.oidc-provider' === currentRoute) {
|
|
return false;
|
|
}
|
|
return !!this.args.expirationDate;
|
|
}
|
|
}
|