WSO2 API Manager, is it possible to disable the access-token mechanism

梦想与她 提交于 2019-12-01 11:38:55

问题


Is it possible to disable the access-token mechanism in WSO2 API Manager? So we do not have to set the authentication bearer header .I know I can set the access-token time-out to -1 seconds, to make it endless.


回答1:


Yes You can. WSO2 API Manager provides resource level authentication where you can specify the authentication mechanism for each HTTP verb. If you set it to 'None', then you do not need to set Authorization headers when you call the API.

As given in the document[1],when creating the API set 'AuthType' value as 'None' for all the HTTP verbs.

[1]http://docs.wso2.org/display/AM150/API+Resources




回答2:


Also, you can edit the swagger for the resources (In latest api manager versions). In the "Design" tab of api select edit source under the "API Definition" section. Then in the swagger under the specific resource you want to skip authentication edit the attribute x-auth-type as follows

x-auth-type:None


来源:https://stackoverflow.com/questions/21113093/wso2-api-manager-is-it-possible-to-disable-the-access-token-mechanism

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!