views.py 文件源码

python
阅读 31 收藏 0 点赞 0 评论 0

项目:djangosaml2 作者: knaperek 项目源码 文件源码
def metadata(request, config_loader_path=None, valid_for=None):
    """Returns an XML with the SAML 2.0 metadata for this
    SP as configured in the settings.py file.
    """
    conf = get_config(config_loader_path, request)
    metadata = entity_descriptor(conf)
    return HttpResponse(content=text_type(metadata).encode('utf-8'),
                        content_type="text/xml; charset=utf8")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号