Skip to content

Commit e93a8d8

Browse files
Added contributors list. Fixed #3
1 parent 0cac082 commit e93a8d8

File tree

4 files changed

+31
-3
lines changed

4 files changed

+31
-3
lines changed

contributors.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
SSO Contributors
2+
================
3+
4+
Core Developers
5+
----------------
6+
- [Dheerendra Rathor](https://github.com/DheerendraRathor)
7+
8+
Contributors
9+
------------
10+
- [Bijoy Singh](https://github.com/BijoySingh)
11+
- [Prateek Chandan](https://github.com/prateekchandan)
12+
- [Ranveer Aggarwal](https://github.com/ranveeraggarwal)
13+
14+
15+
**A special THANK YOU to:**
16+
17+
- All contributors of Django, DOT, DRF and all other applications used in this application (Please refer to README.md)
18+
- Guido van Rossum for creating Python
19+
- Everyone who has contributed to Computer Science directly or indirectly which was directly or indirectly used in
20+
development of this application

sso/views.py

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from django.views.generic import RedirectView, TemplateView
2+
from django.templatetags.static import static
23

34

45
class IndexRedirectView(RedirectView):
@@ -7,3 +8,8 @@ class IndexRedirectView(RedirectView):
78

89
class DocView(TemplateView):
910
template_name = 'sso/5-minutes-doc.html'
11+
12+
def get_context_data(self, **kwargs):
13+
context = super(DocView, self).get_context_data(**kwargs)
14+
context['login_js_url'] = static('widget/js/login.js')
15+
return context

templates/sso/5-minutes-doc.html

+4-2
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ <h3 id="authorization_workflow">Authorization workflow</h3>
9292
will be
9393
an alpha-numeric code
9494
</li>
95+
<li>
96+
<b>Or ignore all above points and use our widget</b>. Check widget section on top
97+
</li>
9598
</ul>
9699

97100
<h3 id="token_exchange">Token Exchange</h3>
@@ -428,9 +431,8 @@ <h3>Login Widget</h3>
428431
To include these widgets follow these steps
429432
</div>
430433
<ul class="doc">
431-
{% static 'widget/js/login.js' as widget_login_js %}
432434
<li>Include
433-
<code>&lt;script src="{% absolute_url widget_login_js %}" type="application/javascript"&gt;&lt;/script&gt; </code>
435+
<code>&lt;script src="{% absolute_url login_js_url %}" type="application/javascript"&gt;&lt;/script&gt; </code>
434436
in your html file
435437
</li>
436438
<li>

templates/sso/root.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
<a href="{% url 'doc' %}">Documentation</a>
6565
</div>
6666
<div class="col-md-2">
67-
<a href="https://github.com/DheerendraRathor/ldap-oauth2/graphs/contributors" target="_blank">Contributors</a>
67+
<a href="https://github.com/DheerendraRathor/ldap-oauth2/blob/master/contributors.md" target="_blank">Contributors</a>
6868
</div>
6969
<div class="col-md-2">
7070
<a href="https://github.com/DheerendraRathor/ldap-oauth2/" target="_blank">Source Code</a>

0 commit comments

Comments
 (0)