添加 OIDC 和 OAuth2 服务器的基础结构,包括配置、数据库模型、服务、处理器和路由。新增登录页面模板,支持用户认证和授权流程。
This commit is contained in:
16
config/config.yaml
Normal file
16
config/config.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
server:
|
||||
port: 8080
|
||||
host: "localhost"
|
||||
|
||||
database:
|
||||
type: "sqlite"
|
||||
path: "data/oidc_server.db"
|
||||
|
||||
oauth:
|
||||
issuer_url: "http://localhost:8080"
|
||||
client_id: "default_client"
|
||||
client_secret: "default_secret"
|
||||
redirect_url: "http://localhost:8080/callback"
|
||||
|
||||
jwt:
|
||||
signing_key: "your-secret-key-here"
|
||||
Reference in New Issue
Block a user