use localhost instead of sl-client
This commit is contained in:
parent
410a746c25
commit
d5a2932a97
|
@ -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
|
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:
|
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.
|
Exchange the code to get the token with `{code}` replaced by the code obtained in previous step.
|
||||||
|
|
||||||
|
|
|
@ -97,15 +97,11 @@ def fake_data():
|
||||||
|
|
||||||
# Create a client
|
# Create a client
|
||||||
client1 = Client.create_new(name="Demo", user_id=user.id)
|
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_id = "client-id"
|
||||||
client1.oauth_client_secret = "client-secret"
|
client1.oauth_client_secret = "client-secret"
|
||||||
client1.published = True
|
client1.published = True
|
||||||
db.session.commit()
|
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()
|
db.session.commit()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue