Re: [Dev] [SP] Using previously persisted stream events to validate the user during authentication

2018-06-11 Thread Dimuth Menikgama
Hi Dilini, Thanks for the suggestion. I will follow the 1st approach and let you know the progress. Regards, Dimuth On Mon, Jun 11, 2018 at 6:05 PM Dilini Muthumala wrote: > Hi Dimuth, > > From the given information, it seems option #1 would be better. This is > because the user validation

Re: [Dev] Subject Alternative Names in certificate

2018-06-11 Thread Tharindu Edirisinghe
Hi Godwin, Yes, SANS is a part of the public certificate and it's not bound to the public key or the private key (key-pair). So we can consider that as metadata of the certificate. *keytool -genkey -alias wso2carbon -keyalg RSA -keystore wso2carbon.jks -keysize 2048 -ext SAN=dns:xyz.com

[Dev] Fwd: migrating/transfering users and roles

2018-06-11 Thread Maneesha Wijesekara
-- Forwarded message -- From: Bernard Paris Date: Fri, Jun 8, 2018 at 6:15 PM Subject: Re: [Dev] migrating/transfering users and roles To: Maneesha Wijesekara Hello, we just do a new users database dump, and this time we changed the owner id in the dump file before importing

Re: [Dev] WSO2 and LDAP

2018-06-11 Thread Dinusha Dissanayake
Hi Shib, Redirection URL should be the url of the OAuth application requesting the access token. Following document[1] contains an example explaining an application (WSO2 playground) obtaining the access token with implicit grant type. Please go through the document for further details. [1]

Re: [Dev] WSO2 and LDAP

2018-06-11 Thread shibsankar
Okay. I guess there is no user validation APIM API then. No problem. I would like to try your suggestion *" ...I think it would be best to use implicit grant type for this purpose. Basically, when someone wants to login to the your application they will be redirected to APIM which they will

Re: [Dev] [SP] Using previously persisted stream events to validate the user during authentication

2018-06-11 Thread Dilini Muthumala
Hi Dimuth, >From the given information, it seems option #1 would be better. This is because the user validation must happen realtime. Joining an input event (authentication request, in this case) against a table and extracting a result in realtime is a common usecase for SP. However we should

Re: [Dev] [SP] Using previously persisted stream events to validate the user during authentication

2018-06-11 Thread Dimuth Menikgama
Adding Tishan and SajithR On Mon, Jun 11, 2018 at 5:07 PM Dimuth Menikgama wrote: > Hi all, > > I have a custom requirement of publishing a set of attributes to Stream > Processor in each time a user is successfully authenticated. That event is > persisted and stored in a relational database

Re: [Dev] WSO2 and LDAP

2018-06-11 Thread shibsankar
Your suggestion is good, However, I don't want to redirect my application to APIM and prompt the login screen. Rather, *as an alternative*, I'd like to invoke user validation APIM API ( *exist ?*) for authentication. Do we have user validation APIM API? *something like this ...* // invoke

[Dev] [SP] Using previously persisted stream events to validate the user during authentication

2018-06-11 Thread Dimuth Menikgama
Hi all, I have a custom requirement of publishing a set of attributes to Stream Processor in each time a user is successfully authenticated. That event is persisted and stored in a relational database via SP app. When the same user tries to authenticate for the second time, I need to validate the

Re: [Dev] WSO2 and LDAP

2018-06-11 Thread Harsha Kumara
On Mon, Jun 11, 2018 at 2:57 PM shibsankar wrote: > Let me explain in detail what I plan to achieve. > > > Step 1: User will login to my web application (angular js front end). > > *Step 2: I want to validate these users against LDAP User Store configured > in WSO2* > I think it would be best

Re: [Dev] WSO2 and LDAP

2018-06-11 Thread shibsankar
Does WSO2 have any API for LDAP user validation? Regards Shib On Mon, Jun 11, 2018 at 2:57 PM, shibsankar wrote: > Let me explain in detail what I plan to achieve. > > > Step 1: User will login to my web application (angular js front end). > > *Step 2: I want to validate these users against

Re: [Dev] After configuring salesforce connector , cannot restart the server - Salesforce Connector

2018-06-11 Thread Damith Wickramasinghe
Product is EI 6.2.0 On Mon, Jun 11, 2018 at 6:13 AM, Damith Wickramasinghe wrote: > Hi, > > I configured salesforce connector and was able to retrieve data from > salesforce, But then if I restart the server I'm getting following issue, > > [2018-06-11 11:36:47,433] [EI-Core] ERROR - Repository

Re: [Dev] WSO2 and LDAP

2018-06-11 Thread shibsankar
Let me explain in detail what I plan to achieve. Step 1: User will login to my web application (angular js front end). *Step 2: I want to validate these users against LDAP User Store configured in WSO2* Step 3: Once these users are authenticated, I plan to invoke token API with password grant

Re: [Dev] WSO2 and LDAP

2018-06-11 Thread Dinusha Dissanayake
Hi Shib, I guess you are authenticating the user to perform certain operations in APIM through rest APIs ?. Please refer the documentation[1] which includes details of our REST APIs (store/publisher and admin portal). There it has explained what you have to do to get the necessary access tokens

Re: [Dev] WSO2 and LDAP

2018-06-11 Thread shibsankar
I have configured LDAP as a User Store in WSO2 (*screenshot attached*). This is okay. Now I plan to send an LDAP user id & password through *Postman *to WSO2 server to verify successful authentication. Could you please tell which WSO2 URL to invoke and what parameters to pass through *Postman*

Re: [Dev] RoleBasedAuthorizationHandler: Unable to get the realm

2018-06-11 Thread Bernard Paris
Hi, we just found that the place to put the jar file is NOT/lib BUT directly into /dropins Bernard ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev

[Dev] RoleBasedAuthorizationHandler: Unable to get the realm

2018-06-11 Thread Bernard Paris
Hello, using class RoleBasedAuthorizationHandler for Rest API as described at https://docs.wso2.com/display/EI600/Securing+APIs#SecuringAPIs-BasicAuthUsingaBasicAuthhandler and using sources from

Re: [Dev] WSO2 and LDAP

2018-06-11 Thread Dinusha Dissanayake
Hi Shib, Yes you can. But you may need to configure LDAP as a user store first. Please follow the document[1] to configure use stores. [1] https://docs.wso2.com/display/AM210/Configuring+User+Stores Thanks, DinushaD On Mon, Jun 11, 2018 at 12:42 PM, shibsankar wrote: > Hi, > I have an LDAP

[Dev] WSO2 and LDAP

2018-06-11 Thread shibsankar
Hi, I have an LDAP with user credentials. Can I use LDAP user credentials as password grant to generating Oauth 2 token? *Please see the screenshot attached.* Regards Shib Virus-free.

[Dev] After configuring salesforce connector , cannot restart the server - Salesforce Connector

2018-06-11 Thread Damith Wickramasinghe
Hi, I configured salesforce connector and was able to retrieve data from salesforce, But then if I restart the server I'm getting following issue, [2018-06-11 11:36:47,433] [EI-Core] ERROR - Repository Failed to add new Collection /_system/governanceThere already exist non collection resource.