bshaffer / oauth2-server-php

A library for implementing an OAuth2 Server in php
http://bshaffer.github.io/oauth2-server-php-docs
MIT License
3.26k stars 950 forks source link

apache mod_auth_openidc compatibility ? #960

Closed DanRoche closed 5 years ago

DanRoche commented 5 years ago

Hi,

this is more a question than an issue :

i am trying to implement an openidc/oauth server in php to be used with an apache mod_auth_openidc client, does somebody as already succeeded with this kind of config?

by spying the HTTP streams it can see

after this mod_auth_openidc complaint about the no "id_token" parameter found in the code response, and effectively there is no id_token field in the token.

i do have set the $config['use_openid_connect'] = true option in the server init as stated in the doc.

i began to debug oauth2-server-php code, and i may be wrong, but i have the feeling that the class OAuth2/OpenID/GrantType/AuthorizationCode.php which do the id_token initialisation is never called , this is the OAuth2/GrantType/AuthorizationCode.php class that is called and it does not initilalise the id_token.

does someone has any advice on this ?

thank you by advance.

DanRoche commented 5 years ago

don't bother, i have found the problem.

ticket closed