send a body value from a service to BAM [closed] - web-services

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I have difficulties to understand how to log a XML XPath property in a webservice with WSO2 BAM.
Indeed I want to basically take a subset of the payload returned by my backend and send this subset to WSO2 BAM
How to do it ?
Tks
Nicolas

You can use the Property mediator in ESB to capture the product price using xpath in the message body and set it as a property in Message Context of ESB. Next to the Property mediator add the BAM mediator to ESB sequence and capture the property in the Message Context as shown in [1]. In the document it has shown how to capture the System Date. Similarly you can capture the product price property. (e.g., get-property('product_price'))
[1] http://docs.wso2.org/wiki/display/BAM220/Setting+up+BAM+Mediator

Related

WSO2 IS Challenge Question Evaluation Case-Sensitivity, Configuration

Trying to find out whether WSO2 Identity Server (IS) requires case-sensitivity by default when evaluating challenge question answers in password reset requests. If not, is there a configuration flag to enable/disable case-sensitivity or any other configuration to enforce or not require case-sensitive challenge question answers?
In the code level, the answer user provide will be converted to lowercase and then hashed[1] This hashed value will be compared with the stored value. So as an answer to your question challenge question answers of the user is not case-sensitive.Also, there is no configuration to make it so OOTB.
[1].https://github.com/wso2-extensions/identity-governance/blob/824fa6505eeabcf50de13bb2272e586f7e34ff25/components/org.wso2.carbon.identity.recovery/src/main/java/org/wso2/carbon/identity/recovery/ChallengeQuestionManager.java#L760

WSO2 IS - Is there any rest or soap endpoints where we can update the challenge questions of a user

we need to implement the "Update Challenge Questions of a user" functionality through WSO2 IS. We have an application UI from where post login, user can update his challenge questions as well as answers. I found that with the "setChallengeQuestionsOfUser" operation in the "UserIdentityManagementAdminService?wsdl", we can save the challenge questions and answers of a user. Do we have any operation for update scenario?
If i use the same operation, it saves the questions and answers to WSO2 IS for that user, but it does not remove old questions.
No, update challenge question operation is not available via rest or soap endpoints.

How to create a news feed like Facebook using Django, Tastypie, Redis and the task queue Gearman? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Can anyone recommend or create a tutorial on how to make a news feed similar to that of Facebook's only using Django, Tastypie (webservice API framework for Django), Redis (key-value store) and Gearman (task queue)?
Currently I have user model, post model, favorites model and a comment model. I have created Tastypie resources with these models to allow for favoriting, liking, commenting and posting.
I would like to know how to generate feed actions that apply directly to the user. For example:
User1 commented on your post. (2 seconds ago)
User2 liked your post. (3 mins ago)
User2 & User1 favorited your post (5 mins ago)
I really require in depth examples and tutorials on how to build an activity feed using the technologies above. Any help would be appreciated.
You can create an activity stream with the app django-activity-stream.

some questions about Facebook Graph api [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have been doing extensive research on facebook graph api and still have several issues that are unclear to me.
I searched in FACEBOOK API for this question but I didn't find good information about
where I can found "Facebook limitations" ( ex. no. sending messages per day , searching , creating events , invitations ) ?
2.Sorry for asking this question again in forum but really I would like to know if there is new way that can solved my problem .
about sending private message to friends through graph api instead of using Send Dialog?
Is there is way to fill "To,Message" fields in Send Dialog as default values?
inviting friends to event through api it's possible ?
how can I read posting/comments on friends wall without getting specific permission from my friends ?
Thanks
I searched in FACEBOOK API for this question but I didn't find good
information about where I can found "Facebook limitations" ( ex. no.
sending messages per day , searching , creating events , invitations )
?
There really aren't any - except I haven't seen a known API for searching feeds of a user.
2.Sorry for asking this question again in forum but really I would like to know if there is new way that can solved my problem . about
sending private message to friends through graph api instead of using
Send Dialog?
Is there is way to fill "To,Message" fields in Send Dialog as default
values?
inviting friends to event through api it's possible ?
All possible - On any client, if you have an oauth token, you can always send messages to the user, without bubbling the To, Message dialogues. Or, if you have them on the server, your client can ask the server to post those messages non-interactively!
You need certain permissions for authorization before you attempt reading the feeds. Facebook does document the default app permissions you have.
how can I read posting/comments on friends wall without getting
specific permission from my friends ?

how to find a website vulnerabilities [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
Has anyone got the idea how to find a website vulnerabilities issues?
like:
Log in as the user test Find the admin control page as a non adminuser
Get the website to print out full debug information for an error
Using a diļ¬€erent method from part (1), log in as user1#gmail.com
Use an XSS attack to open a pop up window displaying a website of your
choice1
Describe how a similar XSS attack could be used to log in as
admin
Get the store to owe you money Log in as the user admin
Access the basket of a user, while not logged on as that user
Describe a CSRF attack that can be used to change someones password
Many thanks
The Open Web Application Security Project maintains several guides describing the types of attacks that can be done on web applications. You may want to start with:
The Getting Started Guide
The Top 10 Guide which documents the most common types of vulnerabilities
The Guide Project which is attempting to build in-depth documentation of vulnerability classes
The Testing Project
In addition, other vendors have their own lists; for example, Microsoft has one that is no longer updated.