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')
|
||||
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))
|
||||
|
|
Loading…
Reference in a new issue