https://github.com/authing/authing-dotnet-quickstart
https://github.com/authing/authing-dotnet-quickstart
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/authing/authing-dotnet-quickstart
- Owner: Authing
- Created: 2022-07-27T06:53:34.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-28T08:36:14.000Z (about 3 years ago)
- Last Synced: 2023-05-18T13:54:23.340Z (over 2 years ago)
- Language: C#
- Size: 11.7 MB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 安装依赖
运行以下命令安装项目依赖:
```bash
$ dotnet restore
```
# 填写你的应用配置
在 appsettings.Development.json 中,修改配置为你的应用配置:
```jsonc
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
// .Net Core Web App 快速开始
"Authing.Config": {
"AppId": "APP_ID",
"Secret": "APP_SECRET",
"AppHost": "https://{你的域名}.authing.cn",
"RedirectUri": "http://localhost:8000/auth/callback"
},
// .Net Core Web API Server 快速开始
"JwtSettings": {
// "Issuer": "https://{你的域名}.authing.cn/oidc",
// "Audience": "APP_ID",
// "JwksUri": "https://{你的域名}.authing.cn/oidc/.well-known/jwks"
}
}
```
# 运行
运行本示例程序:
```bash
$ dotnet run
```
# 参考文档
[.Net Core Web App 快速开始](https://docs.authing.cn/v2/quickstarts/webApp/csharpDotNetCore.html)
[.Net Core Web API Server 快速开始](https://docs.authing.cn/v2/quickstarts/apiServer/csharpDotNetCore/)