api-manager | Help front-end and back-end devolopers | REST library
kandi X-RAY | api-manager Summary
kandi X-RAY | api-manager Summary
Help front-end and back-end devolopers to work with APIs faster and easier. features: API define, mock, test, document. like postman, rap. API接口管理平台,支持接口实际和mock测试
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Compare history info
- Build request params list
- Build response params list
- Build list of request head params
- Create PDF document
- Creates the script engine
- Processes the given template and returns the rendered content
- Generate a PDF file
- Add user account
- Add d to server
- Add a Department to Department
- Delete department
- Update department s data
- Delete module
- Delete module
- Update user account
- Update dto
- Find a list of all tables in the database
- Update DTO
- Delete action request
- Find metadata
- Checks if login URL is enabled
- Makes a JSON object that describes the DBResDto
- Update request
- Make a JSON object describe to a JSON object
- Download PDF document
api-manager Key Features
api-manager Examples and Code Snippets
Community Discussions
Trending Discussions on api-manager
QUESTION
I'm building an Azure Function app that is being exposed via Azure API Management. We need to know the path of the URL before it's redirected by API Management. We're currently doing that by setting the original URL in the header with an inbound policy, like this:
...ANSWER
Answered 2022-Feb-18 at 22:59Justin Matthew had the right of it. Changing the header name to something else fixed the issue. Something else in the pipeline must have been trying to utilize that same header value.
QUESTION
I have a use case to use single policy.xml for different environments however the rate-limit is applicable only for certain environment.
For eg:
Dev: rate-limit is applicable (hosted in dev azure subscription)
QA: rate-limit is not applicable (hosted in test azure subscription)
Prod: rate-limit is applicable (hosted in prod azure subscription)
Update: Tried this from one of the posts here post:
...ANSWER
Answered 2022-Feb-15 at 16:031.The subscription key based approach is below.
You can define a subscription key on each of the environmen. In the below example i am creating a subscrption named dev
on dev environment and prod
on prod environment. You can check this link to understand how to create a subscription key. Once you creaete subscription keys on all three environment. You can add the following policy to your inbound policies.
QUESTION
I have extended the Abstract handler class and written my own custom handler class in wso2 apim. I am able to get the logs for this custom handler as well. For token validation I am using some okta dependencies in my project (okta-jwt-verifier and okta-jwt-verifier-impl). I have added the myCustomHandler.jar and other 2 jars of the above mentioned dependencies in /repository/components/lib folder. After starting the server I am not getting any error but when I hit the API request I am getting following runtime error,
...ANSWER
Answered 2022-Jan-10 at 07:24Make sure to update the pom file for your project you implemented with okta-jwt-verifier and okta-jwt-verifier-impl dependency. You should add dependencies in pom.xml
like below. Check only versions of using jars.
QUESTION
I follow the guide https://apim.docs.wso2.com/en/latest/reference/customize-product/extending-api-manager/saml2-sso/configuring-identity-server-as-idp-for-sso/#configuring-wso2-identity-server-as-a-saml-20-sso-identity-provider but getting
Error 403 : Forbidden
The server could not verify that you are authorized to access the requested resource
when try to login to publisher -
...ANSWER
Answered 2021-Dec-29 at 16:30The following answer applies if you are running the API Manager and Identity Server with separated User Stores configured. Apply the following configurations on top of the instructions mentioned in the Docs and try out the scenario.
Add two roles in the Identity Server named
publisher
andcreator
without any permissions and assign both to the User that you are using to log in. You can skip this part if you already have roles assigned to the User in the Identity Server to do a Role Mapping in the API Manager server.Open the Service Provider you have created in the Identity Server and go to
Inbound Authentication Configuration
>SAML2 Web SSO Configuration
and click onEdit
. Tick theEnable Attribute Profile
andInclude Attributes in the Response Always
andUpdate
Expand the
Claim Configuration
of the Service Provider that is created in the Identity Server and select theUse Local Claim Dialect
option. Then, click onAdd Claim URI
and in the appeared drop-down selecthttp://wso2.org/claims/role
and tick theMandatory Claim
. Once done, update the configurations.Open the Identity Provider that is created under the API Manager server and expand the
Role Configuration
section.- Click on
Add Role Mapping
and enter the followingIdentity Provider Role
:publisher
(use the correct role name that you have assigned in the Identity Server)Local Role
:Internal/publisher
- Click on
Add Role Mapping
and enter the followingIdentity Provider Role
:creator
(use the correct role name that you have assigned in the Identity Server)Local Role
:Internal/creator
Update the configurations.
- Click on
Once the configurations are saved, now try logging into the Publisher Portal of the API Manager with the specific user.
QUESTION
I've read documentation of wso2am for http access logs in the link https://apim.docs.wso2.com/en/latest/observe/api-manager/monitoring-http-access-logs/ it's written that we should enable http access log only for troubleshooting errors because of performance reason. but i need to log information of every http call( not only for troubleshooting). what is your suggestion?
...ANSWER
Answered 2021-Dec-09 at 07:10You can enable the HTTP Access Logs if you are in need to log the incoming API requests in your environment. However, as mentioned in the Docs this will affect the server's performance a little.
If you are looking to log any specific information about the incoming API requests, you can develop a Synapse mediator or a handler and engage with the APIs that you would like to log. You can also, use the same implementation to enable it globally to log the required information for all the API requests which API Manager receives. You can refer to the following sample Log Handler for reference: Custom API Log Handler.
Following are the documentations to write custom mediators and handlers
QUESTION
I have followed this tutorial https://apim.docs.wso2.com/en/latest/administer/key-managers/configure-keycloak-connector/ for integrating Keycloak as Key Manager with WSO2 API Manager 4.0.0 and everything is done as described but when I try to obtain client_credentials access_token an error is rising on WSO2 http client - Keycloak communication, viewing the traces it is related to feign. The error is this:
...ANSWER
Answered 2021-Jul-01 at 16:52WSO2 API Manager uses the Feign OKHTTP
Client to communicate with Keycloak servers. The OKHTTP
client requires the public cert with SAN
entries as the same as CN
.
The default public cert of the Keycloak doesn't contain any SAN
values. Therefore, when trying to communicate with the Keycloak, the Feign client starts to throw SSL exceptions. To overcome this, you can follow this documentation, creating a new Keystore for the Keycloak and import that cert into the client-truststore.jks
of the API Manager. The mentioned keytool
commands generate the Keystore and certs with SAN
entries.
Given is the same Keytool command from the API Manager Docs.
QUESTION
While configuring fresh installs of wso2 API-Manager and Identity server, we have encountered this issue. Identity providers added through the API UI will populate in the IS UI, but service providers added through the IS console do not appear on API.
The two servers are running on EC2 instances with all traffic opened between them and we have verified on a different installation that the certs and keystores being used should not be causing any problems. We have not seen any specific connection refused issues in the logs, either, and the tcpdump shows that the two servers are communicating back and forth with each other. Using the working installation as a reference, there also does not appear to be any discrepancies from the deployment.tomls.
Both EC2s share the same RDS postgres database, but what is interesting is that if you try to manually add the service provider in the API UI, it will say that a provider with the same name already exists (meaning that it is reaching out to the database and finding the providers created in IS but it's still not populating them in the list in API console).
We've really been stumped by this one so any help would be greatly appreciated. Even trace/debug logs have not been helpful, but just let me know of any screenshots that could aid in remedying this problem. Thank you.
Edits: WSO2 AM is version 3.1.0, WSO2 IS is version 5.10.0. Both shared_db and the am_dbs are shared across both instances
deployment.toml for IS
...ANSWER
Answered 2021-Jun-30 at 18:06As per the shared TOML configurations, a separate UM DB has been configured in both WSO2 IS-KM and API Manager servers. However, only the IS-KM is configured to use the WSO2USER_DB
with the following configurations
QUESTION
I've been using trying out the WSO2 API Manager 3.2.0 to generate REST APIs for a SOAP web service and have successfully traversed the procedures. I enabled message wire tracing in order to view the requests-responses in the logs. I can see that a correctly formatted message is being created and sent to the back end service, however, the response is not as expected. I've noticed some extra text (usually "16e" as in the second to last line) is sent just before the XML payload and is therefore being processed as the payload. I suspect that it's the cause of my problems, but I am unable to trace where it originates.
...ANSWER
Answered 2021-May-14 at 17:22I got the source of the 16e from https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Transfer-Encoding#directives
chunked
Data is sent in a series of chunks. The Content-Length header is omitted in this case and at the beginning of each chunk you need to add the length of the current chunk in hexadecimal format, followed by '\r\n' and then the chunk itself, followed by another '\r\n'. The terminating chunk is a regular chunk, with the exception that its length is zero. It is followed by the trailer, which consists of a (possibly empty) sequence of entity header fields.
The problem turned out to be the content-type. I was sending the value "application/soap+xml" and changed that to "text/xml" by adding the line below in the xml config file for the api found in /repository/deployment/server/synapse-configs/default/api/
QUESTION
I have one WSO2 Identity server running on docker container and My API-Manager is configured to use it as key manager. API Manager is also running on docker.
When Iam Trying to get a token in Postman, I call this https://myhost.com:8243/token?grant_type=client_credentials
with base64 encoded "client_id:secret" it gives me this exception:
ANSWER
Answered 2021-Apr-27 at 09:46I guess you haven't disabled hostname verification in Synapse level. This can be done using the following config in the deployment.toml
QUESTION
I'm trying to publish an API in WSO2 API Manager and when I try to Publish it shows an error:
...ANSWER
Answered 2021-Mar-11 at 16:15As @RrR said I needed to put the throttling configuration in deployment.toml:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
Install api-manager
You can use api-manager like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the api-manager component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page