cost 259 ms
Django 规则替换 Guardian.mixins.PermissionListMixin - Django-rules replacement of guardian.mixins.PermissionListMixin

在我的基于 django 的应用程序中,我想让用户能够跟踪他们的位置。 每个位置都有一个所有者,列表视图应该只显示当前用户拥有的位置。 使用django-guardian,我能够通过在我的 views.py 中指定以下内容来实现相同的效果: 我将如何创建与django-rules类似的东西? ...

获取所有文章 Guardian API - Get all articles Guardian API

我使用卫报 api 来获取数据。 然后它的文档说,结果作为分页列表返回,默认情况下,每页包含 10 个条目。 我得到 output JSON 作为这个。 监护人文件可以在这里找到 我想收集 10 个实体的所有数据(例如总共 8174 个)实例。 有没有办法获取所有数据? ...

2020-04-04 17:17:48   2   259    api / guardian  
监护人图书馆无法生成令牌 - Guardian library can't able to generate the token

我正在创建用于注册/登录的API。我正在使用监护人“〜> 1.0”为我的注册生成jwt令牌。 现在,当我在文件夹结构中创建一个监护人模块时,将在代码中向您展示。 我还在cofig.ex中传递了密钥。 让我知道是否需要其他信息。 现在,当我尝试在邮递员端点中传递它时,这给了我 ...

如果没有令牌/错误令牌,Guardian.Plug.VerifyHeader不执行任何操作 - Guardian.Plug.VerifyHeader do nothing if no token / wrong token

来自路由器: 如果令牌丢失或错误,如何使plug Guardian.Plug.VerifyHeader不执行任何操作? 现在它通过error_handler引发错误。 编辑:目标是仍然检查令牌,如果它存在/有效然后下一个插件( LoadResource )将获得current_u ...

检测安装在 Android 上的 GameGuardian/防止 GameGuardian 修改值 - Detect GameGuardian Installed on the Android/Prevent Game Guardian from modifying values

再会。 我正在尝试找到一种方法来检测安装在 Android 操作系统上的游戏守护者 apk。 谷歌没有给出任何答案,所以我来到了这里。 问题是 Game Guardian 在首次发布时安装了不同的 apk,其中包含一些随机包名称。 任何人有任何建议如何保护应用程序不被 Game Guardian 修 ...

使用苦艾酒时,从Guardian错误处理程序发送graphql响应 - Sending a graphql response from Guardian error handler when using Absinthe

我有一个带有苦艾酒的Phoenix应用程序,用于Graphql API。 Guardian用于验证在标头中提供Bearer令牌的请求。 在提供无效令牌之前,一切工作都很好。 我在Guardian管道中指定了一个错误处理程序,它目前仅以401 http响应进行响应: 这对任何gr ...

**(UndefinedFunctionError)函数Guardian.Plug.authenticated?/ 1是未定义或私有的 - ** (UndefinedFunctionError) function Guardian.Plug.authenticated?/1 is undefined or private

我是Elixir和Phoenix新手,我正在尝试使用{:comeonin, "~> 4.0"}和{:guardian, "~> 1.0"}对我的应用程序进行身份验证{:guardian, "~> 1.0"}并具有一个帮助程序功能来检查用户是否已登录在: defmodule C ...

Elixir Guardian 自定义标头验证而不是 Authorization - Elixir Guardian custom header verification instead of Authorization

我的 Endpoint 方法有两个令牌。 一个在Authorization密钥内,另一个在App-token但找不到任何文档/支持或任何解决此问题的方法。 验证/验证两个令牌的可能解决方法是什么 我看到这个选项plug(Guardian.Plug.VerifyHeader, claims: %{"t ...

映像构建/部署后,在应用程序映像重建之前发出的JWT不起作用 - JWT issued before application image rebuild does not work after image build/deploy

我的应用程序使用SPA客户端和Phoenix / Elixir后端,并通过jwt身份验证(通过Guardian库)。 该应用程序是在GCP上使用Docker部署的。 我遇到以下问题: 我是已获得jwt身份验证的用户。 一切正常。 重建,重新部署生产应用程序的docke ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM