From d5a2932a9773b3ecb8b7ecce7d6f73b88caba56d Mon Sep 17 00:00:00 2001 From: Son NK Date: Tue, 23 Jul 2019 23:22:38 +0200 Subject: [PATCH] use localhost instead of sl-client --- README.md | 2 +- server.py | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/README.md b/README.md index 46b613a1..545cc853 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Authorization code flow: http://sl-server:7777/oauth/authorize?client_id=client-id&state=123456&response_type=code&redirect_uri=http%3A%2F%2Flocalhost%3A7000%2Fcallback&state=dvoQ6Jtv0PV68tBUgUMM035oFiZw57 Implicit flow: -http://sl-server:7777/oauth/authorize?client_id=client-id&state=123456&response_type=token&redirect_uri=http%3A%2F%2Fsl-client%3A7000%2Fcallback&state=dvoQ6Jtv0PV68tBUgUMM035oFiZw57 +http://sl-server:7777/oauth/authorize?client_id=client-id&state=123456&response_type=token&redirect_uri=http%3A%2F%2Flocalhost%3A7000%2Fcallback&state=dvoQ6Jtv0PV68tBUgUMM035oFiZw57 Exchange the code to get the token with `{code}` replaced by the code obtained in previous step. diff --git a/server.py b/server.py index f6afc54c..4b33a564 100644 --- a/server.py +++ b/server.py @@ -97,15 +97,11 @@ def fake_data(): # Create a client client1 = Client.create_new(name="Demo", user_id=user.id) - client1.home_url = "http://sl-client:7000" client1.oauth_client_id = "client-id" client1.oauth_client_secret = "client-secret" client1.published = True db.session.commit() - RedirectUri.create(client_id=client1.id, uri="http://sl-client:7000/callback") - RedirectUri.create(client_id=client1.id, uri="http://sl-client:7000/implicit") - RedirectUri.create(client_id=client1.id, uri="http://sl-client:7000/implicit-jso") db.session.commit()