ARC Publishing
- a. General Documentation about ARC
- b. Details about configuration with La Tercera
- c. Prepare your local environment to do tests with ARC
- d. Extra information
a. General Documentation about ARC
- public_api_identity_20200604.rar:
- arc_publishing_api.zip:
b. Details about configuration with La Tercera
-
jdoe12345678913456789@donotreply.com | ouyitg23h9oi1l2hbIohilujk.sj
-
testconcopesa20200619@donotreply.com | Me1.78ytagsj
"userName": "fgilio",
"credentials": "7y-TW_-MpN3pi_jvGunWHPorJ",
Facebook test accounts
Jayden Aleaggehccida Bushakman 101646888237839 ehdbmibsha_1590163203@tfbnw.net
Tyler Aleagfjecdfha Occhinoescu 101969721538379 yyouyofcjj_1590163197@tfbnw.net
James Aleagbcfffccj Smithsky 102671171467005 jjxtlvlxkj_1590163199@tfbnw.net
Susan Aleadcfkigfi Yangsky 112623017128898 tygimwpksk_1590163201@tfbnw.net
Open Graph Test User 107642566895467 open_zhnmgnh_user@tfbnw.net
The password for all accounts is dfg567Ht4df89. (with the dot)
- Test en testcopesa
- https://testcopesa.publica.la
- https://testcopesa.publica.la/auth/social/arc_publishing_facebook/callback
- https://testcopesa.publica.la/auth/social/arc_publishing_google/callback
Social logins
Facebook and Google social logins redirect URLs: Producción:
- https://app.publica.la/auth/social/arc_publishing_facebook/callback
- https://app.publica.la/auth/social/arc_publishing_google/callback
- https://testcopesa.publica.la/auth/social/arc_publishing_facebook/callback
- https://testcopesa.publica.la/social/arc_publishing_google/callback
- https://kiosco.latercera.com/auth/social/arc_publishing_facebook/callback
- https://kiosco.latercera.com/auth/social/arc_publishing_google/callback
We are not using the app.publica.la ones, because everything goes directly to the corresponding tenant. We may either ask them to remove those two URLs, or change the way this works so that we always to the app.publica.la -> tenant.com redirect.
Staging:
- https://stagingapp.publica.la/auth/social/arc_publishing_facebook/callback
- https://stagingapp.publica.la/auth/social/arc_publishing_google/callback
c. Prepare your local environment to do tests with ARC
To do tests in your local, follow these steps:
- You need to edit your hosts file and point staginapp.publica.la to your local farfalla IP, like this:
# Add this line to /etc/hosts
127.0.0.1 stagingapp.publica.la
Note: stagingapp.publica.la is the subdomain configured in ARC to do tests.
- You need to add
stagingapp.publica.laas thefinal_domainof tenant 1 in thetenantstable and run this command in the project root folder:
valet link stagingapp.publica.la
- Is mandatory use this configuration in
dashboard/settings#advancedin the Users section, replace thecustom_socialite_providersjson:
"custom_socialite_providers": {
"arc_publishing_google": {
"enabled": true,
"redirect": "https://stagingapp.publica.la/auth/social/arc_publishing_google/callback",
"client_id": "5397844116-r1vl5s95uupim2qu21q7tdhpp30v5uhr.apps.googleusercontent.com",
"client_secret": null,
"api_subdomain_fragment": "api-copesa-la-ternera-sandbox"
},
"arc_publishing_facebook": {
"enabled": true,
"redirect": "https://stagingapp.publica.la/auth/social/arc_publishing_facebook/callback",
"client_id": "681004598937061",
"client_secret": null,
"api_subdomain_fragment": "api-copesa-la-ternera-sandbox"
},
"arc_publishing_password": {
"enabled": true,
"redirect": null,
"client_id": "api-copesa-la-ternera-sandbox",
"client_secret": "SOBTNUVS1L1FRUDLP18NQSP9VE3C3NIIl8/ioEgpfgLNXkMFiKez1l5QVmpyjeATgCEf8PZB",
"api_subdomain_fragment": "api-copesa-la-ternera-sandbox"
}
}
Note: If you try to change some these values, it wont work. It's important to Facebook and Google keep the same CLIENT_ID because this value is used for Arc to be sure where is from the callback.
If you don't keep those values, Arc will return a response like this:
{
"httpStatus": 401,
"code": "300040",
"message": "Invalid username or password"
}
Now you can test trying login or register by an email or password. (https://stagingapp.publica.la/auth/login).
- If you want to try with Facebook, we have to talk with La Tercera, so they can enable us the Facebook account with the URL callback and client_id (in case they have not changed that).
- If you want to try with Google, you can do that without problem.
d. Extra information
-
Authentication flow with Arc Publishing - Use cases - La Tercera: https://docs.google.com/document/d/1ph1o2xInF1E4ILPekQeW0JeFTGE7cSE7tY6Cf8NtHmI/edit?usp=sharing
-
Social Login & Arc Flow: https://docs.google.com/drawings/d/1puPLiFniV7VsF3f7wgrD65BXz8YPr8qatKK-1o3B-GI/edit?usp=sharing