Wish List
Add your wish list for the next version of CoreJS.
Added By Louis Liu on Sep 27, 2023
- Upgrade cot_login and CotSession for supporting content-type: application/json
cot_login only supports server with a form as request body. It doesn't support Auth API V2 in production.
I want to use cot_login.js with EIS Auth API for user login authentication.
When using cot_login.js and CotSession to make a POST request to Auth API V2 in production https://insideto-secure.toronto.ca/c3api_auth/v2/AuthService.svc/AuthSet
The below error will be displayed.
{
"error": {
"code": null,
"message": "The content type 'application/x-www-form-urlencoded' is not supported."
}
}
The reason is the Auth API V2 only accept header "content-type: application/json" in the request, however the cot_login is using jQuery's $.post() to make call to server, thus the content-type header will always be 'application/x-www-form-urlencoded'
This is the limitation of cot_login in our CotJs framework.
2. Upgrade cot_login to support flat login page instead of modal popup one
Current cot_login is using a modal popup for user to input username and password. For standalone mobile App on the city phones, it is required to have a static flat login page.