Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
225 commits
Select commit Hold shift + click to select a range
5865e17
Add error for facebook
gtmanfred Jul 11, 2015
3503fc8
Add Verify Email message flashing
angstwad Aug 31, 2015
eabc229
Merge pull request #49 from gtmanfred/develop
rdegges Dec 21, 2015
e642fd7
Using blinker 1.4 - as it has Python 3.4 support.
avojnovicDk Jan 14, 2016
016a4b7
Send dict instead of User to the receivers.
avojnovicDk Jan 14, 2016
ee74f62
Merge pull request #57 from avojnovicDk/ana-blinker-python3
rdegges Jan 14, 2016
3a06c57
Adding in Python 3.
rdegges Jan 27, 2016
812d5ca
Using new API credentials.
rdegges Jan 27, 2016
a134657
Removing 3.2.
rdegges Jan 27, 2016
7447ebb
Updating stormpath dependency.
rdegges Jan 27, 2016
071e287
Updating blinker to 1.4
rdegges Jan 27, 2016
106f19c
Removing redundant blinker dependency.
rdegges Jan 27, 2016
c78244d
Upgrading Flask-Login.
rdegges Jan 27, 2016
cb48aa8
Upgrading oauth2client.
rdegges Jan 27, 2016
52b5258
Adding trove classifers.
rdegges Jan 27, 2016
07cfc9b
Version bump.
rdegges Jan 27, 2016
e762555
Updating changelog.
rdegges Jan 27, 2016
d0f59c8
Adding upgrading guide docs.
rdegges Jan 27, 2016
97b516c
Updating broken badge links to use new provider (more stable).
rdegges Jan 27, 2016
930a8c9
Updating badge urls.
rdegges Jan 27, 2016
4ccab64
added stormpath to requirements.txt
gcetusic Mar 8, 2016
f3f69ff
dynamic form settings based on environment and settings files - work …
gcetusic Mar 21, 2016
22adfaf
tests for custom settings object
gcetusic Mar 21, 2016
c21d8aa
Skipping broken tests.
May 18, 2016
97f8295
Updated commit:
May 19, 2016
cffb093
Merge branch 'develop' into temp_fork_cetko
May 19, 2016
fc0fa52
Updated commit:
May 20, 2016
03909b7
replaced several old style settings in templates with new ones -> com…
gcetusic Mar 23, 2016
2d249f6
misc fixes to make standard forms show
gcetusic Mar 23, 2016
c835199
fixed registration
gcetusic Mar 23, 2016
9742e52
change logout redirect based on settings
gcetusic Mar 23, 2016
75f1d2e
Updated broken test messages.
May 20, 2016
e66aae0
misc work on verification flow
gcetusic Mar 25, 2016
3ed0bef
first stab at me view
gcetusic Mar 30, 2016
32b2994
raising a clear error on failing to find application
ohadperry May 22, 2016
1dbc675
better error
ohadperry May 22, 2016
dccc731
don't lazily load stormpath client and application since it's already…
gcetusic Apr 13, 2016
b4ed1ff
moving imports to a more appropriate location
gcetusic Apr 13, 2016
c5e1115
moved json representation login to stormpath python sdk
gcetusic Apr 13, 2016
b804d1a
json vs html response basic functionality
gcetusic Apr 25, 2016
8b9e86c
error handling for login and register
gcetusic Apr 25, 2016
14cb1b8
registration via json
gcetusic Apr 27, 2016
4ac4737
autologin if verify
gcetusic Apr 27, 2016
448b70b
basePath setting taken into account
gcetusic Apr 27, 2016
fc55212
Updated error messages on skipped tests.
May 23, 2016
2389e10
Updated check_settings.
May 28, 2016
fed0ef6
replace deprecated import flask.ext.* with new flask_*
Twista Jun 1, 2016
6d1977d
Merge pull request #68 from Twista/master
rdegges Jun 2, 2016
7414357
Added temporary fixes for form instantiation.
Jun 3, 2016
8e7d1ef
Updated registration view.
Jun 7, 2016
faea9b0
Updated login view.
Jun 8, 2016
5123b00
Updated gitignore.
Jun 8, 2016
7671d96
Updated .gitignore #2.
Jun 8, 2016
31802d8
Combined redirect tests in test_views.
Jun 8, 2016
da21def
Fixed minor issues in register view.
Jun 9, 2016
952a57c
Fixed dynamic form building.
Jun 13, 2016
c43a330
Removed fail flag from registration view.
Jun 13, 2016
d85aa18
Added if request == POST check to registration view.
Jun 14, 2016
48f9092
Applied confirm_password check to registration view.
Jun 14, 2016
286fe28
Moved validation logic from register view to StormpathForm.
Jun 14, 2016
0827b69
Fixed autologin on register.
Jun 14, 2016
81a71ca
Config settings for login and register are now accessed more easily.
Jun 15, 2016
decbc65
Fixed dynamic field building on StormpathForm.
Jun 16, 2016
eb8f3af
Fixed PEP8 errors.
Jun 16, 2016
24ff100
Fixed if statement.
Jun 17, 2016
96b7beb
Updated TestLogout tests.
Jun 17, 2016
044f0ac
Updated forgot view.
Jun 20, 2016
91b9307
Minor test_views refactoring.
Jun 20, 2016
5e75750
Minot test_models refactoring.
Jun 20, 2016
602a615
Added test for request_wants_json().
Jun 20, 2016
02e6183
Implemented json to forms.
Jun 21, 2016
7403364
Added test_make_stormpath_response test.
Jun 21, 2016
1713bb6
Added to_json method to User model.
Jun 21, 2016
560e51c
Moved 'account' key from views to to_json() method.
Jun 22, 2016
087c93a
Added json test to test_views.
Jun 24, 2016
897779e
Error object in StormpathError is now a unicode string
viksit Jun 24, 2016
15e2048
Added me tests.
Jun 27, 2016
c6b1eff
Templates now center aligned.
Jun 27, 2016
35aada1
Removed hardcoded api id and secret from tests.
Jun 28, 2016
aabc634
Removed the ugly sys import.
Jun 28, 2016
85a74b6
Fixed remaining settings tests.
Jun 28, 2016
76fe79d
Removed backslashes for newlines.
Jun 28, 2016
ceda074
Fixed the remainder of broken tests.
Jun 29, 2016
b61c13c
Renamed AppWrapper to HttpAcceptWrapper.
Jun 29, 2016
e8374c8
Minor test refactoring.
Jun 29, 2016
4782ba0
Fixed form.errors output on register and login views.
Jul 4, 2016
52659fc
Updated forgot view.
Jul 5, 2016
218323d
Fixed status code in views.
Jul 5, 2016
cc9d563
Added function description to views.
Jul 5, 2016
ee8aa30
Updated change view.
Jul 6, 2016
5209a58
Updated form tests.
Jul 6, 2016
d8ae135
Updated fields on User.to_json.
Jul 6, 2016
b5103d3
Minor update on tests for User.to_json.
Jul 6, 2016
559f246
Updated config file.
Jul 6, 2016
863be89
Refactored views.
Jul 12, 2016
af11ab1
User.to_json now also returns expanded data.
Jul 12, 2016
852186f
Forms can now accept empty configs.
Jul 12, 2016
71db24c
Added 406 check.
Jul 14, 2016
4d7dd90
Removed the obsolete VerificationForm.
Jul 14, 2016
679ae29
** WORK IN PROGRESS ** Social views refactor 1/2.
Jul 15, 2016
6c4fcd3
Merge pull request #69 from viksit/patch-1
rdegges Jul 25, 2016
a56345f
User.to_facebook refactor.
Jul 26, 2016
16d3a10
Updated the way we handle test environment variables.
Jul 27, 2016
8fcaa34
User.to_google refactor.
Jul 29, 2016
dd2dd67
User social methods tests refactor 1/2.
Jul 29, 2016
8b13972
User social methods tests refactor 2/2.
Aug 1, 2016
ce4f73f
Moved user creation in our test to main tester class (StormpathTestCa…
Aug 1, 2016
75c059c
Updated models tests.
Aug 1, 2016
7deafce
Refactored from_social methods in models.
Aug 2, 2016
84df960
Removed function based google_login view.
Aug 2, 2016
77970c6
Added a testing structure for social views.
Aug 2, 2016
284f87a
Social views refactor 2/2.
Aug 3, 2016
d99043c
Updated StormpathView.
Aug 4, 2016
25e53c3
Added redirect logic to assertJsonResponse in test_views.
Aug 4, 2016
26eb074
Updated SocialView error message.
Aug 4, 2016
c1d5e6e
Updated the accept header 406 check.
Aug 4, 2016
8d7c7a9
Removed Python 3 specialized import.
Aug 9, 2016
31421e2
Added Python 3 import for mocking.
Aug 9, 2016
e7dbb7c
Added a custom datetime serializer to our User.to_json method.
Aug 9, 2016
b0b6011
Pulled the latest version of the config file.
Aug 10, 2016
7d48353
Fixed PEP 8 errors in init.py.
Aug 10, 2016
d13c0e2
Updated imports.
Aug 10, 2016
5152e97
Updated templates and views based on the new config 1/3.
Aug 12, 2016
2f2d0d8
Updated templates and views based on the new config 2/3.
Aug 12, 2016
13a4fb9
Merge pull request #67 from ohadpartuck/better_errors
rdegges Aug 31, 2016
efac87a
Merge pull request #53 from angstwad/verify_message
rdegges Aug 31, 2016
34a9583
Updating the changelog with release notes for 0.4.6.
rdegges Sep 6, 2016
83aca0e
Merge branch 'master' into develop
rdegges Sep 6, 2016
90f7dcd
Version bump.
rdegges Sep 6, 2016
f640094
Whoops! Fixing merge markers.
rdegges Sep 6, 2016
d5fbf7e
Moving requirements into setup.py. Let setuptools deal with the madne…
rdegges Sep 6, 2016
2739fb9
Updating travis install step.
rdegges Sep 6, 2016
c2b5f53
Simplifying codez.
rdegges Sep 6, 2016
e991c3b
Upgrading facebook-sdk to latest release (to get py3k support).
rdegges Sep 6, 2016
e657937
Ignoring pip cache dir.
rdegges Sep 6, 2016
2eed9f9
Cleanup
rdegges Sep 6, 2016
8d8cc2c
Minor test cleanup.
rdegges Sep 6, 2016
1db7b31
Minor test cleanup.
rdegges Sep 6, 2016
25858e4
Removing Facebook and Python3 errors.
rdegges Sep 6, 2016
e878e4a
Replacing old import syntax with new.
rdegges Sep 6, 2016
71d1d3a
Minor cleanup.
rdegges Sep 6, 2016
23b6611
Minor cleanup.
rdegges Sep 7, 2016
b791a40
Upgrading Stormpath dependency to fix broken tests.
rdegges Sep 7, 2016
2aef54a
Fixing broken test.
rdegges Sep 7, 2016
716f1c4
Updated error processing in views.
Sep 9, 2016
74b1164
Convert `is_authenticated`, `is_active`, and `is_anonymous` to proper…
01walid Sep 9, 2016
d9ce4e7
Updated templates and views based on the new config 3/3.
Sep 13, 2016
9b2dc71
Merge pull request #75 from 01walid/master
rdegges Sep 16, 2016
00440cf
Adding changelog / upgrading docs.
rdegges Sep 16, 2016
677172b
Version bump.
rdegges Sep 17, 2016
d918544
Use standard WTForm validation for 'register' form.
jcass77 Sep 18, 2016
ec3f94c
Specify test folder to avoid all tests on PATH from being run.
jcass77 Sep 18, 2016
d748b43
Add error messages for required email and password fields.
jcass77 Sep 18, 2016
dff5f99
Use standard email validators.
jcass77 Sep 18, 2016
59eb23d
Fix field name reference.
jcass77 Sep 19, 2016
0649306
Merge pull request #78 from BarrusInvestments/enhance/form_validation
rdegges Sep 19, 2016
78acff3
Implemented verify view 1/2 (WIP).
Sep 21, 2016
b247cfd
Adding changelog docs.
rdegges Sep 21, 2016
02e1213
Upgrading tag manager / fb / optmizely scripts.
rdegges Sep 21, 2016
41401ab
Version bump.
rdegges Sep 21, 2016
875cf8d
Updated assertJsonResponse in test_views.
Sep 22, 2016
4691a9d
Minor updates to parameters when calling make_stormpath_response.
Sep 22, 2016
97dc43d
Using real emails everywhere.
rdegges Nov 4, 2016
fa49d0a
Updated VerifyEmail view.
Nov 25, 2016
496efe6
Added uuid to test social directory.
Dec 6, 2016
5d561e3
Python 3 support.
Dec 8, 2016
22a67a8
Updated dependencies (fixed deprecation warnings).
Dec 9, 2016
f087b5e
Updated dependencies in setup.py.
Dec 13, 2016
4b726d9
Merge branch 'develop' of https://github.com/stormpath/stormpath-flas…
Dec 14, 2016
0d68719
add flask-login >= 0.4.0 compatibility
jwm Dec 15, 2016
ce155b2
Merge pull request #85 from jwm/develop
rdegges Dec 18, 2016
7fe284a
Fixed August week 3 issues.
Dec 19, 2016
6396390
Partial default-config update.
Dec 20, 2016
ed73f6d
Disabled CSRF protection on JSON requests.
Dec 22, 2016
52f0419
Update views.py
cpi-zachary-c Dec 28, 2016
e4101aa
Merge pull request #88 from cpi-zachary-cassity/patch-1
rdegges Dec 28, 2016
ed8daf3
Replace deprecated flask-wtf references to 'From' with 'FlaskForm'.
jcass77 Jan 9, 2017
09ad41a
Merge pull request #90 from BarrusInvestments/fix/deprecated_wtf_form
rdegges Jan 9, 2017
3af04be
Merge remote-tracking branch 'origin/master' into develop
rdegges Jan 9, 2017
fbd2708
Adding Python 3.6 support.
rdegges Jan 9, 2017
25cd6fd
Pinning sphinx release #.
rdegges Jan 9, 2017
87e19c4
Adding docs deployment steps.
rdegges Jan 9, 2017
56a0598
Renamed Facebook environment variables.
Jan 11, 2017
a2fd7f5
Updated CSRF protection for Flask-WTF 0.14.
Jan 11, 2017
39a70b2
Bump Flask-WTF dependency for rename of 'Form' to 'FlaskForm'.
jcass77 Jan 11, 2017
8af7212
Merge pull request #91 from BarrusInvestments/fix/deprecated_wtf_form
rdegges Jan 11, 2017
78ca572
Added capabilities for testing disabled views.
Jan 12, 2017
0d1faa8
Updated social error message in tests.
Jan 13, 2017
5732f37
Fixed wrong Facebook env variable name.
Jan 13, 2017
7225f8e
Minor optimization.
Jan 16, 2017
57fddc9
Added KeyboardInterrupt teardown.
Jan 16, 2017
5fead63
Renamed errorUri to unverifiedUri.
Jan 18, 2017
1578d2d
Updated default-config.
Jan 18, 2017
9e809c9
Fixed tearDown flow on views by calling super().
Jan 18, 2017
170503f
Removed validation duplicates from check_settings.
Jan 23, 2017
cd8232f
Simplified client instantiation.
Jan 23, 2017
9bddb6a
Set cache to None for now.
Jan 23, 2017
7f7cac0
Removed obsolete social and template settings.
Jan 23, 2017
3126e82
STORMPATH_SOCIAL will be set to default for now.
Jan 23, 2017
03b2a40
Updated check_settings.
Jan 23, 2017
d2ac453
Updated tests for new organizationNameKey value.
Jan 24, 2017
433ade5
Included MoveAPIKeyToClientAPIKeyStrategy.
Jan 24, 2017
21785df
Removed csrf_token from new user data on register view.
Jan 25, 2017
090a1e9
Updated default account stone mapping check on register.
Jan 26, 2017
f76789f
Added error redirect url and updated sptoken handling.
Jan 26, 2017
729f460
Updated .gitignore.
Jan 30, 2017
4b69811
Updated unverified login error message.
Jan 31, 2017
7ef2237
Updated csrf in tests.
Feb 1, 2017
9898022
Clean up API keys and user accounts after test completion.
jcass77 Feb 7, 2017
f20a09b
Fix class method signature.
jcass77 Feb 7, 2017
ffe6b0e
Only pass relevant form fields to User.create() method.
jcass77 Feb 7, 2017
2c0c68d
Merge pull request #93 from BarrusInvestments/fix/83_cleanup_api_keys
rdegges Feb 8, 2017
d911a0a
Merge pull request #94 from BarrusInvestments/fix/92_register_page
rdegges Feb 8, 2017
8767e8f
Updated csrf.
Feb 13, 2017
fab0502
Added test for stormpath-flask user agent.
Feb 14, 2017
1d8611a
Updated default-config.yaml file.
Feb 15, 2017
aa58fc7
Moved check_settings logic to python_config.
Feb 17, 2017
c65615e
Moved settings with 'STORMPATH' prefix to stormpath config.
Feb 26, 2017
9cc4999
Updated ConfigurationError import.
Feb 26, 2017
5a7324b
Updated social tests.
Feb 28, 2017
aece360
Added ExtendConfigStrategy and updated
Feb 28, 2017
0fd9721
Merge branch 'master' into temp_fork_cetko_backup
Feb 28, 2017
6ca83bc
Renamed MoveSettingsToConfigStrategy and moved it to ConfigLoader.
Mar 1, 2017
cb6a87b
Updated version and changelog.
Mar 1, 2017
69d4de5
Merge branch 'develop' of https://github.com/stormpath/stormpath-flas…
Mar 1, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
.cache
*.egg-info
build
_build
dist
*.pyc
__pycache__
.cache/
.coverage
htmlcov/
pytest.ini
*.ini
38 changes: 30 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,35 @@
language: python
python:
- '2.7'
install:
- pip install -r requirements.txt
- python setup.py develop
- '2.7'
- '3.3'
- '3.4'
- '3.5'
- '3.6'
install: pip install -e .[test]
script:
- test -z "$STORMPATH_API_KEY_SECRET" || python setup.py test
- cd docs && make html
- test -z "$STORMPATH_API_KEY_SECRET" || python setup.py test
- test -z "$BUILD_DOCS" cd docs && make html && cd ..
- test -z "$BUILD_DOCS" || CURRENT_HASH=`git rev-parse HEAD`
- test -z "$BUILD_DOCS" || RELEASE_VERSION=`git tag | xargs -I@ git log --format=format:"%ai @%n" -1 @ | sort | awk '{print $4}' | tail -n 1`
- test -z "$BUILD_DOCS" || RELEASE_HASH=`git rev-list $RELEASE_VERSION -n 1`
- test -z "$BUILD_DOCS" || if [ "$CURRENT_HASH" = "$RELEASE_HASH" ]; then DEPLOY_DOCS=true; fi
- test -z "$DEPLOY_DOCS" || git config --global user.email "[email protected]"
- test -z "$DEPLOY_DOCS" || git config --global user.name "flask-stormpath Auto Doc Build"
- test -z "$DEPLOY_DOCS" || git clone [email protected]:stormpath/stormpath.github.io.git
- test -z "$DEPLOY_DOCS" || cd stormpath.github.io
- test -z "$DEPLOY_DOCS" || git fetch origin source:source
- test -z "$DEPLOY_DOCS" || git checkout source
- test -z "$DEPLOY_DOCS" || rm -rf source/python/flask/latest
- test -z "$DEPLOY_DOCS" || cp -r ../docs/_build/html source/python/flask/latest
- test -z "$DEPLOY_DOCS" || cp -r ../docs/_build/html source/python/flask/$RELEASE_VERSION
- test -z "$DEPLOY_DOCS" || git add --all
- test -z "$DEPLOY_DOCS" || git commit -m "flask-stormpath release $RELEASE_VERSION"
- test -z "$DEPLOY_DOCS" || git push origin source
env:
global:
- secure: hAO+zuFzu6JSBMbZv6I0lMxRiD1NPxIFoKTFzWZ6R9v7CMzt6Gyisp9u8TVdLMyluGgcu1OMXfauOy57q2N85aQBPosgyrDb9PW4NI9bpEOP3B2sjGMfpYLK94RylfjbiginkuhQElgqOJ0V0gGiJ1+pQ53AdY0TB5EMmI4YmSs=
- secure: c7r7HLIBk+jbfrJtJCDbVW4n6izcPx69pn32HltNYV+bd6YZIpIFvR4D7dsvS3dO18ITel2oqATuaxdG0U1UAEssyDiwoCcUPN8R822i5pGAgXV/CLVbxPRNUkVGRJslDzNvjYqSXVULaCl1g5yMHcdlaylBGAKwhXCF8xCAFcY=
- secure: Q7sQSmMxZs0mfqgccUWr16rn38e+uFUbdIRaU0igYvIV24q80lXCWA5vvCwoSpa3AAVTEF4+XDaBdZl+HzD8PKjmAldljWIOi22fjoiyPtaA/+n5F9w8QbwmZ9T/pPfmHqr0yzYg89bsuGKJ7Irem1NdtOAozc2tVdfhhXI6NYM=
- secure: CZOy1BN3piid5RgqjZRCQmYI6eZAQI+ojVb/pWA1APFFVNuQtKgAvsjI1zaQRx5xmiGFco1/BhSLBokwknh7MJcwxckpC5D7Y9Ccev4jbWG/2Gif3wjKlezBra2w6LheimcLvbkC+QKJ2n2oNI2xJxr95sBAMaQORJFXXD6Y2wg=
matrix:
include:
- env: BUILD_DOCS=true
python: '3.6'
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

Build simple, secure web applications with Stormpath and Flask!

[![Latest Version](https://pypip.in/version/Flask-Stormpath/badge.png)](https://pypi.python.org/pypi/Flask-Stormpath/)
[![Downloads](https://pypip.in/download/Flask-Stormpath/badge.png)](https://pypi.python.org/pypi/Flask-Stormpath/)
[![Build Status](https://travis-ci.org/stormpath/stormpath-flask.png?branch=master)](https://travis-ci.org/stormpath/stormpath-flask)
[![Latest Version](https://img.shields.io/pypi/v/flask-stormpath.svg)](https://pypi.python.org/pypi/Flask-Stormpath/)
[![Downloads](https://img.shields.io/pypi/dm/flask-stormpath.svg)](https://pypi.python.org/pypi/Flask-Stormpath/)
[![Build Status](https://img.shields.io/travis/stormpath/stormpath-flask.svg)](https://travis-ci.org/stormpath/stormpath-flask)


## Documentation
Expand Down
28 changes: 28 additions & 0 deletions docs/_templates/page.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
{% extends "!page.html" %}

{% block extrahead %}
{{ super() }}
<script src="https://cdn.optimizely.com/js/225847041.js"></script>
<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,'script','https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '986262161469311');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=986262161469311&ev=PageView&noscript=1"
/></noscript>
{% endblock %}

{% block header %}
{{ super() }}
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-NQZZFW"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-NQZZFW');</script>
{% endblock %}

{% block footer %}
{{ super() }}
<script type="text/javascript">
Expand Down
2 changes: 1 addition & 1 deletion docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
API
===

.. module:: flask.ext.stormpath
.. module:: flask_stormpath

This part of the documentation documents all the public classes, functions, and
API details in Flask-Stormpath. This documentation is auto generated, and is
Expand Down
53 changes: 53 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,59 @@ Change Log
All library changes, in descending order.


Version 0.5.0
-------------

**Released March 1, 2017.**

- Refactored views from function based to class based.
- Adding VerifyEmail and Me view.
- Adding request parsing.
- Upgrading social login.
- Upgraded CSRF protection.
- Adding new configuration loading.
- Replaced settings with 'STORMPATH' prefix to one from our Stormpath Config
object.
- Adding dynamic forms.


Version 0.4.8
-------------

**Released September 21, 2016.**

- Refactoring registration logic to use form validation. Thanks `@jcass77
<https://github.com/jcass77>`_ for the PR!
- Updating some tracking codes on docs.


Version 0.4.7
-------------

**Released September 16, 2016.**

- Updating the library components to work with the latest release of
Flask-Login. Thanks `@01walid <https://github.com/01walid>`_ for the PR!


Version 0.4.6
-------------

**Released on September 6, 2016.**

- Raising a clear error message when Flask-Stormpath fails to find the Stormpath
Application. This makes the debugging experience simpler for new developers.
- Replacing deprecated ``from flask.ext.xxx`` import syntax to work with new
Flask release.
- Making error strings UTF-8.
- Handling errors in templates in a better way.
- Adding Python 3 support.
- Upgrading Stormpath dependency to latest release.
- Upgrading oauth2client dependency to latest release.
- Upgrading blinker dependency to latest release.
- Upgrading Flask-Login dependency to latest release.


Version 0.4.5
-------------

Expand Down
14 changes: 7 additions & 7 deletions docs/product.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.. module:: flask.ext.stormpath
.. module:: flask_stormpath


Product Guide
Expand All @@ -19,7 +19,7 @@ Let's say you have a simple view which should only be accessible to users who
have logged in. Below is a code sample which shows how easy it is to restrict
access to your view::

from flask.ext.stormpath import login_required
from flask_stormpath import login_required

@app.route('/secret')
@login_required
Expand Down Expand Up @@ -70,7 +70,7 @@ Now that we've created our Groups, and also added our :class:`User` to the "free
users" group -- let's see how we can enforce different types of authorization on
our :class:`User` using the :func:`groups_required` decorator::

from flask.ext.stormpath import groups_required
from flask_stormpath import groups_required

@app.route('/admins')
@groups_required(['admins'])
Expand Down Expand Up @@ -135,7 +135,7 @@ Let's say we've defined a simple view that should simply display a user's email
address. We can make use of the magical :class:`user` context variable to do
this::

from flask.ext.stormpath import login_required, user
from flask_stormpath import login_required, user

@app.route('/email')
@login_required
Expand Down Expand Up @@ -480,12 +480,12 @@ Next, copy the following code into ``templates/login.html``::
</form>

{# If social login is enabled, display social login buttons. #}
{% if config['STORMPATH_ENABLE_FACEBOOK'] or config['STORMPATH_ENABLE_GOOGLE'] %}
{% if config['stormpath']['web']['social']['facebook']['enabled'] or config['stormpath']['web']['social']['google']['enabled'] %}
<p>Or, log in using a social provider.</p>
{% if config['STORMPATH_ENABLE_FACEBOOK'] %}
{% if config['stormpath']['web']['social']['facebook']['enabled'] %}
{% include "flask_stormpath/facebook_login_form.html" %}
{% endif %}
{% if config['STORMPATH_ENABLE_GOOGLE'] %}
{% if config['stormpath']['web']['social']['google']['enabled'] %}
{% include "flask_stormpath/google_login_form.html" %}
{% endif %}
{% endif %}
Expand Down
24 changes: 24 additions & 0 deletions docs/upgrading.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,30 @@ This page contains specific upgrading instructions to help you migrate between
Flask-Stormpath releases.


Version 0.4.8 -> Version 0.5.0
------------------------------

**No changes needed!**


Version 0.4.7 -> Version 0.4.8
------------------------------

**No changes needed!**


Version 0.4.6 -> Version 0.4.7
------------------------------

**No changes needed!**


Version 0.4.5 -> Version 0.4.6
------------------------------

**No changes needed!**


Version 0.4.4 -> Version 0.4.5
------------------------------

Expand Down
Loading