diff options
author | enahum <nahumhbl@gmail.com> | 2016-08-10 14:20:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-10 14:20:31 -0500 |
commit | b523f9867533a0294f8a96ad35d8340838fdab32 (patch) | |
tree | eb145bf0bffe54002258f7944bfc7eaae003a951 /api | |
parent | 3ef26de2ac9789407cb94d5ae5a50234966535b4 (diff) | |
download | chat-b523f9867533a0294f8a96ad35d8340838fdab32.tar.gz chat-b523f9867533a0294f8a96ad35d8340838fdab32.tar.bz2 chat-b523f9867533a0294f8a96ad35d8340838fdab32.zip |
PLT-3879 Fix OAuth provider routes (#3780)
Diffstat (limited to 'api')
-rw-r--r-- | api/oauth.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/api/oauth.go b/api/oauth.go index fe2ecf166..546b0bdca 100644 --- a/api/oauth.go +++ b/api/oauth.go @@ -33,11 +33,9 @@ func InitOAuth() { BaseRoutes.OAuth.Handle("/{service:[A-Za-z0-9]+}/complete", AppHandlerIndependent(completeOAuth)).Methods("GET") BaseRoutes.OAuth.Handle("/{service:[A-Za-z0-9]+}/login", AppHandlerIndependent(loginWithOAuth)).Methods("GET") BaseRoutes.OAuth.Handle("/{service:[A-Za-z0-9]+}/signup", AppHandlerIndependent(signupWithOAuth)).Methods("GET") - BaseRoutes.OAuth.Handle("/authorize", AppHandlerTrustRequester(authorizeOAuth)).Methods("GET") - BaseRoutes.OAuth.Handle("/access_token", ApiAppHandlerTrustRequester(getAccessToken)).Methods("POST") - BaseRoutes.Root.Handle("/authorize", AppHandlerTrustRequester(authorizeOAuth)).Methods("GET") - BaseRoutes.Root.Handle("/access_token", ApiAppHandlerTrustRequester(getAccessToken)).Methods("POST") + BaseRoutes.Root.Handle("/oauth/authorize", AppHandlerTrustRequester(authorizeOAuth)).Methods("GET") + BaseRoutes.Root.Handle("/oauth/access_token", ApiAppHandlerTrustRequester(getAccessToken)).Methods("POST") // Handle all the old routes, to be later removed BaseRoutes.Root.Handle("/{service:[A-Za-z0-9]+}/complete", AppHandlerIndependent(completeOAuth)).Methods("GET") |