Hostea dash board
 
 
 
 
 
 
Go to file
Aravinth Manivannan 4b20f9a439
feat: Dashboard-Gitea SSO integration test script
STEPS
    1. Register new user on dashboard

    2. Confirm user email, link is received from email. maildev/maildev
       is an SMTP server specifically built for testing emails locally.
       It comes with a REST API[0], which is used to access emails

    3. Sign in to Dashboard

    4. Visit /support/new/ on dashboard to raise new support request

    5. Redirection to Hostea Gitea support repository is done via
       JavaScript, so we simply test to see if the support repository's
       new issue page is present in the Dashboard response

    6. Go to support repository's new issue page. Gitea will redirect to
       sign in page

    7. Parse sign in page, find OIDC SSO link in sign in page

    8. Visit OIDC SSO link in sign in page, to be redirected to
       authorization page

    9. If OIDC integration on Dashboard is setup via `create_oidc`
       management command, then auto-authorization will be enabled for
       the integration. So user will be redirected to Gitea

    10. For new OIDC logins, Gitea will present a form to choose
	preferred username and enter email address. So fill that form
	and submit it.

	Please note the form submits to a different URL than the one at
	which the form is available. See `Gitea.__link_acount` and
	`Gitea.__link_acount_signup` and its usage in `Gitea._sso_login`

    11. Verify user creation by GET /{username}, should respond HTTP 200

    12. Visit new issue on support repository, should respond HTTP 200

RESOURCES
    [0]: https://github.com/maildev/maildev/blob/master/docs/rest.md
2022-06-26 04:19:01 +05:30
accounts feat: mv redirect if authenticated to decorator and guard other 2022-06-22 00:43:10 +05:30
billing feat: payment status checking util 2022-06-25 16:27:43 +05:30
dash fix: don't create additional configuration opts 2022-06-25 18:01:08 +05:30
dashboard fix: import vars defined in local_settings.py 2022-06-26 04:17:26 +05:30
docs feat: docs: local_settings.example.py 2022-06-25 18:56:54 +05:30
infrastructure fix & rm: create/rm hostscripts, rm HOSTEA_DOMAIN 2022-06-25 18:24:52 +05:30
integration feat: Dashboard-Gitea SSO integration test script 2022-06-26 04:19:01 +05:30
static feat: views for listing, viewing and deleting specific VMs 2022-06-18 22:12:41 +05:30
support feat: support app 2022-06-17 18:12:02 +05:30
.env-sample feat: init billing app 2022-06-22 00:36:46 +05:30
.gitignore chore: improve coverage 2022-06-18 13:54:03 +05:30
.woodpecker.yml feat: init billing app 2022-06-22 00:36:46 +05:30
LICENSE.md init 2022-04-27 17:03:47 +05:30
Makefile feat: Dashboard-Gitea SSO integration test script 2022-06-26 04:19:01 +05:30
README.md feat: init hacking instructions 2022-06-06 04:37:15 +05:30
manage.py init django 2022-04-27 17:09:07 +05:30
requirements.txt feat: init gitpython and infrastructure app 2022-06-24 20:33:32 +05:30

README.md

Hostea dashboard

status-badge AGPL License Chat

Customer workflow, Hostea admin interface and OIDC provider for Hostea

Hacking

See HACKING