I have an app which is OAuth2.0 and RFC 6749 compliant.
I need to extend the behaviour now such that a new RP will invoke my /auth
endpoint and it is expecting a response containing my auth_ref, hence I thought instead of the default application/x-www-form-urlencoded
format, I should use application/json
in the request. This is for 2 reasons:
- I dont need to change my existing behaviour of http web redirect with login page response if the request is from a web browser
- I can extend the system to cater to the new RP that expects a JSON response containing the auth_ref, among other things
Q1. Is this spec compliant? According to my understanding of the RFC
Q2. an alternative I am considering is to just expose a different endpoint /authz
Q3. Also considering the possibility of adding a new param to the request on the same /auth
endpoint. Will this also become non compliant with the spec? or will it be treated as an extension to the spec? Any implications if I extend it?
Thanks in advance.