From bb05daf090900d75e67a7c6c54bd294f5d602a60 Mon Sep 17 00:00:00 2001 From: jakedt Date: Wed, 26 Mar 2014 16:28:35 -0400 Subject: [PATCH] Fix the discovery doc to point to the stack specific auth endpoint. --- endpoints/api/discovery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/endpoints/api/discovery.py b/endpoints/api/discovery.py index b23cf9e23..0b66c41aa 100644 --- a/endpoints/api/discovery.py +++ b/endpoints/api/discovery.py @@ -157,7 +157,7 @@ def swagger_route_data(include_internal=False, compact=False): "implicit": { "tokenName": "access_token", "loginEndpoint": { - "url": "http://localhost:5000/oauth/authorize", + "url": "http://%s/oauth/authorize" % app.config['URL_HOST'], }, }, },