I compiled pizza shack sample application and deployed directly on WSO2 Application Server. But I am not able to get in, as I don't know default username and password for the same. Please help me.
2 Answers
You should be able to login as the default admin, or any user you have created in API Manager. When a user logs in ,it generates a token using the credentials provided. If the token endpoint isn't specified , or if API Manager is not started, then the token generation request may fail, making it appear as a login failure. The README file explains how the sample should be configured.

- 716
- 4
- 6
-
HTTPSender Unable to sendViaPost to url[https://100.101.153.254:9443/services/AuthenticationAdmin] from where this ip address coming, this is not my system public ip address, any advice? – Venkateswararao T Nov 22 '13 at 15:56
-
Does this come from API Manager Console? – Amila De Silva Nov 22 '13 at 16:05
-
Yes it is in wso2 AM console – Venkateswararao T Nov 22 '13 at 16:23
-
Yes it is in WSo2 AM console – Venkateswararao T Nov 22 '13 at 16:24
-
Try specifying your public IP for ServerURL under AuthManager section in api-manager.xml. The default value is
https://${carbon.local.ip}:${mgt.transport.https.port}/services/ which resolves to the private IP. – Amila De Silva Nov 22 '13 at 16:31 -
where is the location of api-manager.xml is that in wso2am or wso2as – Venkateswararao T Nov 23 '13 at 03:13
-
even I changed ServerURL with ip address 192.168.2.1 I am seeing the following ip address bound as per the api manager server startup as follows [2013-11-22 21:18:25,123] INFO - CarbonUIServiceComponent API Publisher Default Context : http://100.107.140.34:9763/publisher [2013-11-22 21:18:25,123] INFO - CarbonUIServiceComponent API Store Default Context : http://100.107.140.34:9763/store when setup server url with
https://192.168.2.1:${mgt.transport.https.port}/services/ – Venkateswararao T Nov 23 '13 at 03:26 -
To bind entire API Manager to the public IP, you have to change HostName and MgtHostName elements giving your public IP.
{publicIP} and{publicIP} . These are defined in/repository/conf/carbon.xml, and are commented by default. – Amila De Silva Nov 23 '13 at 11:29 -
Thanks a lot this resolved the ip issue, now I am able to use ip address 192.168.2.1, however, I am still not able to login with admin account into pizzashack web application. any advice? – Venkateswararao T Nov 23 '13 at 12:03
-
Does it still give the same exception in APIM Console? – Amila De Silva Nov 23 '13 at 12:04
-
I don't see any log now in APIM console, but seeing this on AS Console `
yourName@t-online.de yourPassword
The login you have to use to the Pizza Shack application is the same you use to login to the API Store (as a subscriber) - Prior to deploying the PizzaApp you need to set the right consumer key/consumer secret values in the web app settings and re-compile it.
Please have a look at this tutorial, which we did at the latest WSo2Con, I think it will help. https://www.dropbox.com/s/e0zf7dd8o6t0nyv/Tutorial-APIMgt-WSo2Con2013.pdf Isabelle.

- 86
- 4