Thanks @Yuriy.Zabrovarnyy. Client is set to clinet_secret_basic but still facing issue. Please go through following logs
# oxd-server.log
```
2019-02-21 10:27:39,032 TRACE [org.xdi.oxd.server.service.HttpService] Created TRUST_ALL client.
2019-02-21 10:27:39,064 TRACE [org.xdi.oxd.server.op.RegisterSiteOperation] Registered client for site - client_id: @!2151.0487.9FD7.865A!0001!EE84.093F!0008!E11F.5623.E6D5.8C06, claims: {post_logout_redirect_uris=["https:\/\/www.theautopartsshop.com"], grant_types=["client_credentials","refresh_token","authorization_code","urn:ietf:params:oauth:grant-type:uma-ticket"], subject_type=pairwise, application_type=web, default_acr_values=["auth_ldap_server"], redirect_uris=["https:\/\/www.theautopartsshop.com"], token_endpoint_auth_method=client_secret_basic, frontchannel_logout_session_required=false, require_auth_time=false, scopes=["openid","profile","email","clientinfo","permission","user_name"], client_name=oxd client for rp: 9cbce808-03d1-4353-80c1-9a7538c6a338, response_types=["code"], id_token_signed_response_alg=RS256}, registration_client_uri:https://gluu2.enetdefender.com/oxauth/restv1/register?client_id=@!2151.0487.9FD7.865A!0001!EE84.093F!0008!E11F.5623.E6D5.8C06
2019-02-21 10:27:39,098 DEBUG [org.xdi.oxd.server.persistence.SqlPersistenceServiceImpl] RP created successfully. RP : Rp{oxdId='9cbce808-03d1-4353-80c1-9a7538c6a338', opHost='https://gluu2.enetdefender.com', opDiscoveryPath='null', idToken='null', accessToken='null', authorizationRedirectUri='https://www.theautopartsshop.com', postLogoutRedirectUri='https://www.theautopartsshop.com', applicationType='web', redirectUris=[https://www.theautopartsshop.com], frontChannelLogoutUri=null, claimsRedirectUri=[], responseTypes=[code], clientId='@!2151.0487.9FD7.865A!0001!EE84.093F!0008!E11F.5623.E6D5.8C06', clientRegistrationAccessToken='849c583e-e510-4fdf-9932-ce226b20f5dd', clientRegistrationClientUri='https://gluu2.enetdefender.com/oxauth/restv1/register?client_id=@!2151.0487.9FD7.865A!0001!EE84.093F!0008!E11F.5623.E6D5.8C06', clientIdIssuedAt=Thu Feb 21 10:27:39 UTC 2019, clientSecretExpiresAt=Fri Feb 22 09:55:59 UTC 2019, clientName='null', sectorIdentifierUri='null', clientJwksUri='null', setupClient='null', setupOxdId='null', setupClientId='null', scope=[openid, profile, email, clientinfo, permission, user_name], uiLocales=[en], claimsLocales=[en], acrValues=[auth_ldap_server], grantType=[authorization_code, urn:ietf:params:oauth:grant-type:uma-ticket, client_credentials], contacts=[], userId='null', userSecret='null', pat='null', patExpiresIn=0, patCreatedAt=null, patRefreshToken='null', umaProtectedResources=[], rpt='null', rptTokenType='null', rptPct='null', rptExpiresAt=null, rptCreatedAt=null, rptUpgraded=null, tokenEndpointAuthSigningAlg=null, tokenEndpointAuthMethod=null, oxdRpProgrammingLanguage=null}
2019-02-21 10:27:39,098 INFO [org.xdi.oxd.server.op.RegisterSiteOperation] RP created: Rp{oxdId='9cbce808-03d1-4353-80c1-9a7538c6a338', opHost='https://gluu2.enetdefender.com', opDiscoveryPath='null', idToken='null', accessToken='null',authorizationRedirectUri='https://www.theautopartsshop.com', postLogoutRedirectUri='https://www.theautopartsshop.com', applicationType='web', redirectUris=[https://www.theautopartsshop.com], frontChannelLogoutUri=null, claimsRedirectUri=[], responseTypes=[code], clientId='@!2151.0487.9FD7.865A!0001!EE84.093F!0008!E11F.5623.E6D5.8C06', clientRegistrationAccessToken='849c583e-e510-4fdf-9932-ce226b20f5dd', clientRegistrationClientUri='https://gluu2.enetdefender.com/oxauth/restv1/register?client_id=@!2151.0487.9FD7.865A!0001!EE84.093F!0008!E11F.5623.E6D5.8C06', clientIdIssuedAt=Thu Feb 21 10:27:39 UTC 2019, clientSecretExpiresAt=Fri Feb 22 09:55:59 UTC 2019, clientName='null', sectorIdentifierUri='null', clientJwksUri='null', setupClient='null', setupOxdId='null', setupClientId='null', scope=[openid, profile, email, clientinfo, permission, user_name], uiLocales=[en], claimsLocales=[en], acrValues=[auth_ldap_server], grantType=[authorization_code, urn:ietf:params:oauth:grant-type:uma-ticket, client_credentials], contacts=[], userId='null', userSecret='null', pat='null', patExpiresIn=0, patCreatedAt=null, patRefreshToken='null', umaProtectedResources=[], rpt='null', rptTokenType='null', rptPct='null', rptExpiresAt=null, rptCreatedAt=null, rptUpgraded=null, tokenEndpointAuthSigningAlg=null, tokenEndpointAuthMethod=null, oxdRpProgrammingLanguage=null}
2019-02-21 10:27:39,105 TRACE [org.xdi.oxd.server.Processor] Send back response: {"status":"ok","data":{"oxd_id":"9cbce808-03d1-4353-80c1-9a7538c6a338","op_host":"https://gluu2.enetdefender.com"}}
2019-02-21 10:27:39,105 TRACE [org.xdi.oxd.server.SocketProcessor] Socket processor handling...
2019-02-21 10:27:39,105 TRACE [org.xdi.oxd.common.CoreUtils] commandSize: -1, stringStorage:
2019-02-21 10:27:56,671 TRACE [org.xdi.oxd.common.CoreUtils] End of stream. Quit.
2019-02-21 10:27:56,671 TRACE [org.xdi.oxd.server.SocketProcessor] Quit. Read result is null or command string is blank.
2019-02-21 10:29:14,505 TRACE [org.xdi.oxd.server.SocketProcessor] Socket processor handling...
2019-02-21 10:29:14,505 TRACE [org.xdi.oxd.common.CoreUtils] commandSize: -1, stringStorage:
2019-02-21 10:29:14,672 TRACE [org.xdi.oxd.common.CoreUtils] Parsed sizeString: 0583, commandSize: 583
2019-02-21 10:29:14,672 TRACE [org.xdi.oxd.common.CoreUtils] Read result: ReadResult{m_command='{"command":"update_site","params":{"scope":null,"contacts":null,"oxd_id":"9cbce808-03d1-4353-80c1-9a7538c6a338","authorization_redirect_uri":"https://www.theautopartsshop.com","post_logout_redirect_uri":null,"redirect_uris":["https://www.theautopartsshop.com"],"response_types":null,"client_id":null,"client_secret":null,"client_jwks_uri":null,"client_sector_identifier_uri":null,"client_token_endpoint_auth_method":null,"client_request_uris":null,"client_logout_uris":null,"ui_locales":null,"claims_locales":null,"acr_values":null,"grant_types":null,"protection_access_token":null}}', m_leftString=''}
2019-02-21 10:29:14,673 TRACE [org.xdi.oxd.server.Processor] Command: {"command":"update_site","params":{"scope":null,"contacts":null,"oxd_id":"9cbce808-03d1-4353-80c1-9a7538c6a338","authorization_redirect_uri":"https://www.theautopartsshop.com","post_logout_redirect_uri":null,"redirect_uris":["https://www.theautopartsshop.com"],"response_types":null,"client_id":null,"":null,"client_jwks_uri":null,"client_sector_identifier_uri":null,"client_token_endpoint_auth_method":null,"client_request_uris":null,"client_logout_uris":null,"ui_locales":null,"claims_locales":null,"acr_values":null,"grant_types":null,"protection_access_token":null}}
2019-02-21 10:29:14,693 INFO [org.xdi.oxd.server.op.UpdateSiteOperation] Updating rp ... rp: Rp{oxdId='9cbce808-03d1-4353-80c1-9a7538c6a338', opHost='https://gluu2.enetdefender.com', opDiscoveryPath='null', idToken='null', accessToken='null', authorizationRedirectUri='https://www.theautopartsshop.com', postLogoutRedirectUri='https://www.theautopartsshop.com', applicationType='web', redirectUris=[https://www.theautopartsshop.com], frontChannelLogoutUri=null, claimsRedirectUri=[], responseTypes=[code], clientId='@!2151.0487.9FD7.865A!0001!EE84.093F!0008!E11F.5623.E6D5.8C06', clientRegistrationAccessToken='849c583e-e510-4fdf-9932-ce226b20f5dd', clientRegistrationClientUri='https://gluu2.enetdefender.com/oxauth/restv1/register?client_id=@!2151.0487.9FD7.865A!0001!EE84.093F!0008!E11F.5623.E6D5.8C06', clientIdIssuedAt=Thu Feb 21 10:27:39 UTC 2019, clientSecretExpiresAt=Fri Feb 22 09:55:59 UTC 2019, clientName='null', sectorIdentifierUri='null', clientJwksUri='null', setupClient='null', setupOxdId='null', setupClientId='null', scope=[openid, profile, email, clientinfo, permission, user_name], uiLocales=[en], claimsLocales=[en], acrValues=[auth_ldap_server], grantType=[authorization_code, urn:ietf:params:oauth:grant-type:uma-ticket, client_credentials], contacts=[], userId='null', userSecret='null', pat='null', patExpiresIn=0, patCreatedAt=null, patRefreshToken='null', umaProtectedResources=[], rpt='null', rptTokenType='null', rptPct='null', rptExpiresAt=null, rptCreatedAt=null, rptUpgraded=null, tokenEndpointAuthSigningAlg=null, tokenEndpointAuthMethod=null, oxdRpProgrammingLanguage=null}
2019-02-21 10:29:14,693 TRACE [org.xdi.oxd.server.service.HttpService] Created TRUST_ALL client.
2019-02-21 10:29:14,735 TRACE [org.xdi.oxd.server.op.UpdateSiteOperation] Client updated successfully. for rp - client_id: @!2151.0487.9FD7.865A!0001!EE84.093F!0008!E11F.5623.E6D5.8C06
2019-02-21 10:29:14,741 DEBUG [org.xdi.oxd.server.persistence.SqlPersistenceServiceImpl] RP updated successfully. RP : Rp{oxdId='9cbce808-03d1-4353-80c1-9a7538c6a338', opHost='https://gluu2.enetdefender.com', opDiscoveryPath='null', idToken='null', accessToken='null', authorizationRedirectUri='https://www.theautopartsshop.com', postLogoutRedirectUri='https://www.theautopartsshop.com', applicationType='web', redirectUris=[https://www.theautopartsshop.com], frontChannelLogoutUri=null, claimsRedirectUri=[], responseTypes=[code], clientId='@!2151.0487.9FD7.865A!0001!EE84.093F!0008!E11F.5623.E6D5.8C06', clientRegistrationAccessToken='849c583e-e510-4fdf-9932-ce226b20f5dd', clientRegistrationClientUri='https://gluu2.enetdefender.com/oxauth/restv1/register?client_id=@!2151.0487.9FD7.865A!0001!EE84.093F!0008!E11F.5623.E6D5.8C06', clientIdIssuedAt=Thu Feb 21 10:27:39 UTC 2019, clientSecretExpiresAt=Fri Feb 22 09:55:59 UTC 2019, clientName='null', sectorIdentifierUri='null', clientJwksUri='null', setupClient='null', setupOxdId='null', setupClientId='null', scope=[openid, profile, email, clientinfo, permission, user_name], uiLocales=[en], claimsLocales=[en], acrValues=[auth_ldap_server], grantType=[], contacts=[], userId='null', userSecret='null', pat='null', patExpiresIn=0, patCreatedAt=null, patRefreshToken='null', umaProtectedResources=[], rpt='null', rptTokenType='null', rptPct='null', rptExpiresAt=null, rptCreatedAt=null, rptUpgraded=null, tokenEndpointAuthSigningAlg=null, tokenEndpointAuthMethod=null, oxdRpProgrammingLanguage=null}
2019-02-21 10:29:14,742 INFO [org.xdi.oxd.server.op.UpdateSiteOperation] RP updated: Rp{oxdId='9cbce808-03d1-4353-80c1-9a7538c6a338', opHost='https://gluu2.enetdefender.com', opDiscoveryPath='null', idToken='null', accessToken='null', authorizationRedirectUri='https://www.theautopartsshop.com', postLogoutRedirectUri='https://www.theautopartsshop.com', applicationType='web', redirectUris=[https://www.theautopartsshop.com], frontChannelLogoutUri=null, claimsRedirectUri=[], responseTypes=[code], clientId='@!2151.0487.9FD7.865A!0001!EE84.093F!0008!E11F.5623.E6D5.8C06', clientRegistrationAccessToken='849c583e-e510-4fdf-9932-ce226b20f5dd', clientRegistrationClientUri='https://gluu2.enetdefender.com/oxauth/restv1/register?client_id=@!2151.0487.9FD7.865A!0001!EE84.093F!0008!E11F.5623.E6D5.8C06', clientIdIssuedAt=Thu Feb 21 10:27:39 UTC 2019, clientSecretExpiresAt=Fri Feb 22 09:55:59 UTC 2019, clientName='null', sectorIdentifierUri='null', clientJwksUri='null', setupClient='null', setupOxdId='null', setupClientId='null', scope=[openid, profile, email, clientinfo, permission, user_name], uiLocales=[en], claimsLocales=[en], acrValues=[auth_ldap_server], grantType=[], contacts=[], userId='null', userSecret='null', pat='null', patExpiresIn=0, patCreatedAt=null, patRefreshToken='null', umaProtectedResources=[], rpt='null', rptTokenType='null', rptPct='null', rptExpiresAt=null, rptCreatedAt=null, rptUpgraded=null, tokenEndpointAuthSigningAlg=null, tokenEndpointAuthMethod=null, oxdRpProgrammingLanguage=null}
2019-02-21 10:29:14,743 TRACE [org.xdi.oxd.server.Processor] Send back response: {"status":"ok","data":{"oxd_id":"9cbce808-03d1-4353-80c1-9a7538c6a338"}}
2019-02-21 10:29:14,743 TRACE [org.xdi.oxd.server.SocketProcessor] Socket processor handling...
2019-02-21 10:29:14,743 TRACE [org.xdi.oxd.common.CoreUtils] commandSize: -1, stringStorage:
2019-02-21 10:29:15,397 TRACE [org.xdi.oxd.server.SocketProcessor] Socket processor handling...
2019-02-21 10:29:15,397 TRACE [org.xdi.oxd.common.CoreUtils] commandSize: -1, stringStorage:
2019-02-21 10:29:15,402 TRACE [org.xdi.oxd.common.CoreUtils] Parsed sizeString: 0211, commandSize: 211
2019-02-21 10:29:15,402 TRACE [org.xdi.oxd.common.CoreUtils] Read result: ReadResult{m_command='{"command":"get_authorization_url","params":{"prompt":null,"scope":["openid"],"oxd_id":"9cbce808-03d1-4353-80c1-9a7538c6a338","acr_values":null,"hd":null,"protection_access_token":null,"custom_parameters":null}}', m_leftString=''}
2019-02-21 10:29:15,402 TRACE [org.xdi.oxd.server.Processor] Command: {"command":"get_authorization_url","params":{"prompt":null,"scope":["openid"],"oxd_id":"9cbce808-03d1-4353-80c1-9a7538c6a338","acr_values":null,"hd":null,"protection_access_token":null,"custom_parameters":null}}
2019-02-21 10:29:15,445 TRACE [org.xdi.oxd.server.Processor] Send back response: {"status":"ok","data":{"authorization_url":"https://gluu2.enetdefender.com/oxauth/restv1/authorize?response_type=code&client_id=@!2151.0487.9FD7.865A!0001!EE84.093F!0008!E11F.5623.E6D5.8C06&redirect_uri=https://www.theautopartsshop.com&scope=openid&state=5qsvjg8lr3bgkafqlv4thoq685&nonce=kgir7js4rt7ue74df8qhcpvgrk&acr_values=auth_ldap_server"}}
2019-02-21 10:29:15,445 TRACE [org.xdi.oxd.server.SocketProcessor] Socket processor handling...
2019-02-21 10:29:15,445 TRACE [org.xdi.oxd.common.CoreUtils] commandSize: -1, stringStorage:
2019-02-21 10:29:15,445 TRACE [org.xdi.oxd.server.SocketProcessor] Socket processor handling...
2019-02-21 10:29:15,445 TRACE [org.xdi.oxd.common.CoreUtils] commandSize: -1, stringStorage:
2019-02-21 10:30:16,849 TRACE [org.xdi.oxd.common.CoreUtils] End of stream. Quit.
2019-02-21 10:30:16,849 TRACE [org.xdi.oxd.common.CoreUtils] End of stream. Quit.
2019-02-21 10:30:16,849 TRACE [org.xdi.oxd.server.SocketProcessor] Quit. Read result is null or command string is blank.
2019-02-21 10:30:16,849 TRACE [org.xdi.oxd.server.SocketProcessor] Quit. Read result is null or command string is blank.
2019-02-21 10:30:23,251 TRACE [org.xdi.oxd.server.SocketProcessor] Socket processor handling...
2019-02-21 10:30:23,251 TRACE [org.xdi.oxd.common.CoreUtils] commandSize: -1, stringStorage:
2019-02-21 10:30:23,265 TRACE [org.xdi.oxd.common.CoreUtils] Parsed sizeString: 0205, commandSize: 205
2019-02-21 10:30:23,265 TRACE [org.xdi.oxd.common.CoreUtils] Read result: ReadResult{m_command='{"command":"get_tokens_by_code","params":{"code":"a4cc9965-6b93-4b6c-80d1-0b47663e8201","state":"5qsvjg8lr3bgkafqlv4thoq685","oxd_id":"9cbce808-03d1-4353-80c1-9a7538c6a338","protection_access_token":null}}', m_leftString=''}
2019-02-21 10:30:23,265 TRACE [org.xdi.oxd.server.Processor] Command: {"command":"get_tokens_by_code","params":{"code":"a4cc9965-6b93-4b6c-80d1-0b47663e8201","state":"5qsvjg8lr3bgkafqlv4thoq685","oxd_id":"9cbce808-03d1-4353-80c1-9a7538c6a338","protection_access_token":null}}
2019-02-21 10:30:23,274 TRACE [org.xdi.oxd.server.service.HttpService] Created TRUST_ALL client.
-------------------------------------------------------
REQUEST:
-------------------------------------------------------
POST /oxauth/restv1/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: gluu2.enetdefender.com
Authorization: Basic JTQwJTIxMjE1MS4wNDg3LjlGRDcuODY1QSUyMTAwMDElMjFFRTg0LjA5M0YlMjEwMDA4JTIxRTExRi41NjIzLkU2RDUuOEMwNjo4MWZjZDY5OS01MTIwLTQxMDItYTE1NC1hMzc1ZDhkMWMyM2I=
grant_type=authorization_code&code=a4cc9965-6b93-4b6c-80d1-0b47663e8201&redirect_uri=https%3A%2F%2Fwww.theautopartsshop.com
-------------------------------------------------------
RESPONSE:
-------------------------------------------------------
HTTP/1.1 401
Connection: Keep-Alive
Content-Type: application/json;charset=iso-8859-1
Date: Thu, 21 Feb 2019 10:30:23 GMT
Keep-Alive: timeout=5, max=100
Server: Jetty(9.3.15.v20161220)
Strict-Transport-Security: max-age=31536000; includeSubDomains
Transfer-Encoding: chunked
WWW-Authenticate: Basic realm="oxAuth"
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block
{"error":"invalid_client","error_description":"Client authentication failed (e.g. unknown client, no client authentication included, or unsupported authentication method). The authorization server MAY return an HTTP 401 (Unauthorized) status code to indicate which HTTP authentication schemes are supported. If the client attempted to authenticate via the Authorization request header field, the authorization server MUST respond with an HTTP 401 (Unauthorized) status code, and include the WWW-Authenticate response header field matching the authentication scheme used by the client."}
2019-02-21 10:30:23,313 ERROR [org.xdi.oxd.server.op.GetTokensByCodeOperation] Failed to get tokens because response code is: null
2019-02-21 10:30:23,313 ERROR [org.xdi.oxd.server.Processor] No response from operation. Command: Command{command=GET_TOKENS_BY_CODE, params={"code":"a4cc9965-6b93-4b6c-80d1-0b47663e8201","state":"5qsvjg8lr3bgkafqlv4thoq685","oxd_id":"9cbce808-03d1-4353-80c1-9a7538c6a338","protection_access_token":null}}
2019-02-21 10:30:23,314 TRACE [org.xdi.oxd.server.Processor] Send back response: {"status":"error","data":{"error":"internal_error","details":null,"error_description":"Unknown internal server error occurs."}}
2019-02-21 10:30:23,314 ERROR [org.xdi.oxd.server.SocketProcessor] Quit. Enable to process command.
```