wso2 在没有令牌的情况下调用 API [英] wso2 calling API's without token

查看:36
本文介绍了wso2 在没有令牌的情况下调用 API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 WSO2 API Mananger 管理我的 API.直到现在每个 API 都是私有的,可以使用访问令牌进行访问.新用例是一些完全公开的 API.任何人都可以匿名访问它们.没有任何令牌/访问详细信息的 GET、POST、PUT 应该可以工作.

I am managing my APIs using WSO2 API Mananger.Till now every API were private and can be accessed using an access token. The new use cases some API's which is purely public. Any one can access them anonymously. Just a GET,POST,PUT wihtout any token/access details should work.

我通过 WSO2 API 管理器公开了 API,没有任何范围.试图在没有任何令牌的情况下访问它们;但它不起作用.它说找不到所需的 oAuth 凭据.还有什么办法可以公开 API 以便匿名访问它们吗?

I exposed API's via WSO2 API Manager without any scopes. Tried to access them without any token ;but its not working.It says required oAuth credentails not found. Is there anything else to do to expose APIs so that they are accessible anonymously?

推荐答案

在发布者的Manage页面中,可以将Authentication Type设置为None 而不是默认值 Application and Application User.

In the Manage page of publisher, you can set Authentication Type to None for each resource instead of the default value Application and Application User.

这篇关于wso2 在没有令牌的情况下调用 API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆