P
P
Pavel Okhlopkov2018-08-16 12:58:47
1C
Pavel Okhlopkov, 2018-08-16 12:58:47

openid 1C does not work, linux apache 2.4? how to setup?

Good afternoon.
There was a problem with OpenID.
The setting was made according to the instructions.
1C Version 8.3.11.3034
WEB Linux Ubuntu 18.04 LTS Apache 2.4
SSL self-signed, added to the storages
I get the OpenID request window, the user is entered in the databases
If you enter the line https://1cwebint.local/a/openid/e1cib/oid2op, then the file is downloaded.
The openID setting:
default.vrd openid looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<point xmlns="http://v8.1c.ru/8.2/virtual-resource-system"
                               xmlns:xs="http://www.w3.org/2001/XMLSchema"
                               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                               base="/a/openid"
                               ib="Srvr=192.168.0.29;Ref=sm;" >
<openid>
<provider>
<lifetime>604800</lifetime>
<returnto>1cwebint\.local</returnto>
</provider>
</openid>
</point>

Client side settings:
<?xml version="1.0" encoding="UTF-8"?>
<point xmlns="http://v8.1c.ru/8.2/virtual-resource-system"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    base="/yabbloko"
    ib="Srvr=192.168.0.29;Ref=yabbloko-p;">
  <standardOdata enable="false"
      reuseSessions="autouse"
      sessionMaxAge="20"
      poolSize="10"
      poolTimeout="5"/>
  <openid>
                <rely url="https://1cwebint.local/a/openid/e1cib/oid2op" />
        </openid>
</point>

The oid2op file that is being downloaded:
<?xml version="1.0" encoding="UTF-8"?>
<xrds:XRDS xmlns:xrds="xri://$xrds" xmlns="xri://$xrd*($v*2.0)">
<XRD>
<Service priority='0'>
<Type>http://specs.openid.net/auth/2.0/server</Type>
<URI>https://1cwebint.local/a/openid/e1cib/oid2op</URI>
</Service>
</XRD>
</xrds:XRDS>

in TJ I see an authorization error, although the user and password are entered correctly.
Log from workplace:
35:31.874002-0,EXCP,0,process=1cv8c,OSThread=9912,setTerminateHandler=setTerminateHandler
35:32.514002-1,LIC,1,process=1cv8c,OSThread=9904,Func=initialize,txt='local Application, hasp HL SOFT local, ORGL8 local net, ORG8A local net, ORG8B local netBase local net'
35:32.530000-15997,LIC,1,process=1cv8c,OSThread=9904,Func=getLicense,res=error,txt='0, client, error, local Application;
hard, local, Base, absent;
hard, net, Base, absent'
35:32.858000-0,VRSREQUEST,1,process=1cv8c,OSThread=9904,Method=POST,URI='/e1cib/login?vl=ru_RU&version=8.3.11.3034&dppw=0&nm=14983493522127896874&dpps∋=-30962342&dpph=0&dppx=600&dppy=600&clnId=037cc91c-096f-4dac-b6a8-34f55a79a540',Headers='1C-BaseLocation: https://1cwebint.local/yabbloko
User-Agent: 1CV8C
Content-Length: 0
1C-ApplicationName: 1CV8C
Accept-Charset: utf-8
Accept-Encoding: deflate,1CSDC;q=0.5
Accept-Language: ru-RU
Accept: application/xml',Body=0
36:26.639001-0,VRSRESPONSE,1,process=1cv8c,OSThread=9904,Status=402,Phrase=Payment required,Headers='Date: Thu, 16 Aug 2018 09:35:31 GMT
Server: Apache/2.4.29 (Ubuntu)
Content-Length: 637
Content-Type: application/xml; charset=utf-8
Set-Cookie: vrs_oidprov=https://1cwebint.local/a/openid/e1cib/oid2op;Version=1',Body=637
36:26.671000-0,EXCP,1,process=1cv8c,OSThread=9904,Exception=580392e6-ba49-4280-ac67-fcd6f2180121,Descr='src\VResourceSessionImpl.cpp(518):
580392e6-ba49-4280-ac67-fcd6f2180121: Неправильное имя пользователя или пароль
Ошибка при выполнении запроса POST к ресурсу /e1cib/login:'
36:58.480001-0,VRSREQUEST,1,process=1cv8c,OSThread=9904,Method=POST,URI='?cmd=auth',Headers='User-Agent: 1CV8C
Content-Length: 54
1C-ApplicationName: 1CV8C
Accept-Charset: utf-8
Accept: application/x-www-form-urlencoded,text/plain;q=0.5
Accept-Language: ru-RU',Body=54
36:58.746000-0,VRSRESPONSE,1,process=1cv8c,OSThread=9904,Status=200,Phrase=OK,Headers='Date: Thu, 16 Aug 2018 09:36:56 GMT
P3P: CP="NON CUR OUR NOR UNI"
Server: Apache/2.4.29 (Ubuntu)
Content-Length: 0
Content-Type: text/plain; charset=utf-8
Cache-Control: no-cache, no-store
Set-Cookie: vrs_oid2op_auth=ohlopkov%3A20180816093656%3A280f3634-a137-11e8-0c94-005056afb414%3AaAQEKBRKUP6Jvypjy9BSi2mO5bhi5oYq1aq2oa7zfEM%3D;Path=/a/openid/;Secure;Expires=Thu, 23 Aug 2018 09:36:56 GMT;Version=1',Body=0
36:58.746001-0,VRSREQUEST,1,process=1cv8c,OSThread=9904,Method=GET,URI='/e1cib/oid2rp?cmd=init&sysver=8.3.11.3034&app=1CV8C&ibn=%D0%98%D0%BD%D1%84%D0%BE%D1%80%D0%BC%D0%B0%D1%86%D0%B8%D0%BE%D0%BD%D0%BD%D0%B0%D1%8F%20%D0%B1%D0%B0%D0%B7%D0%B0%20%231&nm=17362449672081259647∋=4264004954〈=ru_RU',Headers='User-Agent: 1CV8C
Content-Length: 0
1C-ApplicationName: 1CV8C
Accept-Charset: utf-8
Accept: application/x-www-form-urlencoded,text/plain;q=0.5
Accept-Language: ru-RU',Body=0
36:59.089000-0,VRSRESPONSE,1,process=1cv8c,OSThread=9904,Status=200,Phrase=OK,Headers='Date: Thu, 16 Aug 2018 09:36:56 GMT
Server: Apache/2.4.29 (Ubuntu)
Content-Length: 111
Content-Type: text/plain; charset=utf-8
Vary: Accept-Encoding
Cache-Control: no-cache, no-store
Set-Cookie: vrs_oid2rp_sii=17362449672081259647%3A4264004954%3A1CV8C%3A;Path=/yabbloko/;Version=1',Body=111
37:04.105000-0,EXCP,1,process=1cv8c,OSThread=9904,Exception=580392e6-ba49-4280-ac67-fcd6f2180121,Descr='src\ClientPerformerImpl.cpp(2772):
580392e6-ba49-4280-ac67-fcd6f2180121: Неправильное имя пользователя или пароль
Ошибка при выполнении запроса POST к ресурсу /e1cib/login:'
37:04.105001-92200001,PROC,0,process=1cv8c,OSThread=9904

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question