AbsaOSS / login-service

AbsaOSS Common Login gateway using JWT Public key signatures
Apache License 2.0
2 stars 0 forks source link

LDAP configurable fields break backward compatiblity in `email`/`mail` opt field #98

Closed dk1844 closed 5 months ago

dk1844 commented 5 months ago

Describe the bug

Until https://github.com/AbsaOSS/login-service/pull/97, the JWT returned by LS optionally returned an email field (based on LDAP's mail field). Now, it returns mail.

To Reproduce

Steps to reproduce the behavior OR commands run:

  1. Build & run from last mater and this master
  2. Get JWT from LS at {{ls_host}}/token/generate, e.g. using your ab#
  3. Decode the token at https://jwt.io/
  4. See that it contains mail and email respectively

Expected behavior

LS is expected not to break compatibility with previous version unless necessary