add AuthorizationCode.nonce
This commit is contained in:
parent
313b442af7
commit
da17f51778
|
@ -902,6 +902,8 @@ class AuthorizationCode(db.Model, ModelMixin):
|
||||||
# what is the input response_type, e.g. "code", "code,id_token", ...
|
# what is the input response_type, e.g. "code", "code,id_token", ...
|
||||||
response_type = db.Column(db.String(128))
|
response_type = db.Column(db.String(128))
|
||||||
|
|
||||||
|
nonce = db.Column(db.Text, nullable=True, default=None, server_default=text("NULL"))
|
||||||
|
|
||||||
user = db.relationship(User, lazy=False)
|
user = db.relationship(User, lazy=False)
|
||||||
client = db.relationship(Client, lazy=False)
|
client = db.relationship(Client, lazy=False)
|
||||||
|
|
||||||
|
@ -1187,9 +1189,7 @@ class ClientUser(db.Model, ModelMixin):
|
||||||
db.String(128), nullable=True, default=None, server_default=text("NULL")
|
db.String(128), nullable=True, default=None, server_default=text("NULL")
|
||||||
)
|
)
|
||||||
|
|
||||||
nonce = db.Column(
|
nonce = db.Column(db.Text, nullable=True, default=None, server_default=text("NULL"))
|
||||||
db.Text, nullable=True, default=None, server_default=text("NULL")
|
|
||||||
)
|
|
||||||
|
|
||||||
# user can decide to send to client a default avatar
|
# user can decide to send to client a default avatar
|
||||||
default_avatar = db.Column(
|
default_avatar = db.Column(
|
||||||
|
|
|
@ -271,6 +271,7 @@ def authorize():
|
||||||
scope=scope,
|
scope=scope,
|
||||||
redirect_uri=redirect_uri,
|
redirect_uri=redirect_uri,
|
||||||
response_type=response_types_to_str(response_types),
|
response_type=response_types_to_str(response_types),
|
||||||
|
nonce=nonce
|
||||||
)
|
)
|
||||||
db.session.add(auth_code)
|
db.session.add(auth_code)
|
||||||
redirect_args["code"] = auth_code.code
|
redirect_args["code"] = auth_code.code
|
||||||
|
|
Loading…
Reference in a new issue