I suggest improvments in handling of the prompt parameter:
- max_age parameter should be handled the same way as prompt=login
- The login UI should be able to know the requested prompt values (and max_login), but still not re-trigger the login from the callback endpoint.
- prompt=create should be validated so that it is not combined with other prompt values
- prompt=create should display create account page
- Unsupported prompt values should return error to client
I suggest improvments in handling of the prompt parameter: