UAPI Functions - ExternalAuthentication::configured_modules

Description

This function lists the display information for your server's available and configured external authentication identity provider modules.

Examples 


 cPanel or Webmail Session URL

https://hostname.example.com:2083/cpsess##########/execute/ExternalAuthentication/configured_modules

 LiveAPI PHP Class

$cpanel new CPANEL(); // Connect to cPanel - only do this once.
  
// List the external authentication identity provider modules configured on the server
$configured_modules $cpanel->uapi(
    'ExternalAuthentication''configured_modules'
 
);

 LiveAPI Perl Module

my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
  
# List the external authentication identity provider modules configured on the server
my $configured_modules $cpliveapi->uapi(
    'ExternalAuthentication''configured_modules',
 
);

 cPanel Template Toolkit

<!-- List the external authentication identity provider modules configured on the server -->
[% data = execute( 'ExternalAuthentication', 'configured_modules'} ); %]

 Command Line

uapi --user=username ExternalAuthentication configured_modules

 

Notes:

  • You must URI-encode values.
  • username represents your account-level username.

 Output (JSON)

   "messages":null,
   "errors":null,
   "status":1,
   "metadata":{ 
 
   },
   "data":[ 
         
            "link":"/openid_connect/google",
            "icon":"iVBORw0KGgoAAAANSUhEUgAAACEAAAAhCAYAAABX5MJvAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAV1JREFUeNrsVtGNwjAMJegGYIRucBmhtwEjdAMyQjYoG2SEG6HcBGUDugFskHOQg1zTlFaN\/\/KkqMh2yYvt53S3KygomIZaE+y9P8BDJ9xXpdSDxT9jwX7dxDJsDMvCuvl33GF1sBwS5O8GX7eVgCabGyRkGJF25v0sJHrcyDH7iMhWEl9zWSD1\/xs1klJn8J\/gZ4WxNdgu8KyiDXGIfmJ7LO6R8CI5rJnwO+Kv0Wb9Z7xlZr+wMt8f\/ANmyCoCMF3CUmP8rOmHip1AM\/8tdbLcjfnL5NigYmIp+ilp5iYRJNkmajtLIBuJiUZ1S+aDKGDjI8tGk+N\/9yuy0ODcGIjL8UEmcXKLDelRDQ5tHcuIkSLQE1WYhIRfMRIEmiV1Z7NES5Rh9nIisRGVWGOyyyflC5fSkDsTmk1KnVBMbForqQw+IVtUCP3KEpdojffHnRGKcq3LZ3pBgST+BRgANXt+WPKE7tYAAAAASUVORK5CYII=",
            "icon_type":"image/svg+xml";
            "provider_protocol":"openid_connect",
            "provider_id":"google",
            "display_name":"Google",
            "documentation_url":"https://developers.google.com/identity/protocols/OpenIDConnect",
            "color":"dd4b39",
            "label":"Log in with a Google+ Account",
            "textcolor":"FFFFFF"
         },
         
            "link":"/openid_connect/microsoft_live",
            "icon":"iVBORw0KGgoAAAANSUhEUgAAACMAAAAhCAYAAABTERJSAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw\/eHBhY2tldCBiZWdpbj0i77u\/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDoxMTNFRU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m6LXJhzMkit\/JmVdfT\/vl1QcXej+H4r91cLyrtNW\/ZmrG4AydORytMRyrHXpfJgq5TL70Zy+Vgs97JCnwS5yhOgRD3fAUP+coW8qa+Q4Kxr3\/72Il0dFqEtPsuubLctupdflqSyHXBEkzvFq26AfYGS\/7b4hg\/YDNNPewpmCuZ\/DwYn5I\/rI7mLY\/7ZW2eUy6ujz\/0ZBZoSz8a8CB50ohkRqIo57QkZiNhS6mw\/qaiKwYHmySXzfwGmorZKw1LGOjb3s7K8r8o\/CRXhIPXZU9Sa5Q441aVByz5CoMtXnpVfyyydQ4DtQt4DzXkjhsE+JvzwRxZ4smeToKehHpgtVzxbAuPUwDwR2Oj8XES\/rueB5nbqDJCeBJo6xvZmQG8bEQ1mY3Mqifgk+jzb9H3dgzzp6S3603\/m2hOv+OwmRDnFTQHLFdaphWAL8h68mpWSbRW08lBoxf8I8IQfohCrEu9VLD1Yqmel\/TQOSz5oxfzxrDN2h5TyUfolcqQ+7b8EGACd0Ob6pUnq9QAAAABJRU5ErkJggg==",
            "icon_type":"image/svg+xml";
            "provider_protocol":"openid_connect",
            "provider_id":"microsoft_live",
            "display_name":"Microsoft Live",
            "documentation_url":"https://dev.onedrive.com/app-registration.htm",
            "color":"00aef0",
            "label":"Log in with a Microsoft Account",
            "textcolor":"FFFFFF"
         },
         
            "link":"/openid_connect/cpanelid",
            "icon":"iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN\/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz\/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH\/w\/qQplcAYCEAcB0kThL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uFxYvfvjV69fO0ZjRoZfyl5O\/bXyl\/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o\/2j5sfVT0Kf7kxmTk\/8EA5jz\/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5\/wAAgOkAAHUwAADqYAAAOpgAABdvkl\/FRgAAAcVJREFUeNrs1k+IT1EUB\/DP783DlIaSjZVC+VM2E42V2EupmShRYmFhYUGU1WQjsrK3UlOjkLJRqMlilL\/FjiI2jGYxocn4OTb3V8\/t\/eY3T5Hi1Ol2z\/ned+75nntOrxURfrcU\/oD820EGcBXvMZXpa9zE8E8nIqKpHoqFyXhEDESE8hcy2bFA3Aj6MNJq+IQX4xk2NDizN89kPfZhCMsz3zQuYk3FNof9eJvqO4TRVLeOHK5yfSIiZubheCIijma25zU1O55h3nQyOYVzPdK+g62ZbaIGdz+nuMBmnO0RYAb3sL0mcC67s\/1UiSNYlDkup1t+S\/sn6Me6CuZTwmzCWpTpEseybz0QEY8yDi916Y\/TGe52ROyKiNke\/bKtwKos8lgXynbW1OMAlsxD8wVMFviaOQZrwCuxpbL\/jlc1NepIG+fTg1LiBVZXAKP4gocJ\/DIFXlHBvMPHNL8+VOyf8RhXMFmdXcNduGxHxFxEnIyIM5nvVkQUEdGX1o7WzrsC13Cjy4QuU1Y5LXcTZe20drReUrRlEXG9JpvZ9ILySTDYZHKXlWbbk+bQQWzE0lSX\/tQv02kdw9MmU7X1\/0firwvyYwBM1QP5WTjUAAAAAABJRU5ErkJggg==",
            "icon_type":"image/svg+xml";
            "provider_protocol":"openid_connect",
            "provider_id":"cpanelid",
            "display_name":"CpanelID",
            "documentation_url":"http://go.cpanel.net/cpanelidmanage",
            "color":"FF6C2C",
            "label":"Log in with a cPanelID",
            "textcolor":"000000"
         }
      ]
}

 

Note:

Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.

 

Parameters

This function does not accept parameters.

Returns

Return

Type

Description

Possible values

Example

icon

string

The icon file to display on the button in the cPanel login interface.

A valid Base64-encoded image file.

 Click to view...

icon_type

string

The icon file's MIME type.

A valid image format's MIME type.

image/svg+xml

link

string

 A link to the identity provider's configuration for the appropriate service on the system. 

A valid URL.

 https://hostname.example.com:2083/openid_connect/cpanelid 

provider_name

string

The identity provider's system name.

A valid string.

cpanelid

display_name

string

The identity provider's friendly name. cPanel & WHM interfaces will display this value.

A valid string.

cPanel ID

 documentation_url 

 string 

The public URL of the identity provider's implementation documentation.

A valid URL.

https://go.cpanel.net/OpenIDConnect

color

string

The background color of the button on the cPanel interface.

 A valid RGB hexadecimal color value. 

00aef0

label

string

The text label of the login icon in the cPanel login interface.

A valid string.

Log in with a cPanel ID Account

textcolor

string

The color of the text label in the cPanel login interface.

 A valid RGB hexadecimal color value. 

FFFFFF

 

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

The cPanel Interface

For  cPanel  &  WHM  version  58 Overview The cPanel interface is...

User Preferences

For cPanel & WHM version 58 Overview This document outlines how to access your cPanel...

Manage External Authentications

For cPanel & WHM version 58 Overview Manage credentials Additional documentation...

What is cPanelID?

In This Article:  Overview ServicesHow to get a cPanelID cPanelID External...

Guide to cPanel Interface Customization - cPanel Style Development

Introduction You can develop custom styles that modify the appearance of the cPanel interface....