File tree Expand file tree Collapse file tree 4 files changed +31
-3
lines changed
Expand file tree Collapse file tree 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 11from django .views .generic import RedirectView , TemplateView
2+ from django .templatetags .static import static
23
34
45class IndexRedirectView (RedirectView ):
@@ -7,3 +8,8 @@ class IndexRedirectView(RedirectView):
78
89class 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
Original file line number Diff line number Diff 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 > <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 >
434436 in your html file
435437 </ li >
436438 < li >
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments