iignatov / LightOpenID

Lightweight PHP5 library for easy OpenID authentication.
MIT License
79 stars 96 forks source link

add support for variable namespace alias for SREG attributes - fixes … #19

Open CybotTM opened 7 years ago

CybotTM commented 7 years ago

…SREG attributes not extracted if SREG namespace attribute name is not "openid_ns_sreg"

Support SREG attributes if namespace attribute name is NOT "openid_ns_sreg" by replacing hard coded SREG namespace attribute name with SREG namespace detection (see getAxAttributes()).

Makes working:

openid_ns_ext1=http://openid.net/extensions/sreg/1.1 openid_ext1_nickname=sebastian.mendel