Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php namespace Drupal\miniorange_oauth_client; use Drupal\miniorange_oauth_client..
Decoded Output download
<?php
namespace Drupal\miniorange_oauth_client;
use Drupal\miniorange_oauth_client\Utilities;
use Drupal\miniorange_oauth_client\DBQueries;
class appValues
{
public $appName;
public $appType;
public $clientId;
public $clientSecret;
public $scope;
public $displayName;
public $valuesInBody;
public $valuesInHeader;
public $authorizeEndpoint;
public $accessTokenEndpoint;
public $userInfoEndpoint;
public $jkwsUrlEndpoint;
public $enable_login_with_oauth;
public $grantTypevalue;
public $display_login_link;
public $loginflowtype;
public $disableRoleUpdate;
public $emailAttr;
public $nameAttr;
public $enableRolemapping;
public $roleAttribute;
public $attributeMap;
public $roleMap;
public $defaultRole;
public $enablegroupmapping;
public $groupAttribute;
public $groupmap;
public $keepExistingGroups;
public $profilemap;
public $enable_profile_mapping;
public $profile_entity_type;
public $autocreateuser;
public $create_disable_user;
public $redirect_after_login;
public $redirect_disable;
public $redirect_unregister;
public $same_page_after_logout;
public $singlelogouturl;
public $settokeninsession;
public $sendidtokeninslorequest;
public $enable_role_based_restriction;
public $role_restriction_attrname;
public $typeof_role_restriction;
public $list_of_roles;
public $redirect_url_for_role_restriction;
function __construct($u3)
{
$nd = DBQueries::get_app_values_from_app_name($u3);
if (!is_array($nd)) {
goto G4;
}
$this->appName = $nd["app_name"];
$this->appType = $nd["app_type"];
$this->scope = $nd["scope"];
$this->clientId = $nd["client_id"];
$this->clientSecret = $nd["client_secret"];
$this->displayName = $nd["display_name"];
$this->valuesInBody = $nd["values_in_body"];
$this->valuesInHeader = $nd["values_in_header"];
$this->authorizeEndpoint = $nd["authorize_endpoint"];
$this->accessTokenEndpoint = $nd["access_token_endpoint"];
$this->userInfoEndpoint = $nd["user_info_endpoint"];
$this->jkwsUrlEndpoint = $nd["jwks_endpoint"];
$this->loginflowtype = $nd["login_flow_type"];
$this->enable_login_with_oauth = $nd["enable_login_with_oauth"];
$this->display_login_link = $nd["display_login_link"];
$this->grantTypevalue = $nd["grant_type_value"];
$this->emailAttr = $nd["email_attribute"];
$this->nameAttr = $nd["username_attribute"];
$this->enableRolemapping = $nd["enable_rolemapping"];
$this->disableRoleUpdate = $nd["disable_role_update"];
$this->roleAttribute = $nd["role_attribute"];
$this->attributeMap = $nd["attribute_map"];
$this->roleMap = $nd["role_map"];
$this->defaultRole = $nd["default_role"];
$this->enablegroupmapping = $nd["enable_group_mapping"];
$this->groupAttribute = $nd["group_attribute"];
$this->groupmap = $nd["group_map"];
$this->keepExistingGroups = $nd["keep_existing_groups"];
$this->enable_profile_mapping = $nd["enable_profile_mapping"];
$this->profilemap = $nd["profile_map"];
$this->profile_entity_type = $nd["profile_entity_type"];
$this->autocreateuser = $nd["enable_auto_create_user"];
$this->create_disable_user = $nd["create_disabled_users"];
$this->redirect_after_login = $nd["redirect_after_login"];
$this->redirect_disable = $nd["redirect_disabled"];
$this->redirect_unregister = $nd["redirect_unregistered"];
$this->same_page_after_logout = $nd["logout_redirect"];
$this->singlelogouturl = $nd["single_logout_url"];
$this->settokeninsession = $nd["enable_set_token_in_session_header"];
$this->sendidtokeninslorequest = $nd["send_id_token_in_slo_request"];
$this->enable_role_based_restriction = $nd["enable_role_based_restriction"];
$this->role_restriction_attrname = $nd["role_restriction_attrname"];
$this->typeof_role_restriction = $nd["typeof_role_restriction"];
$this->list_of_roles = $nd["list_of_roles"];
$this->redirect_url_for_role_restriction = $nd["redirect_url_for_role_restriction"];
G4:
}
function set_appName($dr)
{
$this->appName = $dr;
}
function get_appName()
{
return $this->appName;
}
function set_appType($xw)
{
$this->appType = $xw;
}
function get_appType()
{
return $this->appType;
}
function set_clientId($zA)
{
$this->clientId = $zA;
}
function get_clientId()
{
return $this->clientId;
}
function set_clientSecret($FF)
{
$this->clientSecret = $FF;
}
function get_clientSecret()
{
$A_ = \Drupal::config("miniorange_oauth_client.settings")->get("miniorange_oauth_client_customer_admin_token");
return Utilities::decrypt_data($this->clientSecret, $A_);
}
function set_scope($Hx)
{
$this->scope = $Hx;
}
function get_scope()
{
return $this->scope;
}
function set_displayName($qK)
{
$this->displayName = $qK;
}
function get_displayName()
{
return $this->displayName;
}
function set_valuesInBody($tv)
{
$this->valuesInBody = $tv;
}
function get_valuesInBody()
{
return $this->valuesInBody;
}
function set_grantTypevalue($tv)
{
$this->grantTypevalue = $tv;
}
function get_grantTypevalue()
{
return $this->grantTypevalue;
}
function set_valuesInHeader($aI)
{
$this->valuesInHeader = $aI;
}
function get_valuesInHeader()
{
return $this->valuesInHeader;
}
function set_authorizeEndpoint($KM)
{
$this->authorizeEndpoint = $KM;
}
function get_authorizeEndpoint()
{
return $this->authorizeEndpoint;
}
function set_accessTokenEndpoint($uP)
{
$this->accessTokenEndpoint = $uP;
}
function get_accessTokenEndpoint()
{
return $this->accessTokenEndpoint;
}
function set_userInfoEndpoint($Bs)
{
$this->userInfoEndpoint = $Bs;
}
function get_userInfoEndpoint()
{
return $this->userInfoEndpoint;
}
function set_jkwsUrlEndpoint($X6)
{
$this->jkwsUrlEndpoint = $X6;
}
function get_jkwsUrlEndpoint()
{
return $this->jkwsUrlEndpoint;
}
function set_emailAttr($T_)
{
$this->emailAttr = $T_;
}
function get_emailAttr()
{
return $this->emailAttr;
}
function set_nameAttr($lK)
{
$this->nameAttr = $lK;
}
function get_nameAttr()
{
return $this->nameAttr;
}
function set_enableRolemapping($xI)
{
$this->enableRolemapping = $xI;
}
function get_enableRolemapping()
{
return $this->enableRolemapping;
}
function set_disableRoleUpdate($jF)
{
$this->disableRoleUpdate = $jF;
}
function get_disableRoleUpdate()
{
return $this->disableRoleUpdate;
}
function set_roleAttribute($wL)
{
$this->roleAttribute = $wL;
}
function get_roleAttribute()
{
return $this->roleAttribute;
}
function set_attributeMap($qR)
{
$this->attributeMap = $qR;
}
function get_attributeMap()
{
if (!($this->attributeMap != null)) {
goto HQ;
}
return json_decode($this->attributeMap, true);
HQ:
}
function set_roleMap($Fj)
{
$this->roleMap = $Fj;
}
function get_roleMap()
{
if (!($this->roleMap != null)) {
goto rS;
}
return json_decode($this->roleMap, true);
rS:
}
function set_profileMap($VQ)
{
$this->profilemap = $VQ;
}
function get_profileMap()
{
if (!($this->profilemap != null)) {
goto xo;
}
return json_decode($this->profilemap, true);
xo:
}
function set_groupMap($UB)
{
$this->groupmap = $UB;
}
function get_groupMap()
{
if (!($this->groupmap != null)) {
goto lc;
}
return json_decode($this->groupmap, true);
lc:
}
function set_defaultRole($Kw)
{
$this->defaultRole = $Kw;
}
function get_defaultRole()
{
return $this->defaultRole;
}
function getAllConfig()
{
$jH = array("appName" => $this->appName, "appType" => $this->appType, "scope" => $this->scope, "grantTypevalue" => $this->grantTypevalue, "clientId" => $this->clientId, "clientSecret" => $this->clientSecret, "displayName" => $this->displayName, "valuesInBody" => $this->valuesInBody, "valuesInHeader" => $this->valuesInHeader, "authorizeEndpoint" => $this->authorizeEndpoint, "accessTokenEndpoint" => $this->accessTokenEndpoint, "userInfoEndpoint" => $this->userInfoEndpoint, "jkwsUrlEndpoint" => $this->jkwsUrlEndpoint, "login_flow_type" => $this->loginflowtype, "display_login_link" => $this->display_login_link);
return $jH;
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Drupal\miniorange_oauth_client;
use Drupal\miniorange_oauth_client\Utilities;
use Drupal\miniorange_oauth_client\DBQueries;
class appValues
{
public $appName;
public $appType;
public $clientId;
public $clientSecret;
public $scope;
public $displayName;
public $valuesInBody;
public $valuesInHeader;
public $authorizeEndpoint;
public $accessTokenEndpoint;
public $userInfoEndpoint;
public $jkwsUrlEndpoint;
public $enable_login_with_oauth;
public $grantTypevalue;
public $display_login_link;
public $loginflowtype;
public $disableRoleUpdate;
public $emailAttr;
public $nameAttr;
public $enableRolemapping;
public $roleAttribute;
public $attributeMap;
public $roleMap;
public $defaultRole;
public $enablegroupmapping;
public $groupAttribute;
public $groupmap;
public $keepExistingGroups;
public $profilemap;
public $enable_profile_mapping;
public $profile_entity_type;
public $autocreateuser;
public $create_disable_user;
public $redirect_after_login;
public $redirect_disable;
public $redirect_unregister;
public $same_page_after_logout;
public $singlelogouturl;
public $settokeninsession;
public $sendidtokeninslorequest;
public $enable_role_based_restriction;
public $role_restriction_attrname;
public $typeof_role_restriction;
public $list_of_roles;
public $redirect_url_for_role_restriction;
function __construct($u3)
{
$nd = DBQueries::get_app_values_from_app_name($u3);
if (!is_array($nd)) {
goto G4;
}
$this->appName = $nd["\x61\160\160\x5f\x6e\141\x6d\x65"];
$this->appType = $nd["\x61\160\x70\137\164\171\x70\x65"];
$this->scope = $nd["\163\143\157\160\145"];
$this->clientId = $nd["\x63\x6c\x69\x65\156\x74\x5f\x69\x64"];
$this->clientSecret = $nd["\143\x6c\151\145\x6e\164\137\x73\x65\143\x72\145\164"];
$this->displayName = $nd["\144\x69\163\160\154\141\x79\x5f\x6e\x61\x6d\x65"];
$this->valuesInBody = $nd["\x76\x61\154\x75\145\163\x5f\x69\156\x5f\142\157\144\x79"];
$this->valuesInHeader = $nd["\x76\141\154\165\145\163\137\x69\x6e\137\150\x65\x61\x64\145\162"];
$this->authorizeEndpoint = $nd["\x61\x75\164\x68\157\162\151\x7a\x65\137\145\156\x64\160\x6f\151\156\164"];
$this->accessTokenEndpoint = $nd["\141\x63\x63\x65\x73\x73\x5f\164\x6f\153\x65\x6e\x5f\x65\x6e\x64\x70\157\151\156\164"];
$this->userInfoEndpoint = $nd["\165\163\x65\x72\137\151\156\146\157\x5f\145\x6e\x64\x70\157\x69\156\164"];
$this->jkwsUrlEndpoint = $nd["\x6a\167\x6b\163\137\x65\x6e\x64\160\157\151\x6e\164"];
$this->loginflowtype = $nd["\154\x6f\147\151\x6e\x5f\x66\154\x6f\x77\x5f\164\x79\160\x65"];
$this->enable_login_with_oauth = $nd["\145\156\141\x62\154\145\x5f\x6c\157\x67\151\x6e\x5f\167\151\x74\x68\x5f\157\141\x75\x74\x68"];
$this->display_login_link = $nd["\x64\x69\x73\160\x6c\x61\171\137\154\x6f\147\x69\156\137\154\151\x6e\x6b"];
$this->grantTypevalue = $nd["\x67\x72\141\x6e\164\137\164\x79\160\x65\x5f\x76\141\x6c\165\x65"];
$this->emailAttr = $nd["\145\155\141\151\x6c\x5f\x61\x74\x74\x72\151\x62\x75\164\145"];
$this->nameAttr = $nd["\x75\x73\x65\x72\156\x61\x6d\x65\137\141\164\x74\162\151\x62\165\164\145"];
$this->enableRolemapping = $nd["\145\x6e\x61\x62\154\145\137\x72\x6f\x6c\145\x6d\141\160\x70\x69\156\147"];
$this->disableRoleUpdate = $nd["\144\151\x73\x61\x62\154\x65\x5f\x72\x6f\x6c\145\x5f\x75\160\144\141\x74\145"];
$this->roleAttribute = $nd["\162\157\154\145\x5f\x61\164\164\x72\151\142\x75\x74\x65"];
$this->attributeMap = $nd["\x61\164\164\162\x69\142\165\164\145\x5f\155\141\x70"];
$this->roleMap = $nd["\x72\157\x6c\x65\x5f\155\141\x70"];
$this->defaultRole = $nd["\x64\145\x66\141\x75\154\164\137\162\157\x6c\x65"];
$this->enablegroupmapping = $nd["\x65\156\x61\142\x6c\x65\137\147\162\157\165\x70\137\x6d\x61\x70\160\x69\x6e\x67"];
$this->groupAttribute = $nd["\x67\162\x6f\x75\x70\x5f\141\x74\x74\162\x69\x62\x75\x74\x65"];
$this->groupmap = $nd["\x67\162\157\x75\160\x5f\155\141\160"];
$this->keepExistingGroups = $nd["\153\145\145\160\137\x65\170\x69\163\x74\151\x6e\147\137\147\x72\157\165\160\163"];
$this->enable_profile_mapping = $nd["\x65\156\x61\142\x6c\x65\137\x70\162\157\146\151\154\145\x5f\155\x61\160\160\x69\x6e\x67"];
$this->profilemap = $nd["\160\162\157\146\151\154\x65\x5f\x6d\141\160"];
$this->profile_entity_type = $nd["\160\162\157\146\151\x6c\145\x5f\x65\x6e\x74\151\164\x79\137\x74\171\160\145"];
$this->autocreateuser = $nd["\x65\x6e\141\x62\x6c\x65\137\x61\165\164\x6f\137\143\x72\x65\141\x74\x65\x5f\165\x73\145\x72"];
$this->create_disable_user = $nd["\143\x72\145\141\x74\x65\137\x64\151\x73\141\x62\x6c\x65\x64\x5f\x75\163\145\x72\x73"];
$this->redirect_after_login = $nd["\162\145\144\x69\162\145\x63\x74\137\x61\x66\x74\x65\x72\x5f\154\157\147\151\x6e"];
$this->redirect_disable = $nd["\162\x65\144\x69\x72\145\143\164\x5f\x64\151\163\x61\142\154\145\144"];
$this->redirect_unregister = $nd["\162\145\x64\151\162\x65\x63\164\x5f\x75\156\162\145\x67\151\163\164\145\x72\145\144"];
$this->same_page_after_logout = $nd["\154\157\147\x6f\x75\x74\137\162\145\144\151\x72\145\x63\164"];
$this->singlelogouturl = $nd["\x73\x69\x6e\147\154\145\x5f\154\x6f\147\x6f\165\164\137\165\x72\x6c"];
$this->settokeninsession = $nd["\x65\156\141\x62\x6c\145\137\x73\x65\164\137\x74\x6f\153\145\156\137\151\156\137\163\x65\x73\163\151\x6f\156\137\x68\x65\x61\144\x65\162"];
$this->sendidtokeninslorequest = $nd["\x73\145\156\144\x5f\x69\x64\x5f\164\157\x6b\x65\156\137\x69\x6e\137\x73\154\x6f\137\x72\145\x71\x75\x65\163\164"];
$this->enable_role_based_restriction = $nd["\145\x6e\x61\x62\154\x65\x5f\162\157\x6c\145\137\142\141\163\145\144\x5f\162\x65\163\164\x72\151\143\164\151\157\x6e"];
$this->role_restriction_attrname = $nd["\162\157\x6c\145\137\x72\x65\163\x74\x72\151\143\164\151\157\156\x5f\x61\x74\164\x72\156\x61\155\145"];
$this->typeof_role_restriction = $nd["\x74\x79\160\x65\x6f\146\137\162\157\154\145\137\x72\145\163\x74\x72\151\143\164\x69\157\156"];
$this->list_of_roles = $nd["\x6c\151\163\x74\x5f\157\x66\x5f\x72\157\154\x65\163"];
$this->redirect_url_for_role_restriction = $nd["\x72\145\144\151\162\x65\143\x74\137\165\162\154\137\146\x6f\x72\x5f\162\x6f\x6c\145\x5f\162\x65\163\x74\162\151\x63\x74\x69\157\156"];
G4:
}
function set_appName($dr)
{
$this->appName = $dr;
}
function get_appName()
{
return $this->appName;
}
function set_appType($xw)
{
$this->appType = $xw;
}
function get_appType()
{
return $this->appType;
}
function set_clientId($zA)
{
$this->clientId = $zA;
}
function get_clientId()
{
return $this->clientId;
}
function set_clientSecret($FF)
{
$this->clientSecret = $FF;
}
function get_clientSecret()
{
$A_ = \Drupal::config("\x6d\151\156\x69\x6f\x72\x61\x6e\x67\145\137\x6f\141\x75\x74\x68\137\x63\x6c\x69\145\156\164\56\x73\145\x74\164\151\156\x67\163")->get("\155\151\156\151\157\162\x61\156\147\145\x5f\x6f\x61\x75\164\150\137\x63\154\x69\145\156\x74\x5f\143\165\x73\x74\x6f\x6d\145\162\137\141\144\155\x69\156\137\x74\x6f\153\145\156");
return Utilities::decrypt_data($this->clientSecret, $A_);
}
function set_scope($Hx)
{
$this->scope = $Hx;
}
function get_scope()
{
return $this->scope;
}
function set_displayName($qK)
{
$this->displayName = $qK;
}
function get_displayName()
{
return $this->displayName;
}
function set_valuesInBody($tv)
{
$this->valuesInBody = $tv;
}
function get_valuesInBody()
{
return $this->valuesInBody;
}
function set_grantTypevalue($tv)
{
$this->grantTypevalue = $tv;
}
function get_grantTypevalue()
{
return $this->grantTypevalue;
}
function set_valuesInHeader($aI)
{
$this->valuesInHeader = $aI;
}
function get_valuesInHeader()
{
return $this->valuesInHeader;
}
function set_authorizeEndpoint($KM)
{
$this->authorizeEndpoint = $KM;
}
function get_authorizeEndpoint()
{
return $this->authorizeEndpoint;
}
function set_accessTokenEndpoint($uP)
{
$this->accessTokenEndpoint = $uP;
}
function get_accessTokenEndpoint()
{
return $this->accessTokenEndpoint;
}
function set_userInfoEndpoint($Bs)
{
$this->userInfoEndpoint = $Bs;
}
function get_userInfoEndpoint()
{
return $this->userInfoEndpoint;
}
function set_jkwsUrlEndpoint($X6)
{
$this->jkwsUrlEndpoint = $X6;
}
function get_jkwsUrlEndpoint()
{
return $this->jkwsUrlEndpoint;
}
function set_emailAttr($T_)
{
$this->emailAttr = $T_;
}
function get_emailAttr()
{
return $this->emailAttr;
}
function set_nameAttr($lK)
{
$this->nameAttr = $lK;
}
function get_nameAttr()
{
return $this->nameAttr;
}
function set_enableRolemapping($xI)
{
$this->enableRolemapping = $xI;
}
function get_enableRolemapping()
{
return $this->enableRolemapping;
}
function set_disableRoleUpdate($jF)
{
$this->disableRoleUpdate = $jF;
}
function get_disableRoleUpdate()
{
return $this->disableRoleUpdate;
}
function set_roleAttribute($wL)
{
$this->roleAttribute = $wL;
}
function get_roleAttribute()
{
return $this->roleAttribute;
}
function set_attributeMap($qR)
{
$this->attributeMap = $qR;
}
function get_attributeMap()
{
if (!($this->attributeMap != null)) {
goto HQ;
}
return json_decode($this->attributeMap, true);
HQ:
}
function set_roleMap($Fj)
{
$this->roleMap = $Fj;
}
function get_roleMap()
{
if (!($this->roleMap != null)) {
goto rS;
}
return json_decode($this->roleMap, true);
rS:
}
function set_profileMap($VQ)
{
$this->profilemap = $VQ;
}
function get_profileMap()
{
if (!($this->profilemap != null)) {
goto xo;
}
return json_decode($this->profilemap, true);
xo:
}
function set_groupMap($UB)
{
$this->groupmap = $UB;
}
function get_groupMap()
{
if (!($this->groupmap != null)) {
goto lc;
}
return json_decode($this->groupmap, true);
lc:
}
function set_defaultRole($Kw)
{
$this->defaultRole = $Kw;
}
function get_defaultRole()
{
return $this->defaultRole;
}
function getAllConfig()
{
$jH = array("\141\x70\x70\x4e\141\x6d\145" => $this->appName, "\141\x70\160\124\171\160\x65" => $this->appType, "\x73\x63\157\x70\145" => $this->scope, "\x67\x72\141\x6e\164\124\x79\160\x65\166\141\154\165\145" => $this->grantTypevalue, "\x63\x6c\x69\x65\156\x74\111\144" => $this->clientId, "\143\x6c\x69\x65\156\x74\x53\x65\143\x72\145\x74" => $this->clientSecret, "\x64\x69\163\x70\154\141\x79\x4e\141\155\x65" => $this->displayName, "\x76\x61\x6c\x75\145\x73\x49\x6e\102\157\144\x79" => $this->valuesInBody, "\166\x61\x6c\x75\x65\x73\111\156\110\x65\x61\x64\x65\x72" => $this->valuesInHeader, "\x61\x75\x74\x68\x6f\162\x69\172\145\x45\156\144\x70\x6f\x69\x6e\x74" => $this->authorizeEndpoint, "\141\143\143\145\163\163\x54\157\x6b\145\156\x45\156\144\x70\x6f\151\156\x74" => $this->accessTokenEndpoint, "\x75\163\x65\x72\x49\x6e\x66\157\x45\x6e\x64\x70\x6f\151\156\x74" => $this->userInfoEndpoint, "\152\153\167\x73\x55\162\154\x45\156\144\160\157\151\156\164" => $this->jkwsUrlEndpoint, "\x6c\x6f\x67\x69\156\x5f\x66\154\x6f\x77\x5f\x74\171\x70\145" => $this->loginflowtype, "\x64\x69\x73\x70\x6c\x61\x79\x5f\154\x6f\147\x69\x6e\x5f\x6c\151\x6e\x6b" => $this->display_login_link);
return $jH;
}
}
Function Calls
None |
Stats
MD5 | fb8e17992f180f46e4dfe788d309bdda |
Eval Count | 0 |
Decode Time | 70 ms |