WSO2 Collective

WSO2 solutions give enterprises the flexibility to deploy applications and services on-premises, on private or public clouds, or in hybrid environments. Our collective aims to enable developers to build value-added services and get to market faster.
WSO2 solutions give enterprises the flexibility to deploy applications and services on-premises, on private or public clouds, or in hybrid environments. Our collective aims to enable developers to build value-added services and get to market faster.

Pinned Articles

View all 38 articles

WSO2 employees have deemed these posts noteworthy.

Pinned
0 votes
26 views
1 minute read
Knowledge article

Server for moving object monitoring system in Ballerina - Part 2

In the second part, we are going to discuss how to implement signup and login API for the object monitoring system. As we discussed in part 1, our system has two kinds of users: Object owner Admin ...
Pinned
6 votes
215 views
7 minute read
How-to guide

Secure a Ballerina REST API with OpenID Connect using Asgardeo-Part 1

In this tutorial, we will secure a Ballerina REST API by configuring JSON Web Token authentication for OpenID Connect with Asgardeo as the identity provider. A Ballerina API (an HTTP service) or one ...

Questions

Browse questions with relevant WSO2 tags

13,603 questions

1 vote
1 answer
31 views

How to add a new line within the string backtick template?

How can we have a new line within the string backtick template? For example the new line is not appearing in string backtick template of the following code. import ballerina/io; public function main() ...
0 votes
0 answers
36 views

WSO2 Enterprise Integrator Version - 7.1.0 ----- 3 Soap calls are made in a single API

when 2 soap calls are made as explained below in the code <api xmlns="http://ws.apache.org/ns/synapse" name="StockQuoteAPI" context="/stockquote"> <resource ...
0 votes
0 answers
39 views

CORS Errors on WSO2 Identity Server's token endpoint

I'm observing a strange behaviour on an web application which uses WSO2 Identity Server 5.11.0 and the Oauth 2.0 protocol with the Authorization Code Flow. The application is made with VueJS and uses ...
0 votes
1 answer
26 views

WSO2IS askPassword feature

Good day! I am trying to activate askPassword WSO2IS (v5.11) feature. I pass through this guide: https://is.docs.wso2.com/en/latest/guides/identity-lifecycles/invitation-workflow/ and all works fine ...
0 votes
0 answers
19 views

WSO2 v3.2.0 - API Developer Portal - Is possible create a read only role?

I'll try to share my question and context here: WSO2 version 3.2.0 Several APIs published with Developer Portal Visibility = Restricted by Roles I want to create a new role that allow some users ...
0 votes
0 answers
12 views

WSO2 JWTGenerator and APIMgtGatewayJWTGeneratorImpl

Сan someone explain to me the difference between JWTGenerator and APIMgtGatewayJWTGeneratorImpl classes? I updated wso2 from version 2.6.0 to 4.1.0 and there was only this JWTGenerator generator class,...
0 votes
1 answer
21 views

Rest API for replacement of challenge questions SOAP API in WSO2 version 6.0

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 ...
0 votes
0 answers
33 views

Problem with Iterate/Aggregate in micro integrator

I don't know why, but aggregator does not work. Can someone please help? There are no error or warn in logs <iterate description="Start Iteration" expression="//ns1:user" ...
0 votes
1 answer
27 views

WSO2 Identity Server (IS) 6.0 startup delay and token endpoint errors

We are trying to setup WSO2 Identity Server 6.0 and we see the startup time is more in comparison to WSO2IS 5.10. When we look into the log we see the below set of errors logged heavily while starting ...
0 votes
1 answer
22 views

Javascript application is unable to generate access token from WSO2 gateway URL

We have on premise WSO2 stack for managing the api subscription where there are client applications created in the wso2 store URL for generating access tokens. One of the development team in our ...
0 votes
1 answer
32 views

WS02 Identity Server 6.0 for challenge questions rest API

At present for challenge question rest API which is present in version 6.0 https://is.docs.wso2.com/en/latest/apis/challenge-rest-api/#/ we are having question sets and each of the sets are having ...
1 vote
1 answer
35 views

Remove duplicate values in string array?

There is a string array containing a number of strings in which multiple strings resemble each other. The requirement is to remove duplicates in the array. Input : ["Anne", "Jane", ...
-1 votes
0 answers
22 views

Sending email connector in wso2 MI

I am working on wso2 MI 7.1, I used email connector to send an email but it showing like username and password not accepted and also in postman if I hit the micto integrator url it show 202 accepted ...
0 votes
1 answer
22 views

Using bal format command to format a package

Can we use bal format command to format a package. When I try to use this command ( bal format hello_world) to format a package it results in the following error. error: couldn't find an existing ...
-1 votes
1 answer
38 views

Is there any way to load analytics-dashboard wso2 with mssql DB?

I am using the MSSQL database for WSO2 API manager 3.2.0 and want to use analytics. When I changed the database to MSSQL, this error appeared. How can I solve this problem?
1 vote
1 answer
26 views

WSO2 MI 4.1.0 SFTP protocol: How to construct URI from Environment variables

In my scenario, I download files from FTP. My transport.vfs.FileURI look like vfs:sftp://login:password@ip/. Is it possible to set the login and password by dynamically retrieving the value from an ...
  • 39
0 votes
0 answers
31 views

How to reinstall default LDAP user store in WSO2 IS

We are trying to add new attributes to the default LDAP user store in wso2 is. But we don't have access to this store, the only way that we have is to reinstall user store with edited schemas. Is ...
0 votes
1 answer
33 views

Change localhost to hostname in wso2 is

Good day! I am trying to configure user invitation with email confirmation. Invited user accept email, but when he push 'confirm account' button he get an error. First there was a certificate error. ...
0 votes
1 answer
54 views

WSO2 Identity Server 6.0 unable to find API for retrieve and update challenge questions

1.We are adding the security questions in /_system/config/repository/components/org.wso2.carbon.identity.mgt/questionCollection. We are trying to retrieve those using /me/challenges GET method under ...
0 votes
1 answer
48 views

Finding the replacement of the SOAP APIs for WSO2 identity server for 6.0.0 version for challenge Question API

1.Under Challenge Questions API https://is.docs.wso2.com/en/latest/apis/challenge-rest-api/#/ , we are using /{user-id}​/challenge-answers(GET) and ​/{user-id}​/challenge-answers(PUT) API. Is there ...
0 votes
1 answer
26 views

/pi-info/{userId} GET API in self-sign up service is not working

I'm trying to hit /pi-info/{userId} GET API by encoding the username using Base 64 encoder and given that value as userId. The response which we are getting is <!doctype html>HTTP Status 500 – ...
0 votes
1 answer
30 views

Callback url value in email for verifying account

This is an extension of Unable to validate account confirmation in WSO2 version 6.0 issue. I have same regex pattern in my self-registration section. But when I'm creating users using rest API, the ...
0 votes
1 answer
25 views

ERROR: Mapping failed Error while parsing XML input stream. Current context not Object but root

I'm getting this error (specified in the title) while using DataMapper mediator in Wso2 Enterprise integrator. Following is my .dmc file var outputroot={}; outputroot = {}; outputroot....
1 vote
1 answer
40 views

WSO2 logging remot IP address in audit.log

Does anyone know if it is possible to log in WSO2's audit.log the user's IP address? What's the format I have to configure in repository/conf/log4j2.properties? It works just fine in http_access*.log ...
  • 300
0 votes
1 answer
60 views

Unable to create user in WSO2 IS via SCIM2 API with external claims

Im trying to create user with external claims, but something wents wrong. I added my claims to scim2-schema-extension.config, to external claims and local claims, but API's response for my request is: ...
0 votes
0 answers
56 views

wso2 identity server: lock account is not working for my custom domain

Dears, I have configured a custom user store and mapped additional attributes from my custom DB table to local claims. The new domain called CUSTOMER domain. I'm able to login successfully(screenshot ...
  • 343
1 vote
2 answers
74 views

How can I log username in wso2 logs in case of failed attempt of a user in wso2 identity server

I wanted to log username, in case of a login failed scenario in the wso2 identity server using adaptive authentication code snippet for adaptive authentication var abc = function(context) { ...
0 votes
1 answer
37 views

How to send a query parameter when creating an API that consumes an API that takes a query parameter in WSO2 Integration Studio?

At WSO2 Integration Studio, I want to create an API that takes the query parameter from outside. In the API I will create, I have an API that takes query parameters in the same way. How can I send ...
-1 votes
2 answers
95 views

How to do indentation in json file?

I trying to write to the jsong file. I want my json file should be written with indentation. But It has only one line. It is possible in python. How to do it in ballerina. [ { "employeeId&...
1 vote
1 answer
76 views

How to remove insignificant whitespace in XML?

Consider the following valid Ballerina program that prints twice an XML structure that has been created with XML template: import ballerina/io; public function main() { xml x = xml`<root > ...
  • 10.3k
0 votes
0 answers
65 views

unable to create user account in wos2 identity server 5.11

Dears, I want to create a new user account (in Primary domain) from wso2is console but I have a error on clicking on finish button. Please could you support to get this user added? step to reproduce ...
  • 343
1 vote
1 answer
26 views

How to run the sql query on the data service by sending a parameter?

I have a sql query. It takes a dynamic parameter. Using Dataservice in WSO2 Integration Studio how can I send parameters to this query from outside?
2 votes
1 answer
76 views

Type inclusion for records changes CSV output

Consider the following valid Ballerina program that maps two identical data structures to CSV with io:fileWriteCsv: import ballerina/io; type Base record {| int base1; int base2; |}; type ...
  • 10.3k
0 votes
1 answer
50 views

Not able to deploy Amazon S3 connector amazons3-connector-2.0.2 in wso2 ei 6.6.0

Issue Description I am connecting to amazon S3 to download files using amazons3-connector-2.0.2. This setup totally works fine in Integration Studio 8.0.1 but when I deploy the car file to WSO2 EI 6.6....
0 votes
2 answers
52 views

Applying operations after type conversion error

I have converted using a string into the int. But it has two classes That doesn't have any arithematic or logical operation associated. string x = "42"; int|error y = int:fromString(x); y=y+...
0 votes
1 answer
32 views

Finding the replacement of the SOAP APIs for WSO2 identity server for 6.0.0 version in Account recovery API

As part of WSO2 identity server 6.0.0, SOAP APIs are deprecated and recommended to use REST-based APIs. We are using RemoteUserStoreManagerService.wsdl and UserIdentityManagementAdminService.wsdl SOAP ...
0 votes
0 answers
40 views

The redirect url is not being considered wso2 identity server

Despite sending the redirect url, it doesn't work. Instead of redirecting to my domain, it redirects to the domain where WSO2 is hosted. What can be happening?
0 votes
1 answer
38 views

Unable to validate account confirmation in WSO2 version 6.0

When I'm validating the account by clicking the link given in email during account verification process(sign up process), I'm getting below error. Can you please suggest what is causing this error? ...
0 votes
1 answer
40 views

How can I add payload when generating JWT in http JWT AUTH?

This is what I could find on official ballerina learn-by-examples website. But how can I sign payloads and return JWT on some endpoints, like we do in NodeJS using jsonwebtoken
0 votes
1 answer
43 views

Why doesn't Ballerina let you reassign a value to function arguments?

The following code snippet gives the error: cannot assign a value to function argument 'a'(BCE2549): function test(int a) { // cannot assign a value to function argument 'a'(BCE2549) a = a + 2;...
  • 1,434
0 votes
2 answers
35 views

create user in Self sign up API in WSO2 version 6.0

Under Self Sign-up API https://is.docs.wso2.com/en/latest/apis/use-the-self-sign-up-rest-apis/#/ we are calling /me POST API for creating the user and we are getting response as 201 created and we ...
-3 votes
1 answer
76 views

how to solve this question using gRPC in ballerina?

In this problem, we wish to design and build components of an assessment management system using gRPC. The system has three user profiles: learner, administrator and assessor. Note that each user ...
0 votes
1 answer
39 views

Change JWT payload format : WSO2IS

A resource server expects the groups payload key inside the default WSO2 Identity Server JWT payload to be name roles. Current JWT response: { "at_hash": "SCqDJuV0gnNvb7r_IeI47Q",...
1 vote
1 answer
29 views

RabbitMQ connction is getting fail in WSO2 Micro Integrator, what is the way to connect to server?

I have created an Inbound endpoint to retrieve messages from the RabbitMQ broker and log them in another sequence, when I am trying in the locally installed RabbitMQ server it works fine, but I couldn'...
0 votes
1 answer
29 views

WSO2-IS - Set default value to a Claim

How can I set a default value to a claim when configuring a Service Provider on WSO2-IS carbon? I'd like to set a default value to userDirectory according to environment that I've created to pass to ...
-1 votes
1 answer
30 views

WSO2 class mediator: Amazon aws import for sqs queue not being recognized

So I'm trying to use the extended message support for sqs queue in wso2 integration studio. I've tried it before using eclipse (you have to build a package by specifying the required dependencies in ...
  • 9
2 votes
1 answer
41 views

Reading a .txt file in WSO2 Integration Studio

Is it possible to read a .txt file which has "|" as seperator using smooks? The file is similar to a normal csv file, only the extension is .txt. For csv we make use of "csv-reader"...
  • 159
0 votes
1 answer
36 views

GET ChallengeQuestion API in version 6.0 is not working

As part of WSO2 identity server 6.0.0, SOAP APIs are deprecated and recommended to use REST-based APIs. We are using RemoteUserStoreManagerService.wsdl and UserIdentityManagementAdminService.wsdl SOAP ...
0 votes
1 answer
39 views

Finding the replacement of the SOAP APIs for WSO2 identity server for 6.0.0 version in that Self Sign-Up and Challenge Questions API are not working

As part of WSO2 identity server 6.0.0, SOAP APIs are deprecated and recommended to use REST-based APIs. We are using RemoteUserStoreManagerService.wsdl and UserIdentityManagementAdminService.wsdl SOAP ...
0 votes
2 answers
58 views

Finding the replacement of the SOAP APIs for WSO2 identity server for 6.0.0 version

As part of WSO2 identity server 6.0.0, SOAP APIs are deprecated and recommended to use REST-based APIs. We are using RemoteUserStoreManagerService.wsdl and UserIdentityManagementAdminService.wsdl SOAP ...


1
2 3 4 5
273