天道酬勤,学无止境

com.auth0.IdentityVerificationException: An error occurred while exchanging the Authorization Code for Auth0 Tokens

I am trying to implement auth0 in a very basic spring-boot-application based on maven. This is the error that I get:

com.auth0.IdentityVerificationException: An error occurred while exchanging the Authorization Code for Auth0 Tokens

When running the original tutorial-project everything works fine. The error occurs only in my custom application. Basically I copied all the files from the tutorial-project into my application. Nevertheless I run into this error...

further down the exception I see a

com.auth0.exception.APIException: Request failed with status code 401: Unauthorized

标签

评论

Solved it:

The client-secret was wrong. Actually there is a space at the end of my client-secret, which I accidentally removed. Wow.

受限制的 HTML

  • 允许的HTML标签:<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • 自动断行和分段。
  • 网页和电子邮件地址自动转换为链接。

相关推荐
  • 如何使用 MS Exchange 服务器发送电子邮件(How to send an email using MS exchange server)
    问题 我正在尝试使用我公司的邮件服务器发送电子邮件。 但我收到以下异常 Caused by: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.1 Client was not authenticated at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1388) at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:959) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:583) at javax.mail.Transport.send0(Transport.java:169) at javax.mail.Transport.send(Transport.java:98) 这是我的示例代码, Properties props = System.getProperties(); // Setup mail server props.put("mail.smtp.host", "example.server.com"); props.put("mail.smtp.auth",
  • An error occurred while executing doInBackground() for keyclock authService.performTokenRequest() function
    While integrating Keyclock SDK , I try to exchange authorization code to access token authService.performTokenRequest( resp.createTokenExchangeRequest(), new AuthorizationService.TokenResponseCallback() { @Override public void onTokenRequestCompleted( TokenResponse resp, AuthorizationException ex) { if (resp != null) { // exchange succeeded } else { // authorization failed, check ex for more details } } }); I got the following error, java.lang.RuntimeException: An error occurred while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:354) at java.util.concurrent
  • Visual Studio 连接 Exchange 电子邮件帐户时出错(Visual studio error connecting exchange email account)
    问题 大约两个月前,我接到了制作 Outlook.com 加载项的任务。 基础工作完美,但出现了具有更高优先级的东西。 因此,该项目铺设仍然适合最近两个月。 我昨天想继续这个项目,但它不再起作用了。 问题来了,当我去 Visual Studio 开始项目时,需要登录我的办公室帐户。 如果我登录,它将加载一段时间,然后弹出错误。 它说: An error occurred while connecting to the server: The request failed. Unable to connect to the remote server 这怎么可能,因为我在过去两个月没有改变任何东西? 我该如何解决这个问题? 我跟着微软自己的这个教程。 编辑: 以下是一些截图: 这是在我的 Visual Studio 中,在这里我开始我的加载项。 出现以下弹出窗口。 我已经仔细检查了我的凭据。 如果我单击连接,它将加载一段时间并显示以下错误: 希望这能提供有关正在发生的事情的更多信息。 回答1 在清单节点的属性窗口中,您需要将Use multi-factor auth属性设置为 true。
  • Visual studio error connecting exchange email account
    About two months ago I was given the task of making a outlook.com add-in. The basics worked perfectly but somthing with higher priorety came along. So the project layed still fit the last two months. I wanted to go on with the project yesterday and it didn't work anymore. The problem comes whem I go to start the project in visual studio and, need to sign in to my office account. If I sign in it will load for a while and then an error pops up. It says: An error occurred while connecting to the server: The request failed. Unable to connect to the remote server How is this possible since i didn't
  • Using Office 365 API in Xamarin.Android
    I am creating a sample for a talk: using Office 365 in Xamarin.Android, but I am having some errors, don´t know why :/ I got this: "System.InvalidOperationException: An error occurred while processing this request. ---> Microsoft.OData.Client.DataServiceTransportException: Error: NameResolutionFailure ---> System.Net.WebException: Error: NameResolutionFailure\n at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 \n at Microsoft.OData.Client.HttpWebRequestMessage.EndGetResponse (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 \n -
  • 在 Xamarin.Android 中使用 Office 365 API(Using Office 365 API in Xamarin.Android)
    问题 我正在创建一个演讲示例:在 Xamarin.Android 中使用 Office 365,但我遇到了一些错误,不知道为什么:/ 我懂了: "System.InvalidOperationException: An error occurred while processing this request. ---> Microsoft.OData.Client.DataServiceTransportException: Error: NameResolutionFailure ---> System.Net.WebException: Error: NameResolutionFailure\n at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 \n at Microsoft.OData.Client.HttpWebRequestMessage.EndGetResponse (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 \n --- End of inner exception stack trace ---\n at Microsoft
  • SmtpClient 在 C# 中使用 smtp.Gmail.com:857 并激活 Google 的两步验证(SmtpClient in C# using smtp.Gmail.com:857 with Google's 2 Step Verification activated)
    问题 我在使用 C# 中的 Gmail SMTP 服务器发送电子邮件时遇到问题。 StackOverflow 中有很多关于这个问题的主题,但没有一个解决方案符合我的要求。 我的特点是: 生成的应用程序特定密码和非常强的密码由于某些其他应用程序已激活并需要双重身份验证(两步验证) “允许不太安全的应用程序”参数在 Google 的用户界面中不可用 有人可以提出解决方案吗? 解决方案“禁用两步验证”不是一个有效的解决方案,因为我们正在寻找一种尊重主帐户完整性的解决方案。 也许有使用 Google 的 API 或任何其他配置参数的解决方案? 我怀疑是否有面向 C# 的解决方案,因为 2 步验证旨在提供更安全的帐户,但“应用程序特定密码”不是绕过某些应用程序的 2 步验证的方法吗? 我生成了一个特定的应用密码:https://security.google.com/settings/security/apppasswords 不太安全的应用程序参数不可用:https://www.google.com/settings/security/lesssecureapps 这是我的代码: public string sendEmailUsingGmail(string email) { using (MailMessage mail = new MailMessage("from_account
  • c# programmatically reading emails from the Exchange server
    When you search on web you will find very easy answers for "How to read emails programmatically"... Al the websites are explaining most of the same like this page. http://omegacoder.com/?p=454 // depends from Exchange server version service.Credentials = new NetworkCredential("MDR", "password", "zzz"); service.AutodiscoverUrl("mdr@zzz.be"); object o = service.FindItems(WellKnownFolderName.Inbox, new ItemView(10)); FindItemsResults<Item> findResults = service.FindItems(WellKnownFolderName.Inbox, new ItemView(10)); foreach (Item item in findResults.Items) { Console.WriteLine(item.Subject); } it
  • Powershell、EWS、OAuth2 和自动化(Powershell, EWS, OAuth2, and automation)
    问题 我正在尝试查找有关如何使用 PowerShell 对 EWS 实施非交互式 Oauth2 身份验证的文档,但我可能没有使用正确的搜索词,因为我找不到任何有用的信息。 我可以在 OAuth2 上找到的 Microsoft 文档只有 C# 文档。 那么,有谁知道如何实现这一点? 没有用户输入,应该使用可以作为脚本输入提供的输入应该在 PowerShell 中,而不是 C# 细节! 细节! 不是“现在生成登录令牌”,而是生成该令牌的实际代码。 回答1 以下博客对此有一个非常好的概述:https://ingogegenwarth.wordpress.com/2018/08/02/ews-and-oauth/#more-5139 我使用上面的博客让它在我们的 PowerShell 脚本中工作 - 经过大量试验和错误。 以下示例脚本使用在 Azure AD 中注册的应用程序的 ClientID。 如果尚未在 Azure AD 中注册应用程序,则必须先执行此操作。 Web 上有各种指南可用于在 Azure AD 中注册新应用程序。 为了通过 OAuth 使用 EWS,您注册的应用程序必须在 Azure AD 中具有正确的权限。 EWS 有两种选择: 使用委派权限并在 Azure AD 中请求“EWS.AccessAsUser.All”API 权限 - 旧 API | 交流 | 委派权限 |
  • 未引用库时,Visual Studio 选择了错误的构造函数?(Visual Studio chooses wrong constructor when a library isn't referenced?)
    问题 我在两个项目中使用 Visual Studio 2010。 其中一个包含引用 Microsoft 的 Exchange.WebServices dll(ver1.2) 以访问 ExchangeServices 的项目。 我创建了一个类,其中包含一些辅助方法和包装器,用于在连接到 Exchange 服务器(通过 ExchangeService API)时执行各种任务。 ExchangeService 构造函数可以接受 ExchangeVersion 的枚举,以指定服务器版本信息。 所以我在我的类中创建了两个构造函数。 public class ExchangeConnector(string ver) { // Property assignments } public class ExchangeConnector(ExchangeVersion ver) :this(ver.toString()) //Using(or not using) "this", doesn't seem to matter... { } 我创建了接受字符串参数的构造函数,因此其他项目不一定需要添加 Exchange.WebServices 库。 但后来我遇到了一个无法预料的问题。 当我在我的第二个项目(不包含对 Exchange.WebServices dll 的引用)中创建
  • 5.0.9 error on Exchange code for access token
    I've followed "Getting Started with an ASP.NET MVC 3 Website" and it has worked fine (5.0.8) until I updated the SDK to 5.0.9. I've got this error when trying to exchange code for access token: Unexpected character encountered while parsing value: a. Line 1, position 1. It occurs at dynamic tokenResult = oAuthClient.ExchangeCodeForAccessToken(code); The "code" is correct as it used to be. Any ideas? Thanks
  • Unable to exchange authorization code for access token and refresh token in Cross Client google oauth2.0
    I've been having problems implementing Google Play Services login on my android app and passing the authorisation code to my backend server, so the server will exchange the code for access token and refresh token. First let me write a few lines what has already been tried/read: on code.google.com/apis/console I've created a new project, with two clients (WEB client and Android installed client) read articles onhttps://developers.google.com/+/mobile/android/sign-in#cross-platform_single_sign_on and http://android-developers.blogspot.com/2013/01/verifying-back-end-calls-from-android.html Here is
  • 无法在跨客户端 google oauth2.0 中交换访问令牌和刷新令牌的授权码(Unable to exchange authorization code for access token and refresh token in Cross Client google oauth2.0)
    问题 我在我的 android 应用程序上实现 Google Play 服务登录并将授权代码传递给我的后端服务器时遇到问题,因此服务器将交换访问令牌和刷新令牌的代码。 首先让我写几行已经尝试/阅读的内容: 在 code.google.com/apis/console 我创建了一个新项目,有两个客户端(WEB 客户端和 Android 安装客户端)阅读文章 https://developers.google.com/+/mobile/android/sign-in #cross-platform_single_sign_on 和 http://android-developers.blogspot.com/2013/01/verifying-back-end-calls-from-android.html 这是我的客户端代码,用于检索授权代码和 IdToken: package com.google.drive.samples.crossclientoauth2; import java.util.Arrays; import java.util.List; import android.accounts.AccountManager; import android.app.Activity; import android.content.Intent; import android
  • A fatal error occurred while creating a TLS client credential. The internal error state is 10013
    Recently deployed a Windows 2016 Standard Server, with Active Directory and Exchange 2016. We have disabled SSL 1.0, 2.0 and 3.0 for both Server and Client, and have disabled TLS 1.0 and TLS 1.1. We are repeatedly getting the following entry in our system log. What is causing this, and how can I fix it.
  • How to get more detailed error info in EWS SOAP response?
    I'm posting SOAP calls to Exchange webservices (using Delphi and the IpWorks TipwHTTP component) and some of these return with internal server errors (some CreateItem and UpdateItem SOAP actions), but no more info than that: <?xml version="1.0" encoding="utf-8"?> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <s:Fault> <faultcode xmlns:a="http://schemas.microsoft.com/exchange/services/2006/types">a:ErrorInternalServerError</faultcode> <faultstring xml:lang="en-US">An internal server error occurred. The operation failed.</faultstring> <detail> <e:ResponseCode xmlns:e=
  • 如何在 EWS SOAP 响应中获取更详细的错误信息?(How to get more detailed error info in EWS SOAP response?)
    问题 我正在向 Exchange webservices 发布 SOAP 调用(使用 Delphi 和 IpWorks TipwHTTP 组件),其中一些返回带有内部服务器错误(一些 CreateItem 和 UpdateItem SOAP 操作),但没有更多信息: <?xml version="1.0" encoding="utf-8"?> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <s:Fault> <faultcode xmlns:a="http://schemas.microsoft.com/exchange/services/2006/types">a:ErrorInternalServerError</faultcode> <faultstring xml:lang="en-US">An internal server error occurred. The operation failed.</faultstring> <detail> <e:ResponseCode xmlns:e="http://schemas.microsoft.com/exchange/services/2006/errors">ErrorInternalServerError</e
  • Oauth2 Playground exchange authorization code for token: 400 error
    I've been following a basic OAuth 2.0 tutorial to create an OAuth 2.0 server. That whole part worked fine, but when I tried to play around with it in the Google OAuth2 playground following this page I'm getting some errors. I've followed all the steps as they are in the above link except I used http://localhost/wordpress/authorize.php?state=xyz as my authorization endpoint because otherwise I would get an error saying that state was required and I didn't want to edit any code yet. Now, everything seems to work fine with authorizing the APIs. I'm directed to my localhost site and when I
  • Java InaccessibleWSDLException while accessing WSDL through client stubs
    I am trying to write custom Java client for Exchange Web Services. I have generated client stubs using wsimport tool as explained here from EWS's Services.wsdl file. And now I have written code that uses these stubs. I am getting following exception: Exception in thread "main" com.sun.xml.internal.ws.wsdl.parser.InaccessibleWSDLException: 2 counts of InaccessibleWSDLException. java.io.IOException: Got Server returned HTTP response code: 401 for URL: https://host.domain.com/ews/Services.wsdl while opening stream from https://host.domain.com/ews/Services.wsdl java.io.IOException: Got Server
  • 经典排序算法之快速排序详解
     写在前面:大家好!我是ACfun,我的昵称来自两个单词Accepted和fun。我是一个热爱ACM的蒟蒻。这篇博客来记录一下快速排序算法以及快速排序的模板。如果博客中有不足或者的错误的地方欢迎在评论区或者私信我指正,感谢大家的不吝赐教。我的唯一博客更新地址是:https://ac-fun.blog.csdn.net/。非常感谢大家的支持。一起加油,冲鸭!  用知识改变命运,用知识成就未来!加油 (ง •̀o•́)ง (ง •̀o•́)ง 文章目录 快速排序简介快速排序的思想快速排序的具体实现时间复杂度快速排序模板例题题目信息题目描述输入格式输出格式数据范围输入样例输出样例 解题代码 快速排序简介  快速排序是对冒泡排序的一种改进。冒泡排序的时间复杂度为O(N²),这是一个非常高的时间复杂度。冒泡排序早在 1956 年就有人开始研究,之后有很多人都尝试过对冒泡排序进行改进,但结果却令人失望。如 Donald E. Knuth(中文名为高德纳,1974 年图灵奖获得者)所说:“冒泡排序除了它迷人的名字和导致了某些有趣的理论问题这一事实之外,似乎没有什么值得推荐的。” 快速排序动画演示: 快速排序的思想  快速排序的基本思想是:通过一趟排序将待排记录分割成独立的两部分,其中一部分关键字都比另一部分记录的关键字小,然后再分别对这两部分关键字进行相同步骤的排序,直到整个序列有序。
  • Oauth2 Playground 交换令牌授权码:400 错误(Oauth2 Playground exchange authorization code for token: 400 error)
    问题 我一直在遵循基本的 OAuth 2.0 教程来创建 OAuth 2.0 服务器。 整个部分运行良好,但是当我尝试在此页面之后的 Google OAuth2 游乐场中使用它时,我遇到了一些错误。 除了我使用http://localhost/wordpress/authorize.php?state=xyz作为我的授权端点之外,我已经按照上面链接中的所有步骤进行了操作,否则我会收到错误消息,指出需要该状态并且我还不想编辑任何代码。 现在,授权 API 似乎一切正常。 我被定向到我的本地主机站点,当我授权请求时,我将返回到 OAuth2 Playground。 当我继续下一步并尝试将返回的授权代码交换为令牌时,我收到了 400 错误。 整个请求/响应如下: POST /wordpress/token.php HTTP/1.1 Host: localhost Content-length: 191 content-type: application/x-www-form-urlencoded user-agent: google-oauth-playground code=6d408c28d468db6586320bff3aacf16492489b67&redirect_uri=https%3A%2F%2Fdevelopers.google.com%2Foauthplayground