如何避免2FA认证后发​​生的CSS,脚本相关问题? [英] How to avoid the CSS, script related issues occuring after 2FA authentication?

查看:70
本文介绍了如何避免2FA认证后发​​生的CSS,脚本相关问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用第三方dll进行2FA身份验证。添加web.config所需的需求

我的网站重定向到2FA,并在成功到达仪表板页面后。但是在仪表板页面或任何其他相关页面css中,脚本问题似乎与路径相关。



如果没有在web.config中完成2FA更新,就没有css / script问题。



< b>我尝试了什么:



以下是与2FA BAM相关的案例:

添加了3个与dll相关的dll bin目录中的BAM

I am doing 2FA Authentication using third party dll . Added web.config required needs
My site is redirecting to 2FA and after successful reaches a dashboard page. But in the dashboard page or any other related pages css,script issues which seems to be path related or so.

Without 2FA updates done in web.config, there is no css/script issues.

What I have tried:

Below are the cases done related to 2FA BAM:
added 3 dlls related to BAM in the bin directory

    <add key="bam.application.name" value="Test2FAApp" />
    <add key="bam.application.agent.key" value="dhsvdkfkdBbas" />
    <add key="bam.registration.url" value="https://gbrdsr000004563.intranet.barcapint.com:9083/authn/register" />
    <add key="bam.request.headers" value="iv_user:BRID, windows_login:ADID, windows_login_fqdn:ADIDatREALM"/>
    <add key="bam.http.timeout" value="10000" />
 
<system.webServer>
    <modules>
      <add name="BAMAuthFilter" type="com.barclays.bam.agents.iis.filter.BAMAuthFilter,bam-iis-auth-filter"/> <!--map filter to your application URL-pattern’s and servlets-->
    </modules>
  </system.webServer>





CSS和JS如下:



CSS and JS referred as below:

 <script src="JS/Common.js" type="text/javascript"></script>
 <script src="../JS/Common.js" type="text/javascript"></script>
 <script language="javascript" type="text/javascript" src="JS/UserManagement.js"></script>
 <script language="javascript" type="text/javascript" src="JS/Roles.js"></script>
 <script language="javascript" type="text/javascript" src="JS/Validation.js"></script>
 <script language="javascript" type="text/javascript" src="../JS/Validation.js"></script>
 <script language="javascript" type="text/javascript" src="JS/DDS300Initiation.js"></script>

 <!-- link calendar resources       -->
<%-- <link rel="stylesheet" type="text/css" href="./JS/Tigra/tcal.css" />--%>
 <script type="text/javascript" src="./JS/Tigra/tcal.js"></script>
 <script type="text/javascript" src="../JS/Tigra/tcal.js"></script>
 <script language="javascript" type="text/javascript">

推荐答案

使用第三方dll进行2FA身份验证



与Mr. Third Party对话。
"doing 2FA Authentication using third party dll"

Talk to "Mr. Third Party".


您没有提供CSS和JS文件的引用方式。如果你被重定向到外部页面做2FA,那么我怀疑这与你如何引用你的CSS和JS文件有关。从本质上讲,您需要在面向公众的服务器中托管它们(CSS和JS),外部站点可以访问它。一个很好的例子就是使用CDN来托管它们。或者,您可以创建一个包含静态样式的静态页面,并将其用于2FA,这样您就不会处理文件引用问题。
You did not provide how your CSS and JS files were referenced. If you were redirected to an external page to do 2FA, then I would suspect that this something to do with how you are referencing your CSS and JS files. In essence, you would need to host them (CSS and JS) in a public facing server where external sites have access to it. A good example would be using a CDN to host them. Alternatively, you can create a static page with static styles and use that for your 2FA so you won't be dealing with file references issues.


这篇关于如何避免2FA认证后发​​生的CSS,脚本相关问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆