is it possible to set up sugarcrm so that during SSO, language for the application is also selected - sugarcrm

I have created custom SSO for sugarcrm. Now, users can login the system with another system login credentials.
The problem is I do not know to select language in 'Login Page' so that selected language is applied to user's session in crm. Do I need to send some parameters to crm in login page? Please, help me

I found the answer. I put following code right after session start code:
$_SESSION['authenticated_user_language']='en_us';
It worked for me.

Related

Keycloak user initiated OTP configuration

I looked over a solution for configuration user 2FA (OTP) from my application using Admin API. Obviously, I looked over another similar questions where the answer was 'NO', but I started thinking: how Keycloak implemented this feature from the Account Console ?
I tried to debug the new Keycloak v2 theme without any success. Could anyone explain or link some resources where to find how the link is build ?
The most important information which I pretty understand is that it redirects to login page with
kc_action='CONFIGURE_TOTP'
but the rest of the link is magic for my knowledge.
** To be more specific, the link beside that button 'Set up authenticator application'.
Thanks a lot!

Any experience with cypress-social-login using Facebook provider?

I am trying to make an automated test of the Facebook login feature in our web application in Cypress. I would like to skip the visual input of credentials and rather provide them programatically.
I came across the cypress-social-login plugin - https://www.npmjs.com/package/cypress-social-logins
Does anyone have the experience specifically with the implementation of this plugin for Facebook login? Or did anyone manage to automate Facebook login without any plugin?
Another question is: for the plugin to work, I have to provide a login url fom my application. But my application doesn´t have a specific login url. It uses a fullscreen modal that contains a Facebook login button. Is there a way to modify the plugin to deal with this?
Meanwhile I accepted this fact. But I was successful by using another much simpler approach: First I go to facebook.com and log in there. Then I open my App and click the Facebook login button. In this way I can simulate the majority of users that are already signed in.
Unfortunately, when I run the tests on Lambdatest, Facebook won´t let me sign-in and tells me that I am misusing their services by going too fast :D
For now I am left by running tests locally.

Change Front page for anonymous user in sugarcrm?

What I Want ?
I want my sugarcrm site Look like a normal site like any other site. on which their is Home, About us, Contact us and LOgin options are their?
What I have done ?
when I see the url of my site it look like "localhost/crm/index.php?module=Users&action=Login" thats why I have created a custom module for contact us and home page. and try to fetch that links through passing url.
face Hurdle in it?
Whatever I pass The link over it that was only open when any user login into it. it does not open for Guest user.
Please give some Idea about it.
I have also try to chang the LDAP Authentication but I can`t understand the behaviour of LDAP authentication.
This isn't the answer that you are looking for, but SugarCRM is not a CMS but a CRM. It isn't meant to look and work like any other site. It is a business application. That being said there are always ways to manipulate the theme/layout to match your business' theme so that all your business apps have a similar theme for your organization's users. If you are looking at doing something with external users having access to SugarCRM I then highly advise using a portal that talks with SugarCRM via the API. There are Joomla, Drupal, and other 3rd party portal solutions that integrate with SugarCRM for this.

Passing user data from Connect With Facebook button into Modx profile fields

I've been trying to use the Connect With Facebook button on a Modx Revolution site. I've been following along with this guide here: http://edwardawebb.com/web-development/facebook-login-modx-sites.
So far, I have the button creating the new user, but it's not passing through the data from the Facebook profile to the Modx profile fields. In addition to that, I need a way to tell the user what their username is so they can login with that username if they chose to (as opposed to using the Connect with Facebook button again).
Here is what my snippet looks like that is creating the profile from the Connect with Facebook button: http://pastebin.com/jdf5zrA8
Eventually, I want to collect more user data than what's in there now, but I figured I would start simple for now. Since this is a bit more advanced than my skills are.
I appreciate any help.
I'm just about to release an extra for MODX Revolution which will do what you need - see http://www.hyper-typer.com/news/facebook-login-modx and http://www.github.com/freelancewebdev/fblogin - particularly the snippets in core/components/snippets.

How to authenticate a website user through iphone

I have created a web application and now I want to create an iPhone version of it. As a first step, I want to login a user using his username and password. I have a simple login page with fields for username and password. Now I want to send these credentials onto my site (lets say, www.abc.com/login) and authenticate whether the username and password is correct or not.
I need some help in this as I am not an experienced iphone developer. I just need to know how to send the credentials to my site url.
Any help or sample tutorial in this regard will be highly helpful to me.
Go get ASIHTTPRequest as it is a great framework for any network connectivity you do. the you can simply use POST or use the method they have provided for authentication.
See the section titled "Handling Authentication" here for code samples and docs
better make a canvas and call that page of webapplication..