An extension service for the CIAPI that implements an OAuth2 like flow for getting a new SessionId.
This project has been retired and is no longer being supported by City Index Ltd.
- if you should choose to fork it outside of City Index, please let us know so we can link to your project
- Your app redirects browser to
authServer + "?returnUrl=" + UrlEncode(ReturnUrl)
- User enters their login details into the authServer,
- which creates CIAPI
Session
- authServer redirects browser back to
ReturnUrl + '?auth={encryptedCode}'
- Your app makes server side request to
authServer + "/api/Decrypt/" + HttpUtility.UrlEncode({encryptedCode})
- authServer returns
"Username:Session"
- Your app removes
"
and splits on : to retrieve valueUsername
andSession
values. - Now your app can make calls directly to CIAPI using
Username
andSession
values in your request header, as per normal
Copyright 2013 City Index Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.