Rest API for replacement of challenge questions SOAP API in WSO2 version 6.0 - wso2-identity-server

This is an extension for WS02 Identity Server 6.0 for challenge questions rest API question
Step1: In our project, we are currently using wso2 version 5.10
Step2: We are using challenge questions mentioned in this locationenter image description here
We are adding local claims of all those 8 questionsenter image description here. Here we are not using any set concept, we are giving individual questions.
Step3: We are using UserIdentityManagementAdminService.wsdl for challenge questions. We are using getAllChallengeQuestions, setChallengeQuestionsOfUser and getChallengeQuestionsOfUser SOAP API's for retrieving and updating those security questions mentioned in the above location.
Now we are planning to upgrade the WSO2 version from 5.10 to 6.0. In version 6.0, they are suggesting to use rest API's instead of SOAP API's. So Is there any rest API available in version 6.0 for the replacement of getAllChallengeQuestions, setChallengeQuestionsOfUser and getChallengeQuestionsOfUser SOAP API's?

I managed to create new Question sets with just one question and manage to achieve this. To create the sets I used the old carbon console (https://localhost:9443/carbon) and navigated to Main>Manage<Challenge Questions>Add Challenge Question Set. Make sure to set the language of the questions correctly.
After doing that I used /me/challenges to get all the questions and I could see all the sets with exactly one question each. Then you can use PUT and POST APIs in the ME section to update the answers.

Related

FrontierLink B2B getting started

Has anyone of you already tried integrating with FrontierLink?
Found in their documentation
5.2 Building the FrontierLink Client
5.2.1 SOAP Client Environment
You must adhere to the following minimum requirements for SOAP clients in order to successfully integrate with FrontierLink:
XML 1.0
SOAP 1.1
HTTP 1.0 (1.1 preferred)
SSL based connection authenticated via X.509 Digital Certificates
WSDL1.1
A Web Services toolkit supporting WSDL 1.1 is recommended to aid your development.
In their documentation there is no sample on how to get started. I am really sorry for asking this question but what would be the code for connecting to FrontierLink? Thanks! Hoping for someone who can help :) Thank you once again!
May you please show us an example of the FrontierLink API? so that I may be able to help you further?
Just in a nutshell with what I understand when using SOAP api, you will have to call the APIs or links from your application(web/mobile) and in turn the API will return data in form of XML. you will then have to parse that data so that you may able to use that in your application.

Migration path for Fql.multiquery

I'm new to Facebook development. I'm working on migrating an existing app in accordance to the Graph API upgrade guide. I'm looking for guidance around calls such as api.facebook.com/method/Fql.multiquery.
My question is: does this type of API need to be upgraded as well, or does it only apply to graph.facebook.com calls? I want to ensure that api.facebook.com/method/Fql.multiquery calls will still work after 4/30/15.
You may want to take a look at the Batch Requests of the Graph API. You can also specify dependencies between the requests.
Calls to http://api.facebook.com/method/Fql.multiquery will no longer work. The REST API is long deprecated anyway.
As #luschn said, you have to migrate to the Graph APIs batch requests, and use the /fql endpoint. You can only use FQL if you have a v2.0 app, and not higher.

WSO2 DSS: Unable to connect to Google spreradsheet

I am trying to connect to a newly created Google spreadsheet, using the WSO2 Data Services Server (DSS), but it keeps giving me an error when I test the connection. I am using WSO2 DSS 3.2.1 with JDK 1.7.0_60 on Windows.
The sample Google spreadsheet is working fine.
It looks like this problem is due to the new format of the Google Doc URLs (introduced in March 2014)
https://docs.google.com/a/ishafoundation.org/spreadsheets/d/1U0uI5sKHy0WVgQcVtZ4mYMHSzTYZZJse35xy1Y1N7Xg/edit#gid=0
The older format is:
https://docs.google.com/a/ishafoundation.org/spreadsheet/ccc?key=1U0uI5sKHy0WVgQcVtZ4mYMHSzTYZZJse35xy1Y1N7Xg&usp=drive_web#gid=0
As a workaround to this, I am creating my spreadsheet in the old version of Google Sheets, using this link:
https://g.co/oldsheets
However, this message is on the Google Sheets help page
*Spreadsheets created in the old version of Sheets will eventually be converted to the new Sheets, which won’t require any action on your
part. More details coming soon. Thanks
This looks a bit scary to me, since it basically means that my data service will break at some random point in the future when Google decide to change the URL formats... Can someone from WSO2 let me know if this will be fixed in the next DSS update, and when we can expect it to be released.
Just a suggestion - but wouldn't it be better if we only had to enter the unique key for the spreadsheet (instead of the full link), and the DSS server used the Google Sheets API to retrieve the data. This might make our implementations a little more future-proof.
Yes this will be fixed in DSS 3.2.2 release. Associated JIRA is DS-930. Alpha pack can be found from this location
Thanks
Chanika

WSO2 API Manager: PUT and OPTIONS invocations fail at the Gateway

We are trying to implement CORS support in our APIs, and it we are getting an error from API Manager that is exactly the same as what is described here.
We are using API Manager 1.3.
Can someone confirm that there is no way to support OPTIONS with API Manager 1.3? We don't want to upgrade to 1.4 at this time.
There was another issue which we found when using PUT and OPTIONS method from APIs as described in [1].
This was fixed with AM 1.4.0.Hence better option is to upgrade to 1.4.0 as it contains fix for both your mentioned issue and mine mentioned one.And additionally AM 1.4.0 contains several new features with it.
[1] https://issues.apache.org/jira/browse/SYNAPSE-919
Thanks;

How to programatically create a Facebook application via JS SDK or Open Graph API? (createApplication)

I know there are currently two methods that can be used to do this, documented (poorly) on Facebook's Developer site:
The old (depreciated) JavaScript SDK FB.Connect.createApplication
A new FBJS method Facebook.createApplication (only for use on Canvas pages)
The problem is that I not using a Canvas app that runs FBJS, and I am not using the OLD JS SKD. I am trying to do this on a regular old PHP website that uses the current JavaScript SDK and the PHP SDK.
I am doing the usual Open Graph API calls and such with the current SDK, so I understand the basics, I'm just not sure how to proceed to use the OLD SDK, or if (fingers crossed) I even really have to?
So, is there a way to make new Facebook Apps with the current JS SDK? Or with a server side PHP SDK call to the Graph?
And if not, how do I call the old SDK to do this?
Thanks
UPDATE: You still can't do this, but there is an official bug in the Facebook tracker about it: http://developers.facebook.com/bugs/295627350461318
There isn't outside of the OLD SDK as you indicated. It's been removed (what Facebook calls "deprecated"). I put in a feature request recently for them to add it back into the API:
Me:
The Facebook Developer tool is
considerably lacking in features. We'd
like to be able to create a third
party application that adds layers of
functionality to the developer
application, but we'd need to be able
to create and administer applications
via the Graph API.
The Graph API supports querying for
information on existing applications.
To create, administer or delete
applications developers must go to the
Developer Application.
Them:
------- Comment #1 From Jeff Bowen 2010-12-07 16:59:12 (-) [reply]
------- Thanks for the request. We’ll track this on our wishlist