-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! Remove SSO-app and django-oauth-toolkit
I must have removed these files after I did some earlier testing. These "apps" should have been better isolated IMO.
- Loading branch information
1 parent
35b3569
commit 6d1a7a8
Showing
2 changed files
with
123 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{% extends 'sso/sso_base.html' %} | ||
|
||
<!--{% load chunks %}--> | ||
{% load zip_lists %} | ||
|
||
<!--{% load render_bundle from webpack_loader %}--> | ||
|
||
{% block styles %} | ||
{{ block.super }} | ||
{% render_bundle 'sso' 'css' %} | ||
{% endblock %} | ||
|
||
{% block js %} | ||
{{ block.super }} | ||
{% render_bundle 'sso' 'js' attrs='async type="module"' %} | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<section id="sso-container"> | ||
<div id="sso-panel"> | ||
{% if not error %} | ||
<div id="sso-panel-header"> | ||
<img src="{{ STATIC_URL }}img/online_o.svg" alt="Online"> | ||
<div id="sso-blue-header-top"></div> | ||
</div> | ||
<div id="sso-panel-body"> | ||
<h4>Appens tilganger</h4> | ||
<form id="sso-authorization-form" method="post"> | ||
{% csrf_token %} | ||
{% for field in form %} | ||
{% if field.is_hidden %} | ||
{{ field }} | ||
{% endif %} | ||
{% endfor %} | ||
<section class="sso-permissions"> | ||
<p>Denne appen vil ha tilgang til</p> | ||
<ul> | ||
{% for scope, scope_name in scopes_descriptions|zip_lists:scopes %} | ||
<li><span style="font-weight: bold;">{{scope_name|title}}</span> - {{ scope }}</li> | ||
{% endfor %} | ||
</ul> | ||
</section> | ||
<div id="sso-control-buttons"> | ||
<input type="submit" class="btn btn-large btn-success" name="allow" value="Godta" /> | ||
<input type="submit" class="btn btn-large btn-danger" value="Avslå" /> | ||
</div> | ||
</form> | ||
<section id="sso-app-display"> | ||
{% if application.logo %} | ||
<img src="{{ application.logo.url }}"/> | ||
{% endif %} | ||
<h4>{{ application.name }} </h4> | ||
</section> | ||
</div> | ||
{% else %} | ||
<div id="sso-panel-header"> | ||
<h3>En feil skjedde</h3> | ||
</div> | ||
<div id="sso-panel-body"> | ||
{{ error.description }} | ||
</div> | ||
{% endif %} | ||
</div> | ||
</section> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
|
||
{% load render_bundle from webpack_loader %} | ||
{% load sekizai_tags %} | ||
|
||
<!DOCTYPE html> | ||
<html lang="nb-NO"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | ||
<title>{% block title %}Online, linjeforeningen for informatikk ved NTNU{% endblock %}</title> | ||
<meta name="description" content="Online er linjeforeningen for informatikkstudentene ved NTNU. Våre studenter går Bachelor- eller Mastergradstudium i informatikk."> | ||
<link rel="icon" href="{{ STATIC_URL }}img/favicon.png"> | ||
<link rel="icon" type="image/png" href="{{ STATIC_URL }}mimg/favicon-32x32.png" sizes="32x32"> | ||
<link rel="icon" type="image/png" href="{{ STATIC_URL }}mimg/favicon-194x194.png" sizes="194x194"> | ||
<link rel="icon" type="image/png" href="{{ STATIC_URL }}mimg/favicon-96x96.png" sizes="96x96"> | ||
<link rel="icon" type="image/png" href="{{ STATIC_URL }}mimg/android-chrome-192x192.png" sizes="192x192"> | ||
<link rel="icon" type="image/png" href="{{ STATIC_URL }}mimg/favicon-16x16.png" sizes="16x16"> | ||
<meta name="theme-color" content="#005fa2"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
{% block styles %} | ||
{% endblock %} | ||
{% render_bundle 'core' 'css' %} | ||
{% block scripts %} | ||
{% endblock %} | ||
{% render_block "css" %} | ||
{% block apple-webapp %}{% endblock %} | ||
</head> | ||
<body> | ||
|
||
<div class="container" id="isloading-component"></div> | ||
{% block content %}{% endblock %} | ||
|
||
{% block js %} | ||
<script | ||
src="https://browser.sentry-cdn.com/5.21.1/bundle.min.js" | ||
integrity="sha384-uFON5MXfE3NkWO60hM8JaXAYAV0fqTCQbdy282z8YfelqBoXx+F7JFzX6+WfFIML" | ||
crossorigin="anonymous"> | ||
</script> | ||
<script>Sentry.init({ dsn: '{{ sentry_dsn }}' })</script> | ||
<script src="{% url 'js_reverse' %}" type="text/javascript"></script> | ||
{% render_bundle 'core' 'js' attrs='async type="module"' %} | ||
{% endblock %} | ||
{% render_block "js" %} | ||
|
||
{% if GOOGLE_ANALYTICS_KEY %} | ||
<script type="text/javascript"> | ||
var _gaq = _gaq || []; | ||
_gaq.push(['_setAccount', '{{ GOOGLE_ANALYTICS_KEY }}']); | ||
_gaq.push(['_trackPageview']); | ||
(function() { | ||
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | ||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | ||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | ||
})(); | ||
</script> | ||
{% endif %} | ||
</body> | ||
</html> |