Social Provider List not showing in OpenIDM 7.11

This topic has 3 replies, 2 voices, and was last updated 4 days, 14 hours ago by [email protected].

  • Author
    Posts
  • #28564

    Hi,

    I want to enable google social authentication provide in OpenIDM 7.1, but I am unable to see list of Social ID providers.

    When I click on Social ID Provider ( OpenIDM –> configure –> Social Id Providers), provider list not displaying on the screen. So that I am unable to configure google.

    Please help me with how to get the social providers list.

    Regards,
    Narayana

    #28577
     Jatinder Singh
    Participant

    If you see “No social identity providers configured.” message, likely you are either missing the identityProviders.json file in the conf directory or the file doesn’t have any providers configured in the providers list.

    Hope this helps!

    #28578
     Jatinder Singh
    Participant

    And as an example, you can add the following (snippet from default config) to the providers array:

    
    {
                "provider" : "google",
                "authorizationEndpoint" : "https://accounts.google.com/o/oauth2/v2/auth",
                "tokenEndpoint" : "https://www.googleapis.com/oauth2/v4/token",
                "userInfoEndpoint" : "https://www.googleapis.com/oauth2/v3/userinfo",
                "wellKnownEndpoint" : "https://accounts.google.com/.well-known/openid-configuration",
                "clientId" : "",
                "clientSecret" : "",
                "uiConfig": {
                    "iconBackground": "#4184f3",
                    "iconClass": "fa-google",
                    "iconFontColor": "white",
                    "buttonImage": "images/g-logo.png",
                    "buttonClass": "",
                    "buttonCustomStyle": "background-color: #fff; color: #757575; border-color: #ddd;",
                    "buttonCustomStyleHover": "color: #6d6d6d; background-color: #eee; border-color: #ccc;",
                    "buttonDisplayName": "Google"
                },
                "scope" : [
                    "openid",
                    "profile",
                    "email"
                ],
                "authenticationIdKey" : "sub",
                "schema" : {
                    "id" : "urn:jsonschema:org:forgerock:openidm:identityProviders:api:Google",
                    "title" : "Google",
                    "viewable" : true,
                    "type" : "object",
                    "$schema" : "http://json-schema.org/draft-03/schema",
                    "properties" : {
                        "sub" : {
                            "description" : "ID",
                            "title" : "ID",
                            "viewable" : true,
                            "type" : "string",
                            "searchable" : true
                        },
                        "name" : {
                            "description" : "Name",
                            "title" : "Name",
                            "viewable" : true,
                            "type" : "string",
                            "searchable" : true
                        },
                        "given_name" : {
                            "description" : "First Name",
                            "title" : "First Name",
                            "viewable" : true,
                            "type" : "string",
                            "searchable" : true
                        },
                        "family_name" : {
                            "description" : "Last Name",
                            "title" : "Last Name",
                            "viewable" : true,
                            "type" : "string",
                            "searchable" : true
                        },
                        "picture" : {
                            "description" : "Profile Picture URL",
                            "title" : "Profile Picture URL",
                            "viewable" : true,
                            "type" : "string",
                            "searchable" : true
                        },
                        "email" : {
                            "description" : "Email Address",
                            "title" : "Email Address",
                            "viewable" : true,
                            "type" : "string",
                            "searchable" : true
                        },
                        "locale" : {
                            "description" : "Locale Code",
                            "title" : "Locale Code",
                            "viewable" : true,
                            "type" : "string",
                            "searchable" : true
                        }
                    },
                    "order" : [
                        "sub",
                        "name",
                        "given_name",
                        "family_name",
                        "picture",
                        "email",
                        "locale"
                    ],
                    "required" : [ ]
                },
                "propertyMap" : [
                    {
                        "source" : "sub",
                        "target" : "id"
                    },
                    {
                        "source" : "name",
                        "target" : "displayName"
                    },
                    {
                        "source" : "given_name",
                        "target" : "givenName"
                    },
                    {
                        "source" : "family_name",
                        "target" : "familyName"
                    },
                    {
                        "source" : "picture",
                        "target" : "photoUrl"
                    },
                    {
                        "source" : "email",
                        "target" : "email"
                    },
                    {
                        "source" : "email",
                        "target" : "username"
                    },
                    {
                        "source" : "locale",
                        "target" : "locale"
                    }
                ],
                "redirectUri" : "https://localhost:8443/",
                "configClass" : "org.forgerock.oauth.clients.oidc.OpenIDConnectClientConfiguration",
                "basicAuth" : false
            }
    
    #28580

    Hi Jatinder,

    yes, the identityProviders.json file did not exist in the conf folder but I am not sure why it’s available. And I got this file from one of the sample projects and pasted it in the conf folder and then being able to see the list of social identity providers.

    Thanks for the instant support.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

©2021 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?