File tree 3 files changed +33
-3
lines changed
3 files changed +33
-3
lines changed Original file line number Diff line number Diff line change @@ -76,8 +76,15 @@ def ds_callback():
76
76
77
77
@ds .route ("/must_authenticate" )
78
78
def ds_must_authenticate ():
79
- return render_template ("must_authenticate.html" , title = "Must authenticate" )
80
-
79
+ qs = DS_CONFIG ["quickstart" ]
80
+ if qs :
81
+ return redirect (url_for ("ds.ds_quickstart_auth" ))
82
+ else :
83
+ return render_template ("must_authenticate.html" , title = "Must authenticate" )
84
+
85
+ @ds .route (("/quickstart_auth" ))
86
+ def ds_quickstart_auth ():
87
+ return render_template ("quickstart_auth.html" , title = "Must authenticate" )
81
88
82
89
@ds .route ("/ds_return" )
83
90
def ds_return ():
Original file line number Diff line number Diff line change
1
+ <!-- extend base layout -->
2
+ {% extends "base.html" %}
3
+
4
+ {% block content %}
5
+ < div style ="margin:1% 5%; ">
6
+ < h1 class ="display-4 "> Please Authenticate with DocuSign</ h1 >
7
+
8
+ < form method ="post " data-busy ="form " action ={{ url_for( "ds.ds_login") }}>
9
+ < div class ="form-group col-md-5 ">
10
+ < label for ="auth_type "> Please choose your OAuth2.0 grant type</ label >
11
+ < select class ="form-control " id ="auth_type " name ="auth_type ">
12
+ < option value ="code_grant "> Authorization Code Grant</ option >
13
+ </ select >
14
+ < p class ="lead " style ="padding-top: .5rem; ">
15
+ < input type ="hidden " name ="csrf_token " value ="{{ csrf_token() }} "/>
16
+ < button type ="submit " class ="btn btn-docu "> Authenticate with DocuSign</ button >
17
+ </ p >
18
+ </ div >
19
+ </ form >
20
+ < hr class ="my-4 ">
21
+ < p > You need to authenticate with DocuSign to continue your request.</ p >
22
+ </ div >
23
+ {% endblock %}
Original file line number Diff line number Diff line change 11
11
< tr >
12
12
< td >
13
13
< h1 class ="display-4 "> Python Launcher</ h1 >
14
- < p class ="Xlead "> Welcome to the DocuSign Python examples using multiple OAuth flows (JWT and Authorization Code Grant) .</ p >
14
+ < p class ="Xlead "> Welcome to the DocuSign Python Quickstart launcher .</ p >
15
15
</ td >
16
16
< td >
17
17
< img src ="/static/assets/banner-code.png " />
You can’t perform that action at this time.
0 commit comments