Xmlsec库实现Django SAML2身份验证

时间:2019-12-03 14:13:27

标签: python django saml windows-server xmlsec

我将使用此Django软件包将SAML2身份验证集成到我的django APP中:https://github.com/fangli/django-saml2-auth

此软件包需要xmlsec libary,不幸的是,我正在Windows Server上安装此库。

我已尝试通过遵循文档将其安装在Windows中:

按照说明在Windows上安装此库之后:

我可以通过以下方式配置安装:cscript configure.js prefix=c:\opt include=c:\opt\include lib=c:\opt\lib debug=yes

This is the result : 

Microsoft (R) Windows Script Host Version 5.812
Copyright (C) Microsoft Corporation. All rights reserved.


libxmlsec version: 1.2.29
Created Makefile.

XMLSEC configuration
----------------------------
         Use Crypto: openssl
 Use Default Crypto: openssl
        Use OpenSSL: Enabled
Use OpenSSL Version: 110
            Use NSS: Disabled
       Use MSCrypto: Disabled
          Use MSCng: Disabled
        Use LibXSLT: Enabled
          Use iconv: Enabled
     NT 4.0 support: Enabled

Win32 build configuration
-------------------------
  C-Runtime option: /MD
           Unicode: Enabled
     Debug symbols: Enabled
Warnings as errors: Disabled
        C compiler: cl.exe
  C compiler flags:
     Static xmlsec: Enabled
 Enable DL support: Enabled
    Install prefix: c:\opt
      Put tools in: $(PREFIX)\bin
    Put headers in: $(PREFIX)\include
Put static libs in: $(PREFIX)\lib
Put shared libs in: $(PREFIX)\bin
      Include path: c:\opt\include
          Lib path: c:\opt\lib

我已将二进制文件放在上面的文件夹中。 使用nmake运行Make文件之后 结果如下:

LINK : fatal error LNK1104: cannot open file 'libxml2.lib'
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\link.exe"' : return code '0x450'

所以我不知道该怎么做才能继续安装,我遵循了文档,也许我错过了一些东西。

任何人都可以帮助您

谢谢

0 个答案:

没有答案