@builder6/oidc-provider 3.0.4 → 3.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +5 -4
  2. package/views/login.liquid +85 -0
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@builder6/oidc-provider",
3
- "version": "3.0.4",
3
+ "version": "3.0.6",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
6
  "files": [
7
- "dist"
7
+ "dist",
8
+ "views"
8
9
  ],
9
10
  "scripts": {
10
11
  "format": "prettier --write \"src/**/*.ts\"",
@@ -12,14 +13,14 @@
12
13
  "build:watch": "rimraf dist && tsc --watch"
13
14
  },
14
15
  "dependencies": {
15
- "@builder6/core": "3.0.4",
16
+ "@builder6/core": "3.0.6",
16
17
  "lodash": "^4.17.5",
17
18
  "oidc-provider": "^8.8.1"
18
19
  },
19
20
  "publishConfig": {
20
21
  "access": "public"
21
22
  },
22
- "gitHead": "204178b282c38a08af08645d68ebe802dc3d9f25",
23
+ "gitHead": "0d688e602ff571eb04bd16ae187a733401f5318a",
23
24
  "devDependencies": {
24
25
  "@types/oidc-provider": "^9.1.2"
25
26
  }
@@ -0,0 +1,85 @@
1
+ <!DOCTYPE html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>登录</title>
6
+ <style>
7
+ body {
8
+ margin: 0;
9
+ padding: 0;
10
+ background-color: #f3f2f1;
11
+ font-family: "Segoe UI", Arial, sans-serif;
12
+ }
13
+ .header {
14
+ background-color: #0067b8;
15
+ color: #fff;
16
+ text-align: center;
17
+ padding: 1em 0;
18
+ font-size: 1.5em;
19
+ }
20
+ .login-container {
21
+ max-width: 350px;
22
+ margin: 50px auto;
23
+ padding: 2em;
24
+ background-color: #fff;
25
+ border-radius: 4px;
26
+ box-shadow: 0 2px 6px rgba(0,0,0,0.1);
27
+ }
28
+ .login-container p {
29
+ margin-bottom: 1em;
30
+ }
31
+ .login-container label {
32
+ display: block;
33
+ margin-bottom: 0.5em;
34
+ font-weight: 600;
35
+ }
36
+ .login-container input {
37
+ width: 100%;
38
+ padding: 0.5em;
39
+ margin-bottom: 1em;
40
+ box-sizing: border-box;
41
+ border: 1px solid #ccc;
42
+ border-radius: 4px;
43
+ }
44
+ .login-container button {
45
+ width: 100%;
46
+ padding: 0.75em;
47
+ font-size: 1em;
48
+ border: none;
49
+ border-radius: 4px;
50
+ cursor: pointer;
51
+ background-color: #0067b8;
52
+ color: #fff;
53
+ }
54
+ .login-container button:hover {
55
+ opacity: 0.9;
56
+ }
57
+ .footer {
58
+ text-align: center;
59
+ color: #888;
60
+ margin-top: 2em;
61
+ font-size: 0.9em;
62
+ }
63
+ </style>
64
+ </head>
65
+ <body>
66
+
67
+ <div class="header">登录 Steedos</div>
68
+
69
+ <div class="login-container">
70
+ {% comment %} <p>客户端 <strong>{{params.client_id}}</strong> 请求登录,请输入凭证:</p> {% endcomment %}
71
+ <form method="POST" action="/api/v6/idp/common/interaction/{{uid}}/login">
72
+ <label for="username">用户名</label>
73
+ <input id="username" name="username" type="text" placeholder="请输入用户名" />
74
+ <label for="password">密码</label>
75
+ <input id="password" name="password" type="password" placeholder="请输入密码" />
76
+ <button type="submit">登录</button>
77
+ </form>
78
+ </div>
79
+
80
+ <div class="footer">
81
+ </div>
82
+
83
+ </body>
84
+ </html>
85
+