~sircmpwn/meta.sr.ht

90f017a144a91430adbc261cdeaeabdd1419c2a7 — Drew DeVault 3 months ago 53efb3f 0.56.16
OAuth 2.0: fix duplicate grants in kwargs
1 files changed, 3 insertions(+), 1 deletions(-)

M metasrht/blueprints/oauth2.py
M metasrht/blueprints/oauth2.py => metasrht/blueprints/oauth2.py +3 -1
@@ 131,8 131,10 @@ def personal_token_POST():
        grants = validate_grants(literal, valid)

    if not valid.ok:
        kwargs = valid.kwargs
        kwargs["grants"] = grants
        return render_template("oauth2-personal-token-registration.html",
                access_grants=access_grants, grants=grants, **valid.kwargs)
                access_grants=access_grants, **valid.kwargs)

    issue_token = """
    mutation IssueToken($grants: String, $comment: String) {