Skip to content

Commit

Permalink
fixup! Remove SSO-app and django-oauth-toolkit
Browse files Browse the repository at this point in the history
More stuff that should have been isolated
  • Loading branch information
henrikhorluck committed Jan 27, 2024
1 parent 3402651 commit d2ce722
Show file tree
Hide file tree
Showing 5 changed files with 130 additions and 0 deletions.
Empty file.
8 changes: 8 additions & 0 deletions apps/online_oidc_provider/templatetags/zip_lists.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from django import template

register = template.Library()


@register.filter
def zip_lists(a, b):
return zip(a, b)
1 change: 1 addition & 0 deletions assets/sso/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import './less/sso.less';
120 changes: 120 additions & 0 deletions assets/sso/less/sso.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
#sso-container {
max-width: 480px;
margin: 0 auto;
}

body,
html {
min-height: 100%;
background-color: white;
}

#sso-panel {
//border: 1px solid #004b80;
margin: 60px 0 32px;
padding-bottom: 10px;

@media screen and (max-width: 767px) {
margin: 16px;
}
}

#sso-panel-header {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
position: relative;
height: 110px;

img {
background-color: #004b80;
border-radius: 50% 50%;
max-height: 90px;
max-width: 90px;
padding: 10px;
z-index: 1; // To stay on top of the empty div with blue background named blue-header-top
}

#sso-blue-header-top {
position: absolute;
bottom: 0;
background-color: #004b80;
min-height: 50px;
height: 50%;
width: 100%;
border-radius: 15px 15px 0 0;
box-shadow:
0 6px 10px 0 rgba(0, 0, 0, 0.15),
0 6px 10px 0 rgba(0, 0, 0, 0.11);
}
}

#sso-panel-body {
position: relative;
z-index: 1; // For staying on top of the shadow from the header
box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.15), 0 6px 10px 0 rgba(0, 0, 0, 0.11);
background-color: #eee;
padding: 20px 20px 0 20px;
border: 4px #004b80 solid;
border-top: none;
border-radius: 0 0 15px 15px;

& > h4 {
text-align: center;
margin-top: 5px;
margin-bottom: 20px;
font-size: 20px;
font-weight: bold;
line-height: 16px;
}
}

#sso-authorization-form {
& > section > p {
text-align: center;
font-size: 16px;

&::after {
content: ' ';
display: block;
margin: 10px auto;
width: 30%;
border-bottom: 1px #636363 solid;
}
}

.sso-permissions {
background-color: #fff;
padding: 15px;
border: 1px solid #aaa;
border-radius: 4px;

li {
padding: 5px 0;
}
}
}

#sso-control-buttons {
display: flex;
margin: 10px 0;
justify-content: space-around;
}

#sso-app-display {
padding: 20px 0 5px;
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 0;

& h4 {
font-size: 16px;
font-weight: bold;
}

& img {
max-width: 130px;
}
}
1 change: 1 addition & 0 deletions esbuild.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ let entryPoints = [
{ out: 'hobbygroups', in: 'assets/hobbygroups/index.js' },
{ out: 'mailinglists', in: 'assets/mailinglists/index.js' },
{ out: 'profiles', in: 'assets/profiles/index.js' },
{ out: 'sso', in: 'assets/sso/index.js' },
{ out: 'resourcecenter', in: 'assets/resourcecenter/index.js' },
{ out: 'webshop', in: 'assets/webshop/index.js' },
{ out: 'wiki', in: 'assets/wiki/index.js' },
Expand Down

0 comments on commit d2ce722

Please sign in to comment.