meateam / OSpike

An OAuth2 authorization server supporting OpenID Connect
MIT License
2 stars 0 forks source link

Change text response to JSON format #87

Closed shakedmanes closed 4 years ago

shakedmanes commented 4 years ago

Adding passport wrapper for callback function received in passport.authenticate for changing the unauthorized text message to JSON .

Also add not found route handling for changing theCannot XXX XXX/XXX text response to Page not found in JSON response.