Skip to content

An extension service for the CIAPI that implements an OAuth2 like flow for getting a new SessionId.

License

Notifications You must be signed in to change notification settings

cityindex-attic/ciapi-oauth2-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ciapi-oauth2-service

An extension service for the CIAPI that implements an OAuth2 like flow for getting a new SessionId.

Status

IncompleteUnsupported

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

Website flow

Flow diagram

  1. Your app redirects browser to authServer + "?returnUrl=" + UrlEncode(ReturnUrl)
  2. User enters their login details into the authServer,
  3. which creates CIAPI Session
  4. authServer redirects browser back to ReturnUrl + '?auth={encryptedCode}'
  5. Your app makes server side request to authServer + "/api/Decrypt/" + HttpUtility.UrlEncode({encryptedCode})
  6. authServer returns "Username:Session"
  7. Your app removes " and splits on : to retrieve value Username and Session values.
  8. Now your app can make calls directly to CIAPI using Username and Session values in your request header, as per normal

License

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.

About

An extension service for the CIAPI that implements an OAuth2 like flow for getting a new SessionId.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •