testing auth output
This commit is contained in:
parent
c1eb47c64e
commit
802efbe286
1 changed files with 15 additions and 7 deletions
22
web.py
22
web.py
|
@ -24,11 +24,19 @@ def main():
|
||||||
|
|
||||||
@app.route('/internal/auth_a')
|
@app.route('/internal/auth_a')
|
||||||
def internal_auth_a():
|
def internal_auth_a():
|
||||||
client_id, client_secret = Mastodon.create_app(cfg['name'],
|
# client_id, client_secret = Mastodon.create_app(cfg['name'],
|
||||||
api_base_url=instance_url,
|
# api_base_url=instance_url,
|
||||||
scopes="write:statuses",
|
# scopes="write:statuses",
|
||||||
website="https://git.lynnesbian.space/lynnesbian/curious-greg")
|
# website=cfg['website'])
|
||||||
|
|
||||||
client = Mastodon(client_id = client_id,
|
client_id = "abc"
|
||||||
client_secret = client_secret,
|
client_secret = "123"
|
||||||
api_base_url=instance_url)
|
|
||||||
|
client_info = {
|
||||||
|
"client_id": client_id,
|
||||||
|
"client_secret":client_secret,
|
||||||
|
"scopes":"write:statuses",
|
||||||
|
"website": cfg['website']
|
||||||
|
}
|
||||||
|
|
||||||
|
return(json.dumps(client_info))
|
||||||
|
|
Loading…
Reference in a new issue