Skip to content

User authentication - #9

Open
Tom-Kingstone wants to merge 5 commits into
developfrom
OneClickLCA_Toolkit-#8-UserAuthentication
Open

Tom-Kingstone wants to merge 5 commits into
developfrom
OneClickLCA_Toolkit-#8-UserAuthentication

Conversation

@Tom-Kingstone

Copy link
Copy Markdown
Contributor

NOTE: Depends on

BHoM/HTTP_Toolkit#137

Issues addressed by this PR

Closes #8

Added very simple (probably not at all secure) user auth to allow ensuring that the correct subset of users are using the tool.

Also updated the adapter with extra constructors to allow for more useful unit and functionality tests, and allows it to be used in ZCTs with dependency injection.

Test files

See the unit tests that check basic functionality without needing to actually get projects/data from the OneClick LCA API.
Make sure to check that the user API works properly (test pulling projects, then designs/results from a project and see if the objects are populated properly).

Changelog

  • Added basic user authentication

Additional comments

@Tom-Kingstone Tom-Kingstone self-assigned this Oct 15, 2026
@Tom-Kingstone Tom-Kingstone added the type:feature New capability or enhancement label Oct 15, 2026
@Tom-Kingstone Tom-Kingstone changed the title One click lca toolkit #8 user authentication User authentication Oct 15, 2026

@JohannaOlin1 JohannaOlin1 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have tested pulling materials and design/project results (using the design and tool ids in the unit tests) and they have been populated correctly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:feature New capability or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create OneClickLCA_API to communicate with OneClickLCA_Production database to check users and retrieve api key

3 participants