github.com/hernad/nomad@v1.6.112/ui/app/routes/oidc-mock.js (about)

     1  /**
     2   * Copyright (c) HashiCorp, Inc.
     3   * SPDX-License-Identifier: MPL-2.0
     4   */
     5  
     6  import Route from '@ember/routing/route';
     7  
     8  export default class OidcMockRoute extends Route {
     9    // This route only exists for testing SSO/OIDC flow in development, backed by our mirage server.
    10    // This route won't load outside of a mirage environment, nor will the model hook here return anything meaningful.
    11    model() {
    12      return this.store.findAll('token');
    13    }
    14  }