@@ -83,7 +83,7 @@ func main() {
8383 http .HandleFunc ("/login" , loginHandler )
8484 http .HandleFunc ("/auth" , authHandler )
8585
86- http .HandleFunc ("/authorize" , func (w http.ResponseWriter , r * http.Request ) {
86+ http .HandleFunc ("/oauth/ authorize" , func (w http.ResponseWriter , r * http.Request ) {
8787 if dumpvar {
8888 dumpRequest (os .Stdout , "authorize" , r )
8989 }
@@ -109,7 +109,7 @@ func main() {
109109 }
110110 })
111111
112- http .HandleFunc ("/token" , func (w http.ResponseWriter , r * http.Request ) {
112+ http .HandleFunc ("/oauth/ token" , func (w http.ResponseWriter , r * http.Request ) {
113113 if dumpvar {
114114 _ = dumpRequest (os .Stdout , "token" , r ) // Ignore the error
115115 }
@@ -141,6 +141,8 @@ func main() {
141141 })
142142
143143 log .Printf ("Server is running at %d port.\n " , portvar )
144+ log .Printf ("Point your OAuth client Auth endpoint to %s:%d%s" , "http://localhost" , portvar , "/oauth/authorize" )
145+ log .Printf ("Point your OAuth client Token endpoint to %s:%d%s" , "http://localhost" , portvar , "/oauth/token" )
144146 log .Fatal (http .ListenAndServe (fmt .Sprintf (":%d" ,portvar ), nil ))
145147}
146148
0 commit comments