testing auth output

This commit is contained in:
Lynne Megido 2018-11-02 17:52:33 +10:00
parent c1eb47c64e
commit 802efbe286
Signed by: lynnesbian
GPG key ID: FB7B970303ACE499

22
web.py
View file

@ -24,11 +24,19 @@ def main():
@app.route('/internal/auth_a')
def internal_auth_a():
client_id, client_secret = Mastodon.create_app(cfg['name'],
api_base_url=instance_url,
scopes="write:statuses",
website="https://git.lynnesbian.space/lynnesbian/curious-greg")
# client_id, client_secret = Mastodon.create_app(cfg['name'],
# api_base_url=instance_url,
# scopes="write:statuses",
# website=cfg['website'])
client = Mastodon(client_id = client_id,
client_secret = client_secret,
api_base_url=instance_url)
client_id = "abc"
client_secret = "123"
client_info = {
"client_id": client_id,
"client_secret":client_secret,
"scopes":"write:statuses",
"website": cfg['website']
}
return(json.dumps(client_info))