;
11 |
12 | async $onInit() {
13 | const accounts = await this.adapter.findAll();
14 |
15 | if (!accounts.length) {
16 | await this.adapter.create(
17 | deserialize(
18 | {
19 | email: "test@test.com",
20 | emailVerified: true
21 | },
22 | {useAlias: false}
23 | )
24 | );
25 | }
26 | }
27 |
28 | findAccount(id: string) {
29 | return this.adapter.findById(id);
30 | }
31 |
32 | authenticate(email: string) {
33 | return this.adapter.findOne({email});
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/packages/cli-plugin-oidc-provider/templates/init/views/consent.ejs:
--------------------------------------------------------------------------------
1 | <%- include('partials/header.ejs') %>
2 |
3 |
4 |
5 |
<%= title %>
6 |
7 | <%- include('forms/consent-form.ejs') %>
8 |
9 | <%- include('partials/login-help.ejs') %>
10 |
11 |
12 | <% include('partials/footer.ejs') %>
13 |
14 |
15 |