oauth 相关问题

OAuth(开放授权)是客户端应用程序代表用户访问受保护资源的规范。它是作为用户将登录凭据分发给第三方应用程序的替代方案而开发的。

当需要 RSA 安全密钥时,如何在 .NET 7 中处理 Bearer 令牌?

现有 .NET Framework 应用程序可创建 Bearer 令牌。另一个现有的 .NET Framework 代码应用程序能够识别令牌以进行身份验证和授权。 RSA

回答 1 投票 0

我应该使用 Google 身份验证令牌来验证我的客户端吗?如果是,那么如何?

我正在使用 Google Auth 在我的网站上实施身份验证。成功登录后,Google 返回一个 JWT(JSON Web Token)。我需要解码这个 JWT 以提取用户信息并验证...

回答 1 投票 0

Supabase Oauth 重定向不适用于本地主机

我正在尝试将我的应用程序配置为在用户成功登录时重定向到地址:http://localhost:3000/home。我通过 Azure 使用 Oauth 来执行身份验证。问题是...

回答 1 投票 0

尝试通过 Google API 获取刷新令牌时获取 invalid_scope

我似乎无法通过 Oauth 使用 Google API。 我缺少什么? 错误信息: com.google.api.client.auth.oauth2.TokenResponseException:400错误请求 { “错误”:&q...

回答 3 投票 0

OAuth2AuthenticationException:[invalid_client] 尝试在 Spring Boot 应用程序中使用 Apple 登录时

美好的一天!我尝试在我的应用程序中设置 Apple 登录,但收到错误 OAuth2AuthenticationException: [invalid_client]。我的配置如下所示: 春天: 安全: oauth2: CL...

回答 1 投票 0

未找到“google_login”的反向操作。 “google_login”不是有效的视图函数或模式名称

我有一个项目,我想在我的网站上使用 Google 身份验证进行注册。 这是我的signup.html代码: {% 加载社交帐户 %} 我有一个项目,我想在我的网站上使用 Google 身份验证进行注册。 这是我的signup.html代码: {% load socialaccount %} <form class="site-form" action="{% url 'authentication:signup' %}" method="post"> {{ form }} {% csrf_token %} <label> <a href="{% provider_login_url "google" %}">Login With Google</a> <input type="submit" value="submit"> </label> </form> 这是我的urls.py文件: path('signup/', views.signup_view, name='signup'), path('google-login/', include('allauth.urls')), 这是我的视图文件: from django.shortcuts import render, redirect from django.contrib.auth.forms import UserCreationForm, AuthenticationForm from django.contrib.auth import login, logout # Create your views here. def login_view(request): if request.method == 'POST': form = AuthenticationForm(data=request.POST) if form.is_valid(): user = form.get_user() login(request, user) return redirect(request, 'accounts:dashboard') else: form = AuthenticationForm() return render(request, './authentication/templates/login.html', {'form': form}) def logout_view(request): logout(request) return redirect(request, 'accounts:dashboard') def signup_view(request): if request.method == 'POST': form = UserCreationForm(request.POST) if form.is_valid(): user = form.save() login(request, user) return redirect(request, 'accounts:dashboard') return render(request, './signup.html', {'form': form}) 但是当我想使用singup.html时,出现了这个错误: Reverse for 'google_login' not found. 'google_login' is not a valid view function or pattern name. 当我想从谷歌登录使用时,显示404未找到: Using the URLconf defined in project.urls, Django tried these URL patterns, in this order: admin/ auth/ login/ [name='login'] auth/ logout/ [name='logout'] auth/ signup/ [name='signup'] auth/ google-login/ signup/ [name='account_signup'] auth/ google-login/ login/ [name='account_login'] auth/ google-login/ logout/ [name='account_logout'] auth/ google-login/ password/change/ [name='account_change_password'] auth/ google-login/ password/set/ [name='account_set_password'] auth/ google-login/ inactive/ [name='account_inactive'] auth/ google-login/ email/ [name='account_email'] auth/ google-login/ confirm-email/ [name='account_email_verification_sent'] auth/ google-login/ ^confirm-email/(?P<key>[-:\w]+)/$ [name='account_confirm_email'] auth/ google-login/ password/reset/ [name='account_reset_password'] auth/ google-login/ password/reset/done/ [name='account_reset_password_done'] auth/ google-login/ ^password/reset/key/(?P<uidb36>[0-9A-Za-z]+)-(?P<key>.+)/$ [name='account_reset_password_from_key'] auth/ google-login/ password/reset/key/done/ [name='account_reset_password_from_key_done'] auth/ google-login/ social/ auth/ google-login/ google/ auth/ google-signup/ auth/ ^static/(?P<path>.*)$ The current path, auth/google-login/, didn’t match any of these. 在你的 URL 模式中,你需要这样的: urlpatterns = [ ... <your other URL patterns> ... path('accounts/', include('allauth.urls')), ] 如果您选择任何其他路径,库就会损坏!

回答 1 投票 0

Cloudflare / X (Twitter) 集成调试

与 X(3 足 OAuth 流程)集成,可在本地与 wrangler 配合使用。 一旦部署到 Cloudflare(Pages 函数),它在最后一步失败 - 对 /oauth/access_token 的调用失败

回答 1 投票 0

在 .NET 7 中的 JWT 身份验证中,“已验证”令牌怎么会“丢失”?

我的 .NET 7 Web 应用程序处于一种奇怪的情况。根据我的应用程序日志,找不到我的令牌,但仍然以某种方式进行验证,这对我来说没有意义。希望有人可以...

回答 1 投票 0

反向代理 HTTPS 到 HTTP 切换会导致 .NET 中 MS 登录出现登录问题

我有一个应用程序,我喜欢通过反向代理发布(在我的例子中是Traefik)。所以我的电话看起来像这样: 浏览器 --https--> k8s-ingress/Traefik --http--> 应用容器 我发现了这个...

回答 1 投票 0

Spring WebClient 在标头中设置 Bearer 身份验证令牌

以下场景: 我有两个微服务 A 和 B。服务 A 是一个 Bearer 客户端,它具有开放的 api,并接收来自必须由 keycloak 授权的客户端的请求。现在我想发送...

回答 3 投票 0

如何使用 OAuth 访问令牌授权对 Google 日历的请求?

我阅读了 OAuth,所以我了解基本原理。我似乎无法得到的是,如果我有访问令牌和日历 ID,如何授权对 Google Calendar API(我使用的是 v3)的请求。 ...

回答 2 投票 0

如何在没有Oauth API的情况下列出电子邮件的所有联系人?

我正在寻找一个示例代码,如何使用 C#.NET 和一个 API 列出 gmail 的所有联系人。 我需要快速完成,并且不像使用 Oauth API 那样复杂。 OAuth API 是我最后的选择。

回答 1 投票 0

为什么在 Flutter 上使用 Supabase 进行 Google 身份验证需要 Web 和 Android 客户端 ID?

我的问题是出于教育目的,因为我让事情正常工作,但想知道为什么以及如何。 我想使用 Supabase 为我的 Flutter 应用程序设置 Google 身份验证 (Authn)。正在关注...

回答 1 投票 0

DEVELOPER_ERROR android 生产使用 @react-native-google-signin/google-signin 而不使用 FIREBASE

我仅在生产/Android 中使用 google 登录时遇到问题。 我使用世博会 我使用 @react-native-google-signin/google-signin 依赖项来添加使用 google 登录而不使用 FIREBASE 的功能。 我收到产品...

回答 1 投票 0

Oauth 刷新令牌生命周期?

刷新令牌有多少种过期类型? 如果在没有 GCP oauth 凭据的情况下从 Playground 创建,则为 24 小时。 如果基于 GCP oauth 凭据创建,则为无限期。 *你...

回答 1 投票 0

如何从 Visual Studio 中删除 GitHub 帐户

我想将我的 GitHub 帐户添加到 Visual Studio。 当我点击 GitHub 时,会出现以下页面: 这是另一个帐户。所以,我不想使用这个帐户。我从“设置”->“

回答 2 投票 0

next-auth v4 和 FacebookProvider 带来无尽的麻烦

我一直在尝试使用 next-auth v4 设置 Facebook 功能登录,但一直遇到一些问题。 除了问题本身之外,真正令人沮丧的是难以重现

回答 1 投票 0

向 django admin 添加社交应用程序时没有项目提供者下拉菜单

Django 管理面板我目前正在使用 django 学习 Web 开发,在尝试使用 django-allauth 将社会身份验证添加到我的项目时,我遇到了一个错误,提示配置无效...

回答 1 投票 0

自从更换笔记本电脑后,Connect-AzAccount OAuth 登录窗口未显示在 .Net GUI 中

我有一个在非常基本的 Systems.Windows.Forms .Net GUI 包装器中运行的 powershell 脚本,该脚本的第一步是提示用户通过 Microsoft 登录名登录到 Azure

回答 1 投票 0

Accelo Web 应用程序如何确定登录用户的“员工 ID”? [已关闭]

使用 Accelo API 的“Web 应用程序”OAuth 流程,在哪里可以找到登录用户的“员工 ID”? 员工 ID 用于其他请求,例如活动。 看来不是……

回答 1 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.