use localhost instead of sl-client

This commit is contained in:
Son NK 2019-07-23 23:22:38 +02:00 committed by Son NK
parent 410a746c25
commit d5a2932a97
2 changed files with 1 additions and 5 deletions

View file

@ -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.

View file

@ -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()