File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
apps/teams-test-app/src/public Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
- <!DOCTYPE html>
1
+ <!doctype html>
2
2
< html >
3
3
< head >
4
4
< h2 style ="font-size: 40px "> Starting auth</ h2 >
@@ -11,6 +11,7 @@ <h2 style="font-size: 40px">Starting auth</h2>
11
11
const authId = params . get ( 'authId' ) ;
12
12
const method = params . get ( 'oauthRedirectMethod' ) ;
13
13
const redirectUrl = params . get ( 'hostRedirectUrl' ) ;
14
+ const redirect_uri = params . get ( 'redirect_uri' ) ;
14
15
const hostName = params . get ( 'hostName' ) ;
15
16
const state = `{"authId":"${ authId } ","method":"${ method } ","hostName":"${ hostName } "}` ;
16
17
@@ -19,8 +20,12 @@ <h2 style="font-size: 40px">Starting auth</h2>
19
20
}
20
21
21
22
const getRedirectUri = ( ) => {
22
- const idx = window . location . href . lastIndexOf ( '/' ) ;
23
- return `${ window . location . href . slice ( 0 , idx ) } /auth_end.html` ;
23
+ if ( redirect_uri ) {
24
+ return redirect_uri ;
25
+ } else {
26
+ const idx = window . location . href . lastIndexOf ( '/' ) ;
27
+ return `${ window . location . href . slice ( 0 , idx ) } /auth_end.html` ;
28
+ }
24
29
} ;
25
30
26
31
// Redirect to auth_end page if its mockOauth for testing
You can’t perform that action at this time.
0 commit comments