File tree 4 files changed +31
-3
lines changed
4 files changed +31
-3
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change 1
1
from django .views .generic import RedirectView , TemplateView
2
+ from django .templatetags .static import static
2
3
3
4
4
5
class IndexRedirectView (RedirectView ):
@@ -7,3 +8,8 @@ class IndexRedirectView(RedirectView):
7
8
8
9
class DocView (TemplateView ):
9
10
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
Original file line number Diff line number Diff line change @@ -92,6 +92,9 @@ <h3 id="authorization_workflow">Authorization workflow</h3>
92
92
will be
93
93
an alpha-numeric code
94
94
</ li >
95
+ < li >
96
+ < b > Or ignore all above points and use our widget</ b > . Check widget section on top
97
+ </ li >
95
98
</ ul >
96
99
97
100
< h3 id ="token_exchange "> Token Exchange</ h3 >
@@ -428,9 +431,8 @@ <h3>Login Widget</h3>
428
431
To include these widgets follow these steps
429
432
</ div >
430
433
< ul class ="doc ">
431
- {% static 'widget/js/login.js' as widget_login_js %}
432
434
< li > Include
433
- < code > <script src="{% absolute_url widget_login_js %}" type="application/javascript"></script> </ code >
435
+ < code > <script src="{% absolute_url login_js_url %}" type="application/javascript"></script> </ code >
434
436
in your html file
435
437
</ li >
436
438
< li >
Original file line number Diff line number Diff line change 64
64
< a href ="{% url 'doc' %} "> Documentation</ a >
65
65
</ div >
66
66
< 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 >
68
68
</ div >
69
69
< div class ="col-md-2 ">
70
70
< a href ="https://github.com/DheerendraRathor/ldap-oauth2/ " target ="_blank "> Source Code</ a >
You can’t perform that action at this time.
0 commit comments