小编Ahm*_*med的帖子

ASP.NET Core 7 openiddict-core 4 auth 服务器返回强制“token”参数在云中丢失,但在本地工作

我有 2 个项目,一个身份验证服务器和一个 API,但是当我尝试从 API 获取任何内容时,身份验证服务器总是返回

缺少必需的“token”参数

尽管它在我的机器上本地工作

使用 openiddict core 4.6 构建的身份验证服务器具有以下配置:

services.AddDbContext<AuthDbContext>(options =>
            {
                // Configure the context to use Microsoft SQL Server.
                options.UseSqlServer(configuration.GetConnectionString("DefaultConnection"));
                options.UseOpenIddict();
            });

// Register the Identity services.
services.AddIdentity<ApplicationUser, IdentityRole>(options =>
            {
                options.User.RequireUniqueEmail = true;
            }).AddDefaultUI()
            .AddEntityFrameworkStores<AuthDbContext>()
            .AddDefaultTokenProviders();

services.AddAuthentication()
            .AddGoogle(options =>
            {
                IConfigurationSection googleAuthNSection =
                configuration.GetSection("Authentication:Google");
                options.ClientId = googleAuthNSection["AppId"];
                options.ClientSecret = googleAuthNSection["AppSecret"];
            })
            .AddFacebook(options =>
            {
                IConfigurationSection FBAuthNSection =
                configuration.GetSection("Authentication:Facebook");
                options.ClientId = FBAuthNSection["AppId"];
                options.ClientSecret = FBAuthNSection["AppSecret"];
            })
            .AddMicrosoftAccount(microsoftOptions =>
            {
                microsoftOptions.ClientId = configuration["Authentication:Microsoft:AppId"];
                microsoftOptions.ClientSecret = …
Run Code Online (Sandbox Code Playgroud)

c# asp.net-core openiddict asp.net-core-webapi

5
推荐指数
0
解决办法
650
查看次数

Bootstrap 4 从右到左自定义文件输入

我正在尝试使上传文件的输入方向从引导程序 4 从右到左,但到目前为止我没有尝试过任何工作

我也尝试改变不同标签的方向

<div class="form-group">
        <div class="col-md-4">
            <div class="custom-file">
                <input type="file" class="custom-file-input" id="customFile" multiple lang="ar" dir="rtl">
                <label class="custom-file-label text-left" for="customFile">choose files to upload</label>
            </div>
        </div>
        <script type="text/javascript">
            $('.custom-file input').change(function (e) {
                var files = [];
                for (var i = 0; i < $(this)[0].files.length; i++) {
                    files.push($(this)[0].files[i].name);
                }
                $(this).next('.custom-file-label').html(files.join(', '));
            });
        </script>
    </div>
Run Code Online (Sandbox Code Playgroud)

bootstrap 上传文件控件样式

asp.net-mvc right-to-left bootstrap-4

4
推荐指数
1
解决办法
3405
查看次数