From 75a15ed83b75ad482833116afda23752fa7cc6d1 Mon Sep 17 00:00:00 2001 From: Tom Eliaz Date: Sun, 30 Jun 2013 20:50:58 -0700 Subject: [PATCH] Add save grant to example in provider --- docs/provider.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/provider.rst b/docs/provider.rst index 18adc97b..43795b11 100644 --- a/docs/provider.rst +++ b/docs/provider.rst @@ -265,6 +265,10 @@ implemented with decorators:: user=get_current_user(), expires=expires ) + db.session.add(grant) + db.session.commit() + return grant + In the sample code, there is a ``get_current_user`` method, that will return the current user object, you should implement it yourself.