简体   繁体   English

如何在 WSO2 3.2.0 APIM 中启用隐式授权?

[英]How can I enable Implicit Grant in WSO2 3.2.0 APIM?

Implicit Grant type was there in WSO2 API manager 3.0.0 like this (in create application flow), WSO2 API manager 3.0.0 中存在隐式授予类型(在创建应用程序流程中), 在此处输入图像描述 but now it's not available in the 3.2.0 version.但现在它在 3.2.0 版本中不可用。 在此处输入图像描述 is there a simple way to re-enable it?有没有一种简单的方法可以重新启用它?

I'm aware of Implicit Grant is Deprecated and has been removed from many applications .我知道隐式授予已被弃用,并已从许多应用程序中删除 but what I want to do is test old sample application.但我想做的是测试旧的示例应用程序。 Nothing mentioned about this change in their changelog v 3.1.0 , v 3.2.0在他们的更新日志v 3.1.0v 3.2.0中没有提及此更改

By default, the implicit grant type is not displayed in WSO2 APIM-3.2.0 devportal for the applications.默认情况下,应用程序的 WSO2 APIM-3.2.0 devportal 中不显示隐式授权类型。 You can enable it via the admin portal.您可以通过管理门户启用它。 Please follow the below steps.请按照以下步骤操作。

  1. Navigate to admin portal via https://{hostname}:{port}/admin通过 https://{hostname}:{port}/admin 导航到管理门户
  2. On the left menu panel click on "Key Managers"在左侧菜单面板上单击“密钥管理器”
  3. Click on "Resident Key Manager"点击“常驻密钥管理器”
  4. Under "Grand Types" add implicit and press enter在“Grand Types”下添加隐式并按 Enter 在此处输入图像描述
  5. Click on "Update"点击“更新”
  6. Navigate to devportal via https://{hostname}:{port}/devportal通过 https://{hostname}:{port}/devportal 导航到 devportal
  7. Open an application and navigate to "Production Keys"打开应用程序并导航到“生产密钥”
  8. Now you can see the implicit grant type checkbox现在您可以看到隐式授权类型复选框在此处输入图像描述 The above steps will allow you to have the implicit grant type for all the applications and you don't have to enable the implicit grant type for each and every application you create.上述步骤将允许您为所有应用程序拥有隐式授权类型,并且您不必为您创建的每个应用程序启用隐式授权类型。

This has been done on purpose as the OAuth 2.1.0 has removed/discouraged the use of the implicit grant type due to security concerns.这是故意的,因为 OAuth 2.1.0 出于安全考虑已删除/不鼓励使用隐式授权类型。 Please refer link for more details.请参阅链接了解更多详情。

Edit: I posted this before accepting the correct answer & keep it here as a workaround.编辑:我在接受正确答案之前发布了这个并将其保留在这里作为解决方法。

I found a solution workaround, You can still add that grant type by using Management Console (https://localhost:9443/carbon/).我找到了一种解决方法,您仍然可以使用管理控制台 (https://localhost:9443/carbon/) 添加该授权类型。

In Management Console, Service Providers > list > Edit "created application" > Inbound Authentication Configuration > OAuth/OpenID Connect Configuration > Edit在管理控制台中,Service Providers > list > Edit "created application" > Inbound Authentication Configuration > OAuth/OpenID Connect Configuration > Edit

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

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