简体   繁体   English

如何在授权代码流程中查看我的授权代码?

[英]How do I check my authorization code in authorization code flow?

I am using ADB2C and MSAL to create an authentication function. And,Authorization code flow is used.我正在使用 ADB2C 和 MSAL 创建身份验证 function。并且,使用了授权代码流。 I know how to check the contents of the token, but I don't know how to check the contents of the authorization code.我知道如何查看令牌的内容,但我不知道如何查看授权码的内容。 Please tell me.请告诉我。

You can not decode the authrization code.您无法解码授权码。

When you perform the Authorization Code Grant workflow, the Code response you get back from authorization server is not intended to be decoded as a JWT token.当您执行授权代码授予工作流时,您从授权服务器返回的代码响应不会被解码为 JWT 令牌。 That code can only be exchanged for an Access Token.该代码只能交换访问令牌。 It has no other purpose它没有其他目的

You can refer this document for why we use auth codes to reduce the risk of an attacker.您可以参考此文档了解我们为什么使用授权码来降低攻击者的风险。

Reference: Decode JWT token received from Authorization Code参考: 解码从授权码收到的 JWT 令牌

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 授权代码流如何在单页应用程序中工作? - How authorization code flow works in single page applications? OAuth2 Authorization Code flow 是一种身份验证协议吗? - Is OAuth2 Authorization Code flow an authentication protocol? Microsoft 标识平台和 OAuth 2.0 授权代码流 (PKCE) - 错误“AADSTS700025” - Microsoft identity platform and OAuth 2.0 authorization code flow (PKCE) - Error "AADSTS700025" AWS Cognito 如何在收到授权码后查询 JWT 令牌 - AWS Cognito how to query for the JWT Token after receiving an authorization code 我无法从程序中获取授权码 - I am not able to get the authorization code from program 在 oauth2.0 授权代码授权流程中获取新的刷新令牌 - Get new refresh token in oauth2.0 authorization code grant flow 如何在 .net c# 中生成 Oauth2 OIDC 授权码 - How generate Oauth2 OIDC Authorization code in .net c# Databricks Python Notebook中如何输入googleapiclient授权码 - How to input googleapiclient authorization code in Databricks Python Notebook 使用无服务器框架在 lambda AWS 中授予授权代码 - Authorization code grant in lambda AWS with Serverless Framework vs code 在安装过程中更改 Firebase 帐户时要求授权码 - vs code asking for authorization code in changing Firebase account during installation
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM