@@ -67,29 +67,29 @@ function middleware (oidc) {
6767 const router = express . Router ( '/' )
6868
6969 // User-facing Authentication API
70- router . get ( [ '/login' , '/signin' ] , restrictToTopDomain , LoginRequest . get )
70+ router . get ( [ '/login' , '/signin' ] , LoginRequest . get )
7171
72- router . post ( '/login/password' , restrictToTopDomain , bodyParser , LoginRequest . loginPassword )
72+ router . post ( '/login/password' , bodyParser , LoginRequest . loginPassword )
7373
74- router . post ( '/login/tls' , restrictToTopDomain , bodyParser , LoginRequest . loginTls )
74+ router . post ( '/login/tls' , bodyParser , LoginRequest . loginTls )
7575
7676 router . get ( '/account/password/reset' , restrictToTopDomain , PasswordResetEmailRequest . get )
7777 router . post ( '/account/password/reset' , restrictToTopDomain , bodyParser , PasswordResetEmailRequest . post )
7878
7979 router . get ( '/account/password/change' , restrictToTopDomain , PasswordChangeRequest . get )
8080 router . post ( '/account/password/change' , restrictToTopDomain , bodyParser , PasswordChangeRequest . post )
8181
82- router . get ( '/.well-known/solid/logout/' , restrictToTopDomain , ( req , res ) => res . redirect ( '/logout' ) )
82+ router . get ( '/.well-known/solid/logout/' , ( req , res ) => res . redirect ( '/logout' ) )
8383
84- router . get ( '/goodbye' , restrictToTopDomain , ( req , res ) => { res . render ( 'auth/goodbye' ) } )
84+ router . get ( '/goodbye' , ( req , res ) => { res . render ( 'auth/goodbye' ) } )
8585
8686 // The relying party callback is called at the end of the OIDC signin process
87- router . get ( '/api/oidc/rp/:issuer_id' , restrictToTopDomain , AuthCallbackRequest . get )
87+ router . get ( '/api/oidc/rp/:issuer_id' , AuthCallbackRequest . get )
8888
8989 // Static assets related to authentication
9090 const authAssets = [
91- [ '/.well-known/solid/login/' , '../static/popup-redirect.html' , false , true ] ,
92- [ '/common/' , 'solid-auth-client/dist-popup/popup.html' , true , true ]
91+ [ '/.well-known/solid/login/' , '../static/popup-redirect.html' , false ] ,
92+ [ '/common/' , 'solid-auth-client/dist-popup/popup.html' ]
9393 ]
9494 authAssets . map ( args => routeResolvedFile ( router , ...args ) )
9595
0 commit comments