sidd-harth / mule4-mcd-level2 Goto Github PK
View Code? Open in Web Editor NEWThis repo contains solutions for all hands-on exercises
This repo contains solutions for all hands-on exercises
Hi Siddharth!
First of all thank you for taking the time to teach, your course is very well designed and all the steps are very clear.
I would like to report you that the authentication for reservations API is not working.
Global.xml config
<os:object-store name="oauthTokenObjectStore" doc:name="Object store" doc:id="73b7eefd-95c8-4308-9ee4-45fa7c32c15e" entryTtl="60" entryTtlUnit="MINUTES" expirationInterval="60" />
<http:request-config name="bookingDataByBID" doc:name="HTTP Request configuration" doc:id="72e7570b-e2d6-47d2-bae2-4f31e6de555a" basePath="/booking" >
<http:request-connection protocol="HTTPS" host="onlineman477-eval-prod.apigee.net" port="443" >
<http:authentication >
<oauth:client-credentials-grant-type clientId="KZ25TpHNeppVOmwtKpD6jQAjnq4vrLG1" clientSecret="CYBpVYhSeqSy4GSR" tokenUrl="https://onlineman477-eval-prod.apigee.net/owasp-oauth/token" >
<oauth:token-manager objectStore="oauthTokenObjectStore" />
</oauth:client-credentials-grant-type>
</http:authentication>
</http:request-connection>
</http:request-config>
Received Error
"Error response when calling token URL 'https://onlineman477-eval-prod.apigee.net/owasp-oauth/token'. Response was:
DefaultHttpResponse {
responseStatus: 404 (Not Found),
headers: MultiMap{[date=[Thu, 09 May 2024 12:56:39 GMT], content-type=[text/html], content-length=[344], connection=[keep-alive], etag=["60adabf8-158"], x-frame-options=[DENY], x-xss-protection=[1], x-content-type-options=[nosniff], strict-transport-security=[max-age=86400], content-security-policy=[frame-ancestors 'none']]}
}
<!DOCTYPE html>
<html>
<head>
<title>Error</title>
<style>
body {
width: 35em;
margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif;
}
</style>
</head>
<body>
<h1>An error occurred.</h1>
<p>Sorry, the page you are looking for is currently unavailable.<br/>
Please try again later.</p>
</body>
</html>
"
I'm using curl command placed into hands-on-solutions/Section2/2.4/OAuth_Details.txt
โ --request POST 'https://onlineman477-eval-prod.apigee.net/owasp-oauth/token' \
--header 'Authorization: Basic S1oyNVRwSE5lcHBWT213dEtwRDZqUUFqbnE0dnJMRzE6Q1lCcFZZaFNlcVN5NEdTUg==' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=client_credentials'
<!DOCTYPE html>
<html>
<head>
<title>Error</title>
<style>
body {
width: 35em;
margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif;
}
</style>
</head>
<body>
<h1>An error occurred.</h1>
<p>Sorry, the page you are looking for is currently unavailable.<br/>
Please try again later.</p>
</body>
</html>
Hope to help to fix and improve the experience!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.