Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: WEOS-1472 As a developer I should be able configure a session which can be used to store data #160

Open
wants to merge 28 commits into
base: dev
Choose a base branch
from

Conversation

shaniah868
Copy link
Contributor

  • Please check if the PR fulfills these requirements
  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

  • What is the current behavior? (You can also link to an open issue here)

  • What is the new behavior (if this is a feature change)?
    -Data can be stored in sessions
    -Once specified with the x-session extension the data that is needed is added to the context

  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

  • Other information:

shaniah868 and others added 16 commits April 4, 2022 11:41
-Added test for instantiating a session store
-Added functionality in the security global intializer
-Updated security yaml file to test it
-Added a getter for the session store that is on the api
feature: WEOS-1472 Update the Security Globalization Initializer
-Update blog yaml
-Update context middleware to have x-session functionality
-Added a test for context middleware
-Added x-session extension
- Added scenarios to the feature file
feature: WEOS-1472 Update Context middleware
- Generated steps and fixed feature file background
- Filled out functionality for two steps
-Fix the import to be forked repo of gormstore
-Updated the context middleware to check for session id in the cookie and traverse through all cookies to find the one that has a valid session
feature: WEOS-1472 Update Context middleware
- Updated feature file
- E2E tests passing
Weos 1486 - Feature File and E2E test
controllers/rest/api.go Outdated Show resolved Hide resolved
controllers/rest/middleware_context.go Outdated Show resolved Hide resolved
shaniah868 and others added 11 commits April 5, 2022 14:14
-Added the session store on the api to be the session store interface
-Change context middleware to use convertstringtotype
feature: WEOS-1472 Update Context middleware
- Added more scenarios
-Updated the global initializer to have a switch to check for different types of security schemes
-Added more test for check whether the security is global or on a path
-Added functionality in the context middleware that checks for the security in global or path
- Added more scenarios
- All E2E passing
- Updated feature file as needed
feature: WEOS-1472 Update Context middleware
# Conflicts:
#	controllers/rest/api.go
#	controllers/rest/global_initializers.go
#	end2end_test.go
-Updated the api to get gorm connection from api
-Updated yaml files to use name of db instead of title
-Updated tests to use sqldatabase function to set up the gorm connection
feature: WEOS-1472 Update Context middleware
…n which can be used to store data

-Added a getsession function to pull the session by id
-Added test to test the getsession
-Updated the context to take the session name from the environment
-Added session name to os env in the global initializer
…n which can be used to store data

-Ensure test passing
-Added helper functions for gormstore
…n which can be used to store data

-Remove the encoding on the sessionid in the cookie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants