{{!
  Copyright (c) HashiCorp, Inc.
  SPDX-License-Identifier: MPL-2.0
~}}

{{page-title "Mock OIDC Test Page"}}

<section class="mock-sso-provider">
  <h1>OIDC Test route: {{this.auth_method}}</h1>
  <h2>(Mirage only)</h2>
  <div class="providers">
    {{#each this.model as |fakeAccount|}}
      <button type="button" class="button" {{on "click" (fn this.signIn fakeAccount)}}>
        Sign In as {{fakeAccount.name}}
      </button>
    {{/each}}
    <button type="button" class="button error" {{on "click" this.failToSignIn}}>
      Simulate Failure
    </button>
  </div>
</section>
{{outlet}}