oauth2server: redirect uri validation fix

* Fixes security issue where redirect URIs was not correctly validated
  against the values provided by the client. (closes #2175)

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>