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

Mobile variants #446

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

Conversation

pirxpilot
Copy link
Contributor

Applications can configure isMobile function, which should be called by authorization modules whenever they need to establish if mobile vs. full login pages need to be rendered.

Most oauth/oauth2 providers are capable of discovering mobile browsers without any external help. But some applications may prefer to force a specific version (for example based on user preferences).
isMobile determination can be done on a per request basis (request is passed as a parameter)

Existing modules do not have to be changed unless (or until) they want to use this new functionality.

pirxpilot and others added 5 commits March 24, 2015 19:12
Applications can configure isMobile function, which should be called by
authorization modules whenever they need to establish if mobile vs. full
login pages need to be rendered.
Most oauth/oauth2 providers are capable of disvoring mobile
browsers without any external help. But some applications may prefer to
force a specific version (for example based on user preferences).
isMobile determination can be done on a per request basis (request is
passed as a parameter)
authorizePath is used to redirect user to authorization provider's login
screen
Extracting building this path into a separate configurable function
allows module developers to overwrite default everyauth behavior. It's
needed to support some quirky oauth providers that do not follow typical
patterns. It's also helpful if provider requires a different URLs for
mobile and full version of login screens.

Existing modules do not have to be changed unless (or until) they want
to use this new functionality.
Implemented buildAuthorizeApp to redirect user either to full or mobile
version of tripit login screen
Tripit does not recognize browser type automatically
Redirect user to full or mobile version of the application based on the
value returned by the isMobile configurable.
Older, facebook specific, functionality of forcing mobile/full version
by calling 'mobile' function is still supported.
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.

1 participant