List admin services used by WSO2 carbon based servers? - wso2

You can list down all the Admin Services used by WSO2 carbon based products using following steps.
Start the server with OSGI console. Go to the <SERVER_HOME>/bin
using command shell.
i) Eg : Linux
sh wso2server.sh -DosgiConsole
ii) Windows
wso2server.bat -DosgiConsole
After successfully started the server, press enter.
Type listAdminServices and press enter.
Now you should be able to see the list of Admin Service names with endpoint URLS.
Thanks & Regards,
Ajith

You have provided the question and answer both :) However I just like to add more in to this;
If you want to retrieve the WSDLs of admin services of WSO2 Identity Server; Go to CARBON_HOME/repository/conf directory and change the value of the HideAdminServiceWSDLs in carbon.xml file like below and restart the server.
<HideAdminServiceWSDLs>true</HideAdminServiceWSDLs>
to
<HideAdminServiceWSDLs>false</HideAdminServiceWSDLs>
Then you can retrieve the WSDLs by browsing the service by adding "?wsdl" option.
For example, if you can find entitlement service
https://{Hostname}:{port}/services/EntitlementService?wsdl

Related

Using smartcard credentials, obtained by a webpage

I have two servers on a Windows domain that include an active directory that is correctly configured to allow users to login using smartcard credentials. Currently, I can login to server1 and run remote PowerShell commands on server2 using smartcard credentials through WinRM, without any problem.
I would like to build some sort of web service (preferably on node.js) on server1, so that it presents a user with a webpage that prompts for smartcard credentials. Using these credentials, server1 would be able to run remote PowerShell commands on server2.
Is this possible? I saw some references to pcsclite on other posts. Is this all I need? If so, could someone provide a code snip-it of something that could accomplish this?
Maybe a simpler question that could help me get started, would be how could I even use these credentials to connect to a file share on server2 and download a file?
Thanks!
Look int using WAP in IIS to set up a gateway and use Active Directory Client certificate mapping

Web API calls Authentication in WSO2 IS

I have tried searching for samples in implementing authentication using WSO2 Identity Server for web API calls residing in other servers but cant seem to find one. I can only find authentications on WSO2 IS API calls. Can you refer some links for examples or tutorials
You can get all the admin APIs using following way.
Start the server using -DosgiConsole flag, i.e. ./wso2server.sh -DosgiConsole or ./wso2server.bat -DosgiConosle
Then after the server start you will get the osgi console. Enter listAdminServices and you will get the list. ex:
osgi> listAdminServices
Admin services deployed on this server:
1. ProvisioningAdminService, ProvisioningAdminService, https://10.150.3.140:9443/services/ProvisioningAdminService/
All the commands such as listAdminServices are listed by typing help from the osgi console.
By default, these admin APIs are hides, you have to enable them. To do that, change <ESB_HOME>/repository/conf/carbon.xml file.
<!-- If this parameter is set, the ?wsdl on an admin service will not give the admin service wsdl. -->
<HideAdminServiceWSDLs>false</HideAdminServiceWSDLs>
Note: All servers expose Web Service APIs which can be used for to gain access to back end functionality.

Unable to access WSO2 EMM store and publisher via reverse proxy

I have setup WSO2 EMM 1.1.0 on a server but I want the requests to the server to flow through another server which has the reverse proxy entries being managed on nginx.
I am able to access the carbon management console, but not able to access the store or publisher.
The store or publisher sites redirect to /samlsso and /sso/login which are local redirects. I am not able to find the location of these redirects and how they can be modified.
Please help!
WSO2 EMM 1.1.0 was released with WSO2 Carbon 4.2.0 kernel. Hence you won't be able to use this method. Please use the configuration files given below and modify the "identityProviderURL" property to configure the location of SSO application.
https://github.com/wso2/product-emm/blob/1.1.0/modules/apps/emm/config/config.json
https://github.com/wso2/product-emm/blob/1.1.0/modules/apps/publisher/config/publisher.json
https://github.com/wso2/product-emm/blob/1.1.0/modules/apps/store/config/store.json
Regards,
Harshan
you can configure reverse proxy on any wso2 product by following documentation Adding a Custom Proxy Path

Management web service for WSO2 ESB

Does WSO2 ESB support web services for system management?
I want to develop a desktop program to connect to ESB server and do the administration tasks without using web application.
There is already existing services in side the ESB which is also used by the admin GUI.
Step 1: Make admin services WSDL visible by editing carbon XML ({ESB_HOME}/repository/conf/carbon.xml)
<HideAdminServiceWSDLs>false</HideAdminServiceWSDLs>
Step 2: See which services available for you to use by starting ESB with osgiConsole
sh {ESB_HOME}/bin/wso2server.sh -DosgiConsole
Step 3: See the list of services ( you can type this in ESB command window, just type enter you will get osgi command mode )
osgi> listAdminServices
you can see sample java client login to ESB and listing user roles in below link, just refer this for your service implementation. Basically first need to login to ESB before calling any admin service and use login cookie to call other services on next step.
http://blog.facilelogin.com/2011/03/invoking-wso2-carbon-admin-services.html

WSO2 Identity Server REST and SOAP call

WSO2 Identity Server : I am new to WSO2 Identity Server. Could somebody help to get list of REST call and soap call supported by WSO2 Identity Server
This blog post has an example of using WSO2-IS APIs.
Take a look at the answer to the following question also. WSO2 identity server api
WSO2 products are manage internally SOAP web services known as admin services. The admin service wsdl as bellow.
https://localhost:9443/services/UserAdmin?wsdl
Note: you cannot view the wsdl of admin service by default due to security reason. Configure the following steps to enable and invoke the admin service wsdl.
Set the <HideAdminServiceWSDLs> element to false in <IS_HOME>/repository/conf/carbon.xml file.
<HideAdminServiceWSDLs>false</HideAdminServiceWSDL>
Restart the server.
Also you can use OSGi console to get the list of SOAP Services exposed in Identity Server and view the available service components details. To enable osgi console doing following steps.
Get osgi console by executing the following command.
<IS_Home>/bin/wso2server.bat –DosgiConsole
After successfully started the server press ‘Enter’ key and osgi>console will be displayed.
To get all admin services that are deployed on this server.
osgi> listAdminServices
List down all hidden services that are deployed on this server.
osgi>listHiddenServices
All services expose Web Service APIs which can be used for to gain access to back end functionality.