Edward Betts
20dcb234dc
correct spelling mistake
2017-09-05 11:59:20 -04:00
Brian Schroeder
dc70ce8048
Switch to new, safer URL parsing function
2017-08-03 14:22:47 -04:00
Brian Schroeder
de589f8cb6
Update Nylas provider
...
- Nylas now requires additional parameters for authentication to succeed
- We remove oauth2NylasScoped because it wasn't exported, and Nylas does
not support any scopes other than "email"
2017-08-03 14:22:47 -04:00
Sid Raval
c416ab90d2
HLint
2017-07-20 18:24:31 -04:00
Vladimir Yanovsky
bed6d04384
Add Battle.Net plugin
2017-07-19 19:13:23 -04:00
Stefan Parviainen
210264f3e2
Add Bitbucket plugin
2016-08-26 11:10:18 -04:00
Ruslan Babayev
e3b94912f1
add Salesforce plugin
...
Signed-off-by: Ruslan Babayev <ruslan@babayev.com>
2016-07-27 17:05:29 -07:00
Jezen Thomas
327a85fd95
Rename creds key email -> public_email
...
Partial revert of 64b65ca where this was broken, causing a name
collision in the creds extra association list.
2016-07-06 18:32:46 -04:00
Sergei Trofimovich
c514df2c39
Slack.hs: fix haddock markup
...
haddock complained thusly:
Yesod/Auth/OAuth2/Slack.hs:9:1: error:
parse error on input ‘module’
Signed-off-by: Sergei Trofimovich <siarheit@google.com>
2016-07-02 15:13:38 +01:00
Joe Ferris
aad8bd88ea
Sign in with Slack
...
https://api.slack.com/docs/sign-in-with-slack
2016-07-01 11:00:14 -04:00
Andrew Darqui
64b65ca4c6
Properly handle empty credsExtra fields
...
Marks "location" as Maybe in GitHub responses. Without this, users could
experience an InvalidProfileResponse error when missing.
Also fixes cases where fields were Maybe, but the (.:?) combinator was
not being used in the parser.
2016-06-24 11:41:08 -04:00
patrick brisbin
f412b7c8f2
Include public_email key in credsExtra for Github
2016-02-10 09:49:57 -05:00
patrick brisbin
29b4a7f4e7
Remove Twitter module
...
- Twitter does not support OAuth 2[1]
The motivating issue was created without realizing this (it is a bit
surprising), and the module that was committed doesn't appear to work.
- For OAuth 1, support[2] already exists
Fixes #25
[1]: https://twittercommunity.com/t/oauth-2-0-support/253
[2]: http://hackage.haskell.org/package/yesod-auth-oauth-1.4.0.2/docs/Yesod-Auth-OAuth.html
2016-02-07 10:37:03 -05:00
silky
631d9a3ca1
Use primary email as email, if one is set.
...
If we couldn't find a primary email, then use the first email returned from
the list. This fixes #51 .
2016-01-26 16:50:19 -05:00
silky
c2794f4040
Add user location
...
Fixes #49 .
2016-01-04 12:34:35 -05:00
silky
7354c36e13
Nicer error message when 'code' field missing
...
Fixes #42
2015-12-07 14:06:58 -05:00
patrick brisbin
ad561a09d6
Append the state query parameter correctly
...
If the endpoint URL doesn't yet have any query parameters, this code
would construct an invalid URL by appending `&state=` rather than
`?state=`. We now correctly append `?state=` or `&state=` depending on
the URL already containing a `?` character.
Fixes #44
This is a "good enough" solution for the moment, done for ease of
implementation and speed of delivery. An eventual better solution would
be to use a URL-parsing and constructing library to parse the existing
endpoint, append parameter tuples, and re-construct a new URL.
Restructuring the data types so we start handling real URL and
QueryParam values instead of ByteStrings would also be an option, though
we're a little cornered by the Yesod.Auth.OAuth interface.
2015-11-28 11:42:05 -05:00
Brian Schroeder
d3c60bf47c
Switch to newer Nylas API endpoint
2015-08-20 15:32:32 -04:00
Brian Schroeder
8af444ddb2
Rearrange argument order
2015-08-12 09:08:41 -04:00
Brian Schroeder
62e4260f5c
Wrap lines to 80 characters
2015-08-12 09:08:41 -04:00
Brian Schroeder
815d443464
Implement Nylas provider
2015-08-12 09:08:41 -04:00
Stefan Dresselhaus
a6fc5ab03d
Add charId to credsExtra
2015-07-22 12:02:15 -04:00
Stefan Dresselhaus
5dcfbea1a0
Add accessToken to credsExtra
2015-07-22 12:02:01 -04:00
patrick brisbin
f3a74cd4b6
Entirely remove unused fields
2015-07-01 11:46:48 -04:00
patrick brisbin
a8396dddf0
Fixes to EveOnline plugin
...
- Fix invalid data declaration
- Fix -Wall compilation warnings
- Unused imports
- Unused functions
- Unused arguments
- Shadowed function name
- Incorporate plain link into WidgetType, remove Maybe
- Use only one function, always accept WidgetType
2015-06-29 10:44:11 -04:00
patrick brisbin
a3d8a6cdd5
Add/fix documentation, change argument order
...
- Document the difference between widget and non-widget functions
- Pass the widget as the first argument to take advantage of partial
application
2015-06-29 10:42:11 -04:00
Stefan Dresselhaus
ce98f1ba4e
got rid of maybe
2015-06-28 18:16:02 +02:00
Stefan Dresselhaus
77db081d6c
changed image-display to widget-display
2015-06-28 18:00:18 +02:00
Stefan Dresselhaus
abd11594d2
indentation to match standards
2015-06-28 17:26:27 +02:00
Stefan Dresselhaus
345bc3e0b0
reverted version bump, removed dependency on time
2015-06-28 17:17:21 +02:00
Stefan Dresselhaus
b9d9b51a6c
Added EVE-Online SSO and made it possible for plugins to use images instead of text-links to login
2015-06-28 00:22:14 +02:00
patrick brisbin
6e904f1be3
Tweak whitespace and alignment
2015-06-25 16:00:43 -04:00
patrick brisbin
c54b2c7ba1
Update haddocks for Google module
2015-06-25 16:00:30 -04:00
Santiago Saavedra
8fa938d7ea
Allow email to be used as an identifier of this module
2015-06-23 20:28:18 +02:00
Santiago Saavedra
1e40d18a09
Fix a linting warning
2015-06-09 17:04:23 +02:00
Santiago Saavedra
192dde89af
Add Google OAuth provider
2015-06-07 18:23:33 +02:00
patrick brisbin
5c5f94dba4
Add Twitter
2015-04-13 17:10:11 -04:00
patrick brisbin
2d3d1d2a8e
Add fromProfileResponse
...
Handles the common case of fetching profile information from a single
JSON endpoint. Throws InvalidProfileResponse if JSON parsing fails.
2015-04-13 17:09:06 -04:00
patrick brisbin
ad0e354b2b
Support GHC 7.10
...
- Conditionally import Control.Applicative
- Enable FlexibleContexts
2015-04-07 12:56:43 -04:00
patrick brisbin
0b0e6c179d
Use consistent style throughout project
...
- Alphabetize imports
- Place qualified imports separate and last
- BL for ByteString.Lazy
- Don't align tokens in tuple lists or record assignments
- Two-space indent for where keyword
- Use record syntax for Creds
- Break before operators in Applicative expressions
- Consistent whitespace throughout
Resolves #19
2015-03-25 16:30:15 -04:00
patrick brisbin
029122f662
Learn rebranded as Upcase
2015-03-24 17:56:59 -04:00
patrick brisbin
085538be7b
Remove Yesod.Auth.OAuth2.Google.hs
...
This functionality is available in yesod-auth, in the
Yesod.Auth.GoogleEmail2 module.
Resolves #18
2015-03-24 17:53:17 -04:00
patrick brisbin
270d1b2eec
Formatting
2015-03-24 17:50:24 -04:00
jprider63
bc320b1397
Move state token handling generic oauth2Plugin
...
Resolves #23
2015-03-24 17:26:35 -04:00
patrick brisbin
646d2b246b
Whitespace
2014-09-22 15:02:32 -04:00
Paul Harper
261cbc30aa
Scopes can now be passed in, most of the spotify user object is returned in the credentials
2014-09-21 23:42:13 -07:00
Paul Harper
a1ff864b4e
Added Spotify as a supported OAuth2 backend
2014-09-20 23:52:23 -07:00
Florian Gilcher
81ece8072f
Make Github name optional
...
The github API returns no name field if the user has given none (and
only goes by their user handle). For that reason, make the name field
optional.
2014-09-18 11:40:12 +02:00
Florian Gilcher
3eeae3293d
Expose auth2GithubScoped
...
Expose auth2GithubScoped, allowing users to set the scopes themselves.
2014-09-17 22:31:39 +02:00
patrick brisbin
eb5f9488f8
Address compiler warnings
...
- user was defined by never used in the no mails case
- The result of apDispatch is discarded
2014-09-13 16:45:36 -04:00