Skip to content

Commit 0164aec

Browse files
authored
chore: update rp and idp styling (#1607)
- rp improve styling for readability - rp updated to latest @dopry/svelte-oidc to get EventLog - idp add home page with links to admin and rp - add tasks to pr template asking contributors to update the idp and rp with new features
1 parent 842a4d5 commit 0164aec

File tree

9 files changed

+8556
-1295
lines changed

9 files changed

+8556
-1295
lines changed

.github/pull_request_template.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ Fixes #
1414
- [ ] documentation updated
1515
- [ ] `CHANGELOG.md` updated (only for user relevant changes)
1616
- [ ] author name in `AUTHORS`
17+
- [ ] tests/app/idp updated to demonstrate new features
18+
- [ ] tests/app/rp updated to demonstrate new features

.github/workflows/test.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Test
22

33
on: [push, pull_request]
44

5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
59
jobs:
610
test-package:
711
name: Test Package (Python ${{ matrix.python-version }}, Django ${{ matrix.django-version }})
@@ -74,8 +78,8 @@ jobs:
7478
fail-fast: false
7579
matrix:
7680
node-version:
77-
- "18.x"
78-
- "20.x"
81+
- "22.x"
82+
- "24.x"
7983
steps:
8084
- name: Checkout
8185
uses: actions/checkout@v4

tests/app/idp/idp/urls.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@
1717

1818
from django.contrib import admin
1919
from django.urls import include, path
20+
from django.views.generic import TemplateView
2021

2122

2223
urlpatterns = [
24+
path('', TemplateView.as_view(template_name='home/index.html'), name='home'), # Maps the root URL to your home_view
2325
path("admin/", admin.site.urls),
2426
path("o/", include("oauth2_provider.urls", namespace="oauth2_provider")),
2527
path("accounts/", include("django.contrib.auth.urls")),
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>Identity Provider Home</title>
8+
</head>
9+
10+
<body>
11+
<h1>Welcome to the Identity Provider (IdP)</h1>
12+
<p>This is the home page of the Identity Provider used for testing OAuth2 flows.</p>
13+
<p>Please ensure that the test relying party is running to proceed with authentication tests.</p>
14+
<ul>
15+
<li>IDP Admin interface <a href="http://localhost:8000/admin/">http://localhost:8000/admin/</a></li>
16+
<li>Test Relying Party <a href="http://localhost:5173/">http://localhost:5173/</a></li>
17+
</ul>
18+
</body>
19+
</html>

0 commit comments

Comments
 (0)