Commit e8d07772 authored by Cristiano Urban's avatar Cristiano Urban
Browse files

Removed support to Facebook.

parent c10ea144
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
# Remote Authentication Portal

An authentication portal supporting eduGAIN (using Shibboleth SP), social logins (Google, LinkedIn and Facebook) and X.509 certificates. Caller services always see an OIDC flow. Account linking and merging is supported. Currently used for authenticating on [IA2 services](https://sso.ia2.inaf.it).
An authentication portal supporting eduGAIN (using Shibboleth SP), social logins (Google, LinkedIn) and X.509 certificates. Caller services always see an OIDC flow. Account linking and merging is supported. Currently used for authenticating on [IA2 services](https://sso.ia2.inaf.it).

## Docker demo

@@ -61,7 +61,6 @@ Before using social API it is necessary to register an application on each socia

* https://console.developers.google.com
* https://www.linkedin.com/developer/apps
* https://developers.facebook.com/apps

### Configuration file

+0 −4
Original line number Diff line number Diff line
@@ -18,7 +18,6 @@ class AuthPageModel {
    public $orcid;
    public $x509;
    public $google;
    public $facebook;
    public $linkedIn;
    public $localIdP;
    public $test;
@@ -57,9 +56,6 @@ class AuthPageModel {
        $this->google = isset($config->authenticationMethods->Google) &&
                in_array(AuthenticationMethods::GOOGLE, $client->authMethods);

        $this->facebook = isset($config->authenticationMethods->Facebook) &&
                in_array(AuthenticationMethods::FACEBOOK, $client->authMethods);

        $this->linkedIn = isset($config->authenticationMethods->LinkedIn) &&
                in_array(AuthenticationMethods::LINKED_IN, $client->authMethods);

+0 −2
Original line number Diff line number Diff line
@@ -15,7 +15,6 @@ abstract class AuthenticationMethods {
    const X509 = "X.509";
    const GOOGLE = "Google";
    const LINKED_IN = "LinkedIn";
    const FACEBOOK = "Facebook";
    const LOCAL_IDP = "LocalIdP";

    public static function getAllMethods() {
@@ -25,7 +24,6 @@ abstract class AuthenticationMethods {
            AuthenticationMethods::X509,
            AuthenticationMethods::GOOGLE,
            AuthenticationMethods::LINKED_IN,
            AuthenticationMethods::FACEBOOK,
            AuthenticationMethods::LOCAL_IDP
        ];
    }
+2 −3
Original line number Diff line number Diff line
@@ -16,11 +16,10 @@ class Identity {
    const EDU_GAIN = "eduGAIN";
    const X509 = "X.509";
    const GOOGLE = "Google";
    const FACEBOOK = "Facebook";
    const LINKEDIN = "LinkedIn";
    const ORCID = "OrcID";

    private static $ALLOWED_TYPES = [Identity::EDU_GAIN, Identity::X509, Identity::GOOGLE, Identity::FACEBOOK, Identity::LINKEDIN, Identity::ORCID];
    private static $ALLOWED_TYPES = [Identity::EDU_GAIN, Identity::X509, Identity::GOOGLE, Identity::LINKEDIN, Identity::ORCID];

    /**
     * Identity id in the database. Mandatory field.
@@ -34,7 +33,7 @@ class Identity {

    /**
     * Data related to specific account type (shibboleth persistent id, 
     * facebook id, certificate serial number, etc, ...). Mandatory field.
     * certificate serial number, etc, ...). Mandatory field.
     */
    public $typedId;

+0 −1
Original line number Diff line number Diff line
@@ -5,7 +5,6 @@
    "require": {
        "mikecao/flight": "1.3.7",
        "google/apiclient": "2.1.3",
        "facebook/graph-sdk": "^5.5",
        "monolog/monolog": "^1.22"
    },
    "require-dev": {
Loading