Tribe Support

In this group #Anahita Tribe members provide support and help each other out. All posts should be public in this group. #support

Stories

Rastin Mehr

Rastin Mehr commented on the topic

Twilio-Anahita Phone Signup/Sign-ins via sms code

Rastin et al

We want to implement Twilio-Anahita Phone Signup/Sign-ins via SMS code

Here is the User Story:

USER SIGNUP (Registration)

A first time user selects the Flag/Country his mobile phone numb...

Read More

Rastin et al

We want to implement Twilio-Anahita Phone Signup/Sign-ins via SMS code

Here is the User Story:

USER SIGNUP (Registration)

A first time user selects the Flag/Country his mobile phone number is registered in and enters his/her Mobile Phone [+Country Code Area Code Phone Number]

Twilio then sends the user a one-time passcode to his/her mobile phone via SMS. The user then enters the code on our website to complete their registration. 

Immediately upon registration (first-time login) an Anahita User page is "auto-generated" showing : 

[Avatar/Photo Placeholder] 

[Country Flag] [+Country Code Area Code Phone Number]

and the rest of the Anahita User page fields 

SUBSEQUENT SIGN-INS

After the initial session has expired, a returning user can access his/her account and use our website by repeating the same process: select country, enter the mobile number, receive a code via SMS,  add code to the page,  and is logged in- again- until the session expires. Anytime a session expires or is killed and the client is reloaded the

The same procedure needs to happen. Account data is persistent from initial signup to subsequent sign-ins for a seamless and easy UX. The idea is to create a community of Mobile Phone Users

Please advise how to proceed given the current state of Anahita code+pluginsThanks in advance note: A similar use case was described by Akgora Flip in his post dated May 12 2020 Want to add a mobile number for the signup and sign in processhttps://www.getanahita.com/topics/168154-want-to-add-mobile-number-for-signup-and-sign-in-processWould be interested in knowing if a Twilio-Anahita plugin was ever developed or in in the works by Akgora Flip and/or any other members #Twilio #Signup #Authentication #Onboarrding #Registration #Mobile #TwoFactorAuthentication #TwoFA #SMS Read Less
Rastin Mehr liked this
Rastin Mehr
Rastin Mehr
February 16 2021 Permalink
This is good and if you had any questions, you can post them on this topic. I'm not aware of any Twilio integrations happening in the community. You seem to be the first one.
Rastin Mehr

Rastin Mehr commented on the topic

Twilio-Anahita Phone Signup/Sign-ins via sms code

Rastin et al

We want to implement Twilio-Anahita Phone Signup/Sign-ins via SMS code

Here is the User Story:

USER SIGNUP (Registration)

A first time user selects the Flag/Country his mobile phone numb...

Read More

Rastin et al

We want to implement Twilio-Anahita Phone Signup/Sign-ins via SMS code

Here is the User Story:

USER SIGNUP (Registration)

A first time user selects the Flag/Country his mobile phone number is registered in and enters his/her Mobile Phone [+Country Code Area Code Phone Number]

Twilio then sends the user a one-time passcode to his/her mobile phone via SMS. The user then enters the code on our website to complete their registration. 

Immediately upon registration (first-time login) an Anahita User page is "auto-generated" showing : 

[Avatar/Photo Placeholder] 

[Country Flag] [+Country Code Area Code Phone Number]

and the rest of the Anahita User page fields 

SUBSEQUENT SIGN-INS

After the initial session has expired, a returning user can access his/her account and use our website by repeating the same process: select country, enter the mobile number, receive a code via SMS,  add code to the page,  and is logged in- again- until the session expires. Anytime a session expires or is killed and the client is reloaded the

The same procedure needs to happen. Account data is persistent from initial signup to subsequent sign-ins for a seamless and easy UX. The idea is to create a community of Mobile Phone Users

Please advise how to proceed given the current state of Anahita code+pluginsThanks in advance note: A similar use case was described by Akgora Flip in his post dated May 12 2020 Want to add a mobile number for the signup and sign in processhttps://www.getanahita.com/topics/168154-want-to-add-mobile-number-for-signup-and-sign-in-processWould be interested in knowing if a Twilio-Anahita plugin was ever developed or in in the works by Akgora Flip and/or any other members #Twilio #Signup #Authentication #Onboarrding #Registration #Mobile #TwoFactorAuthentication #TwoFA #SMS Read Less
Rastin Mehr
Rastin Mehr
February 07 2021 Permalink
We've never integrated with Twilio because for the projects that we have done, Twilio wouldn't have passed the user privacy compliance. Still, I realize that mobile signup and 2FA are very convenient for business to c... Read More
We've never integrated with Twilio because for the projects that we have done, Twilio wouldn't have passed the user privacy compliance. Still, I realize that mobile signup and 2FA are very convenient for business to consumer projects. So I can give you some tips:

1. Build your UI and UX workflow in a clientside technology as a mobile, browser, or desktop app. Do not rely on the existing HTML views in Anahita. As soon as the Anahita React app is ready, we will remove all the HTML views in Anahita and make it available as a RESTful API only service.

2. DO NOT store user phone numbers in Anahita. It's better if a big-budget company such as Twilio handles phone numbers because, one would hope, that they have better infrastructure and budget to protect users' data. What you do is to first register the user with Twilio by providing them with the user's email and phone number, and then obtain a Twilio user id, then store the Twilio user id in Anahita's person object as metadata like this:

$person->setValue("twilio_user_id", $twilio_user_id);

and obtain it:

$person->getValue("twilio_user_id");

3. Anahita plugins provide a series of hooks or events that you can use. You need to develop a Twilio User Plugin and Twilio Authentication Plugin. The first one is used for sign up and keeping the account information updated, and the authentication plugin is for authenticating the user against Twilio API.

Here are the list of hooks in an Anahita User plugin: https://github.com/anahitasocial/anahita/blob/master/src/plugins/user/anahita.php

And there is only one hook in the Anahita Authentication plugin, which is "onAuthenticate": https://github.com/anahitasocial/anahita/blob/master/src/plugins/authentication/anahita.php Read Less
Rastin Mehr
Rastin Mehr
February 07 2021 Permalink
So here is how the UI/UX workflow works. In your client app, design a signup form that includes a phone number field and email. In your Twilio User Plugin, in the method onAfterAddPerson, register the user with Twilio... Read More
So here is how the UI/UX workflow works. In your client app, design a signup form that includes a phone number field and email. In your Twilio User Plugin, in the method onAfterAddPerson, register the user with Twilio, obtain a user id from them and store it in your person object for later use.

Twilio will send an SMS message with a code to the phone number:

In your Twilio Authentication plugin, in the onAuthenticate method, pass the code to the Twilio API and listen to the response. If the response was a success, create an Anahita session for the user and log them in. Basically, instead of checking user credentials (username, password), we are using Twilio's temporary code to authenticate the user. Read Less
Rastin Mehr
Rastin Mehr
February 07 2021 Permalink
And one last tip, you can build your own People package and store it in the packages directory with the other apps. Basically, it will be your own custom com_people. When you are installing Anahita, she will use your ... Read More
And one last tip, you can build your own People package and store it in the packages directory with the other apps. Basically, it will be your own custom com_people. When you are installing Anahita, she will use your custom com_people instead of the default com_people.

I hope this helped! Read Less
Rastin Mehr

Rastin Mehr commented on the topic

Replacing word 'Anahita' in project folder.

Hi Rastin,

I would like to know how to replace word "Anahita" with other word of my choice in total project folder.  Could you let me know whether it is possible? if so could you walk me through on ...

Read More

Hi Rastin,

I would like to know how to replace word "Anahita" with other word of my choice in total project folder.  Could you let me know whether it is possible? if so could you walk me through on how to do it.  Thanks in advance.

Read Less
Rastin Mehr
Rastin Mehr
January 29 2021 Permalink
If you make significant changes to the codebase, you won't be able to apply future updates that we release to it. You will be on your own to maintain your codebase.
Akgora Flip

Akgora Flip commented on the topic

Replacing word 'Anahita' in project folder.

Hi Rastin,

I would like to know how to replace word "Anahita" with other word of my choice in total project folder.  Could you let me know whether it is possible? if so could you walk me through on ...

Read More

Hi Rastin,

I would like to know how to replace word "Anahita" with other word of my choice in total project folder.  Could you let me know whether it is possible? if so could you walk me through on how to do it.  Thanks in advance.

Read Less
Akgora Flip
Akgora Flip
January 27 2021 Permalink
I just wanted to confirm whether it would effect the project in terms of settings or configurations. Thank you.
Rastin Mehr

Rastin Mehr and Akgora Flip commented on the topic

Replacing word 'Anahita' in project folder.

Hi Rastin,

I would like to know how to replace word "Anahita" with other word of my choice in total project folder.  Could you let me know whether it is possible? if so could you walk me through on ...

Read More

Hi Rastin,

I would like to know how to replace word "Anahita" with other word of my choice in total project folder.  Could you let me know whether it is possible? if so could you walk me through on how to do it.  Thanks in advance.

Read Less
Rastin Mehr
Rastin Mehr
January 25 2021 Permalink
What command did you use when you were creating the project folder? I'm not sure which directory you are referring to as the project folder. Could you be a bit more specific, please?
Akgora Flip
Akgora Flip
January 25 2021 Permalink
Im sorry if i did not make you understand there, what i meant is in all the files we have word "anahita" so i need to replace them all with some other word.
Rastin Mehr
Rastin Mehr
January 25 2021 Permalink
I suppose you just go and replace them all. This isn't really a support question.
Akgora Flip liked this
Akgora Flip

Akgora Flip started a topic

Replacing word 'Anahita' in project folder.

Hi Rastin,

I would like to know how to replace word "Anahita" with other word of my choice in total project folder.  Could you let me know whether it is possible? if so could you walk me through on ...

Read More

Hi Rastin,

I would like to know how to replace word "Anahita" with other word of my choice in total project folder.  Could you let me know whether it is possible? if so could you walk me through on how to do it.  Thanks in advance.

Read Less
Rastin Mehr

Rastin Mehr commented on the topic

Want to add mobile number for signup and sign in process

Dear People,

Here I am developing a mobile application based on anahita backend.

I want to use mobile number for signup and sign in process, later will use mobile verification for signup 

can you ple...

Read More

Dear People,

Here I am developing a mobile application based on anahita backend.

I want to use mobile number for signup and sign in process, later will use mobile verification for signup 

can you please help me where can I take care of the new fields after I  add it to the DB..

Any clues or insights would be very help full.

Thanks in Advance and Kind Regards

Read Less
Rastin Mehr liked this
Rastin Mehr
Rastin Mehr
January 22 2021 Permalink
We aren't adding those fields to the people_people table. You can capture and store them as metadata in a profile plugin. Please start a new topic so I can elaborate.
Akgora Flip liked this
Rastin Mehr

Rastin Mehr commented on the topic

Mailer function

HI Rastin,

Hope you are doing well..!!!

I have a query regarding mailer function in anahita setup.  I would like to know how to integrate other mail services like sendgrid etc.  Could you help me out...

Read More

HI Rastin,

Hope you are doing well..!!!

I have a query regarding mailer function in anahita setup.  I would like to know how to integrate other mail services like sendgrid etc.  Could you help me out to integrate other opensource mail services into the system.

Thanks in advance...!!!

#Mailer #MailService #Sendgrid

Read Less
Rastin Mehr
Rastin Mehr
December 17 2020 Permalink
An update on this, I tested Anahita with Mailgun this week, and it worked pretty much out of the box by only entering the SMTP credentials in Anahita settings. I haven't tested with SendGrid yet, perhaps during the ho... Read More
An update on this, I tested Anahita with Mailgun this week, and it worked pretty much out of the box by only entering the SMTP credentials in Anahita settings. I haven't tested with SendGrid yet, perhaps during the holiday season or sooner. Read Less
Akgora Flip

Akgora Flip commented on the topic

Mailer function

HI Rastin,

Hope you are doing well..!!!

I have a query regarding mailer function in anahita setup.  I would like to know how to integrate other mail services like sendgrid etc.  Could you help me out...

Read More

HI Rastin,

Hope you are doing well..!!!

I have a query regarding mailer function in anahita setup.  I would like to know how to integrate other mail services like sendgrid etc.  Could you help me out to integrate other opensource mail services into the system.

Thanks in advance...!!!

#Mailer #MailService #Sendgrid

Read Less
Akgora Flip
Akgora Flip
November 12 2020 Permalink
Thanks Rastin...will let you know if this does the job.
Rastin Mehr

Rastin Mehr and Akgora Flip commented on the topic

Mailer function

HI Rastin,

Hope you are doing well..!!!

I have a query regarding mailer function in anahita setup.  I would like to know how to integrate other mail services like sendgrid etc.  Could you help me out...

Read More

HI Rastin,

Hope you are doing well..!!!

I have a query regarding mailer function in anahita setup.  I would like to know how to integrate other mail services like sendgrid etc.  Could you help me out to integrate other opensource mail services into the system.

Thanks in advance...!!!

#Mailer #MailService #Sendgrid

Read Less
Akgora Flip
Akgora Flip
November 11 2020 Permalink
No Rastin that did not work it misleaded. Sorry for the wrong information, i am currently trying to integrate sendgrid for sending mails. Could you please help me out on this. Currently i generated api key using s... Read More
No Rastin that did not work it misleaded. Sorry for the wrong information, i am currently trying to integrate sendgrid for sending mails. Could you please help me out on this. Currently i generated api key using sendgrid account but how do i integrate into this system. Thanks in advance. Read Less
Rastin Mehr
Rastin Mehr
November 11 2020 Permalink
Oh, that's unfortunate. I haven't tried SendGrid with Anahita. As soon as we test one, I'll let you know. If you want to investigate yourself, look at these files:

https://github.com/anahitasocial/anahita/blob/mast... Read More
Oh, that's unfortunate. I haven't tried SendGrid with Anahita. As soon as we test one, I'll let you know. If you want to investigate yourself, look at these files:

https://github.com/anahitasocial/anahita/blob/master/src/components/com_mailer/controllers/behaviors/mailer.php

https://github.com/anahitasocial/anahita/blob/master/src/libraries/anahita/mail/mail.php Read Less
Akgora Flip liked this
Rastin Mehr

Rastin Mehr and Akgora Flip commented on the topic

Mailer function

HI Rastin,

Hope you are doing well..!!!

I have a query regarding mailer function in anahita setup.  I would like to know how to integrate other mail services like sendgrid etc.  Could you help me out...

Read More

HI Rastin,

Hope you are doing well..!!!

I have a query regarding mailer function in anahita setup.  I would like to know how to integrate other mail services like sendgrid etc.  Could you help me out to integrate other opensource mail services into the system.

Thanks in advance...!!!

#Mailer #MailService #Sendgrid

Read Less
Rastin Mehr
Rastin Mehr
November 09 2020 Permalink
Akgora, if you look under the Site Settings Configs Mail Settings you should be able to enter the parameters and credentials to use an external service such as #Mailgun to send out email notifications. Have you trie... Read More
Akgora, if you look under the Site Settings > Configs > Mail Settings you should be able to enter the parameters and credentials to use an external service such as #Mailgun to send out email notifications. Have you tried it? Let me know if it worked. Read Less
Akgora Flip
Akgora Flip
November 09 2020 Permalink
Hi Rastin,


I would like to integrate it with Sendgrid. Is it possible, could you help me out in this context.
Thanks in advance....!!
Rastin Mehr
Rastin Mehr
November 09 2020 Permalink
I don't know, what don't you try it? https://sendgrid.com/solutions/email-api/smtp-service/
Akgora Flip liked this
Akgora Flip
Akgora Flip
November 09 2020 Permalink
Sure Rastin, will try it out. Thank You.
Rastin Mehr liked this
Akgora Flip
Akgora Flip
November 09 2020 Permalink
That worked for me, Thanks Rastin....!!!
Rastin Mehr liked this
Rastin Mehr
Rastin Mehr
November 09 2020 Permalink
Did it work? Was it easy? Share more for the rest of us, please!
Akgora Flip liked this
Rastin Mehr

Rastin Mehr commented on the topic

3 Party oAuth

Hello Rastin, 

I didn't got linked-in working, nor facebook on the latest Build, that Peoples can use one existing account to login. I made some screenshots

Rastin Mehr liked this
Rastin Mehr
Rastin Mehr
November 09 2020 Permalink
Andre, I missed this last comment of yours; I just noticed it now. I appreciate your patience. For consumer projects, you are right. It is essential to have Facebook and Twitter login. However, none of our clients in ... Read More
Andre, I missed this last comment of yours; I just noticed it now. I appreciate your patience. For consumer projects, you are right. It is essential to have Facebook and Twitter login. However, none of our clients in the science, healthcare, and enterprise sectors are using those services for their B2B services. In fact, there are specific directives from their IT and privacy compliance that forbids them from using those services in their technologies. They mostly use services such as Google, Apple ID, or Amazon OAuth. Maintaining Oauth implementations are also costly and time-consuming; these 3rd party services are constantly changing their APIs and documentation. That is why we decided to drop Facebook and LinkedIn from Anahita. For the future version of com_connect, we are interested in having Google, GitHub, and possibly AppleID. We are also interested in privacy-friendly mobile authentication services.

In your case, you can fork com_connect and update the code for your project, and continue to maintain it. Read Less
Akgora Flip

Akgora Flip started a topic

Mailer function

HI Rastin,

Hope you are doing well..!!!

I have a query regarding mailer function in anahita setup.  I would like to know how to integrate other mail services like sendgrid etc.  Could you help me out...

Read More

HI Rastin,

Hope you are doing well..!!!

I have a query regarding mailer function in anahita setup.  I would like to know how to integrate other mail services like sendgrid etc.  Could you help me out to integrate other opensource mail services into the system.

Thanks in advance...!!!

#Mailer #MailService #Sendgrid

Read Less
Andre Grueter

Andre Grueter commented on the topic

3 Party oAuth

Hello Rastin, 

I didn't got linked-in working, nor facebook on the latest Build, that Peoples can use one existing account to login. I made some screenshots

Rastin Mehr liked this
Andre Grueter
Andre Grueter
October 19 2020 Permalink
So, common
Rastin Mehr

Rastin Mehr and Andre Grueter commented on the topic

3 Party oAuth

Hello Rastin, 

I didn't got linked-in working, nor facebook on the latest Build, that Peoples can use one existing account to login. I made some screenshots

Rastin Mehr
Rastin Mehr
October 13 2020 Permalink
The Connect app is hibernating for a while until we re-implement OAuth in Anahita. I highly dought if we will be supporting Facebook and LinkedIn in the new Connect App. Instead, there will be support for services suc... Read More
The Connect app is hibernating for a while until we re-implement OAuth in Anahita. I highly dought if we will be supporting Facebook and LinkedIn in the new Connect App. Instead, there will be support for services such as Google, GitHub, and probably Twitter. I will be posting an announcement about the apps that we are going to discontinue or rewrite. Read Less
Rastin Mehr
Rastin Mehr
October 13 2020 Permalink
I'll look into the Safari comment issue
Andre Grueter
Andre Grueter
October 13 2020 Permalink
Hi Rastin, the Connect App is a dremendous benefit and key for a new social engine/platform to attract others. I am open to disscuss a budget, but this has to work as advertised until the new oAuth Library has been co... Read More
Hi Rastin, the Connect App is a dremendous benefit and key for a new social engine/platform to attract others. I am open to disscuss a budget, but this has to work as advertised until the new oAuth Library has been completed. Also the Publish to Twitter, FB and LinkedIn is a requirement. So lets get this "propper" maintened, until it will be replaced in the core. Never crash core features ;-) I suggest we talk. Read Less
Rastin Mehr liked this
Andre Grueter

Andre Grueter commented on the topic

3 Party oAuth

Hello Rastin, 

I didn't got linked-in working, nor facebook on the latest Build, that Peoples can use one existing account to login. I made some screenshots

Andre Grueter
Andre Grueter
October 12 2020 Permalink
When I click on Safari "Comment" on Stream on your site, It was pasted to some other topics...
Rastin Mehr liked this
Andre Grueter

Andre Grueter started a topic

3 Party oAuth

Hello Rastin, 

I didn't got linked-in working, nor facebook on the latest Build, that Peoples can use one existing account to login. I made some screenshots

Rastin Mehr liked this
Akgora Flip

Akgora Flip commented on the topic

How to delete Hastags created by user.

Hi Rastin,

I would like to know how to delete hastag create by user.  Could you please walk me through if any permissions are associated with it.

Akgora Flip
Akgora Flip
September 24 2020 Permalink
Thanks Rastin.....that was informative as well...!!
Rastin Mehr liked this
Rastin Mehr

Rastin Mehr commented on the topic

How to delete Hastags created by user.

Hi Rastin,

I would like to know how to delete hastag create by user.  Could you please walk me through if any permissions are associated with it.

Rastin Mehr
Rastin Mehr
September 23 2020 Permalink
Right now your admin privileges allow you to edit a user's post and remove the hashtag from the body of their post. We don't have a Delete action implemented for hashtags yet, neither a way to ban certain hashtags. Th... Read More
Right now your admin privileges allow you to edit a user's post and remove the hashtag from the body of their post. We don't have a Delete action implemented for hashtags yet, neither a way to ban certain hashtags. These are features we can consider in the future. Read Less
Akgora Flip liked this
Akgora Flip

Akgora Flip started a topic

How to delete Hastags created by user.

Hi Rastin,

I would like to know how to delete hastag create by user.  Could you please walk me through if any permissions are associated with it.

Photos View All

Articles View All

Topics View All

Powered by Anahita