Skip to content

[PUI] SSO Support - #6333

Merged
SchrodingersGat merged 29 commits into
inventree:masterfrom
matmair:matmair/issue5753
Feb 2, 2024
Merged

SchrodingersGat merged 29 commits into
inventree:masterfrom
matmair:matmair/issue5753

Conversation

@matmair

@matmair matmair commented Jan 23, 2024

Copy link
Copy Markdown
Member

Adds SSO (login, registration) support to PUI
Closes #5753

@matmair matmair added security Relates to a security issue User Interface Related to the frontend / User Interface labels Jan 23, 2024
@matmair matmair added this to the 0.14.0 milestone Jan 23, 2024
@matmair matmair self-assigned this Jan 23, 2024
@netlify

netlify Bot commented Jan 23, 2024 •

Copy link
Copy Markdown

✅ Deploy Preview for inventree-web-pui-preview ready!

Name Link
🔨 Latest commit 6fc0358
🔍 Latest deploy log https://app.netlify.com/sites/inventree-web-pui-preview/deploys/65bc93266854be000820aa61
😎 Deploy Preview https://deploy-preview-6333--inventree-web-pui-preview.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 100 (no change from production)
Accessibility: 86 (no change from production)
Best Practices: 100 (no change from production)
SEO: 70 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@matmair

matmair commented Jan 23, 2024

Copy link
Copy Markdown
Member Author

This is done UI wise; during implementation I came across the need for a way to tell the backend if CUI or PUI should be used/redirected to. Working name is ui_taint - I will add this to the session and add some initial logic to redirect to the correct page after SSO usage

@matmair
matmair marked this pull request as ready for review January 30, 2024 08:01
@matmair

matmair commented Jan 30, 2024

Copy link
Copy Markdown
Member Author

@SchrodingersGat this is ready for review; for testing it needs to be pulled locally as there are API changes

@SchrodingersGat

Copy link
Copy Markdown
Member

@matmair on reviewing this I found some issues which needed addressing, not relating to your changes but just in general.

Working on fixing these in #6368

Once that is merged, then your branch should be much easier to review

@matmair

matmair commented Jan 30, 2024

Copy link
Copy Markdown
Member Author

Thank for reviewing @SchrodingersGat

@SchrodingersGat

Copy link
Copy Markdown
Member

@matmair AWESOME work - at least with my testing on Azure, this works very cleanly.

One edge case where it can fail (minor, but took me a while to work out):

  1. Run the frontend-dev server at localhost:5173/platform
  2. Login via SSO from localhost:5173
  3. The server after login redirects to localhost:8000/platform (not localhost:5173/platform)

This can cause some strange issues with the dev server. However if you start from localhost:8000/platform it works ok.

@SchrodingersGat

Copy link
Copy Markdown
Member

I am happy to merge as is, but any comments on the edge case above?

@SchrodingersGat
SchrodingersGat merged commit be30cec into inventree:master Feb 2, 2024
@matmair
matmair deleted the matmair/issue5753 branch February 2, 2024 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

security Relates to a security issue User Interface Related to the frontend / User Interface

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

[PUI] SSO Support

2 participants