Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ID Site support #19

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open

Conversation

denibertovic
Copy link
Contributor

No description provided.

this fixes the scenario when the web app blows up if
STORMPATH_APPLICAITON is a href.
- Added a setting STORMPATH_ENABLE_ID_SITE which basically switches the
built in manual views/forms for the ID site ones. Another settings called
STORMPATH_ID_SITE_CALLBACK_URL was added as well.

- Updated the stormpath sdk dependency to point to the latest version.
I was hitting the search issue with '/' and '&' charaters
resulting in a bad error message informing me of invalid API
credentials, and this has been resolved in the latest sdk version.

- Added quickstart docs for this feature
@rdegges
Copy link
Contributor

rdegges commented Dec 10, 2014

Hey Deni, would you mind pulling in the latest develop changes and fixing the conflicts? I think there were some issues because the other PR fixed some of the same stuff as this, so there was some conflicts there.

@denibertovic
Copy link
Contributor Author

@rdegges updated.

@denibertovic
Copy link
Contributor Author

ping @rdegges

@rdegges
Copy link
Contributor

rdegges commented Apr 23, 2015

@avojnovicDk heyo! Comments to follow =)

@@ -274,9 +319,13 @@ def application(self):
ctx = stack.top
if ctx is not None:
if not hasattr(ctx, 'stormpath_application'):
ctx.stormpath_application = self.client.applications.search(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should prolly leave this original client behavior alone. This is going to need to be refactored in a different way in the near future.

@rdegges
Copy link
Contributor

rdegges commented Apr 23, 2015

We're also going to need to get some docstrings added to all helper functions / methods that are included in this library. In the Flask stuff the code is all pretty standardized style wise.

Also: some style things need to change, primarily:

  • When specifying params like:
blah(
    val=1,
    val=2,
)

You'll need to add spaces around the operator, eg:

blah(
    val = 1,
    val = 2,
)

This is just to keep stuff consistent.

@rdegges
Copy link
Contributor

rdegges commented Apr 23, 2015

We also are missing some tests for this feature which will need to be added in, but those can be created pretty quickly I think. Just to assert the settings are being added properly, etc.

@avojnovicDk avojnovicDk mentioned this pull request Apr 24, 2015
@avojnovicDk
Copy link
Contributor

@rdegges ^^
Also, for the spaces around the = sign, there shouldn't be any when specifying params. See PEP8 for that: https://www.python.org/dev/peps/pep-0008/#other-recommendations

@rdegges
Copy link
Contributor

rdegges commented May 13, 2015

Quick ping -- wanna add some tests for this? Would be happy to merge it in =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants