You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

github.com/shampur/contiv-ui-sessionmanager

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/shampur/contiv-ui-sessionmanager

v0.0.0-20160721010908-c55bb8be2c10
Source
Go
Version published
Created
Source

Contiv-UI Session Manager

Constructed using gorilla/mux and gorilla/sessions

http://www.gorillatoolkit.org/pkg/mux
http://www.gorillatoolkit.org/pkg/sessions

Things that are completed

  • Currently the Contiv-UI application states are session managed.
  • Session manager will be listening on port 8086 and right now supports 4 functions :
    • Login :(Post Request) Validates user name, password, creates a new session and stores userName, userRole and login time in it. The session cookie is encrypted and is sent to the client. A response object is used to talk to the client regarding the state of the user.
    • Logout : (Delete Request) Terminates the session and delete the session cookie on the client.
    • ValidateAppState : (Get Request) This function would validate the session cookie, It first decrypts it and checks if the request is valid or not through the last modification time. ValidateAppState will be called for every state change in the UI.

Things that are pending

  • Code refactoring is needed.
  • Should Integrate the session manager with etcd for storing user details.
  • I am currently adding the API calls of netplugin and volplugin to flow through the session manager proxy.
  • Integration with active directory.

FAQs

Package last updated on 21 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts