Skip to content

Commit 6a647c3

Browse files
authored
Fix scope splitting (#104)
1 parent ad1de54 commit 6a647c3

File tree

3 files changed

+28
-24
lines changed

3 files changed

+28
-24
lines changed

CHANGELOG.md

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,67 +2,71 @@
22

33
## (Unreleased)
44

5+
## v0.12.1
6+
7+
- Fix scope splitting [104](https://github.com/ueberauth/ueberauth_google/pull/104)
8+
59
## v0.12.0
610

7-
* Add support to hl param in handle_request! [102](https://github.com/ueberauth/ueberauth_google/pull/102)
11+
- Add support to hl param in handle_request! [102](https://github.com/ueberauth/ueberauth_google/pull/102)
812

913
## v0.11.0
1014

11-
* Allow using a function to generate the client secret [101](https://github.com/ueberauth/ueberauth_google/pull/101)
15+
- Allow using a function to generate the client secret [101](https://github.com/ueberauth/ueberauth_google/pull/101)
1216

1317
## v0.10.3
1418

15-
* Handle `%OAuth2.Response{status_code: 503}` with no `error_description` in `get_access_token` [99](https://github.com/ueberauth/ueberauth_google/pull/99)
19+
- Handle `%OAuth2.Response{status_code: 503}` with no `error_description` in `get_access_token` [99](https://github.com/ueberauth/ueberauth_google/pull/99)
1620

1721
## v0.10.2
1822

19-
* Prefer Local Over Global Configuration [95](https://github.com/ueberauth/ueberauth_google/pull/95)
23+
- Prefer Local Over Global Configuration [95](https://github.com/ueberauth/ueberauth_google/pull/95)
2024

2125
## v0.10.1
2226

23-
* Misc doc changes [81](https://github.com/ueberauth/ueberauth_google/pull/81)
24-
* Upgrade Ueberauth and Refactor CSRF State Logic [82](https://github.com/ueberauth/ueberauth_google/pull/82)
27+
- Misc doc changes [81](https://github.com/ueberauth/ueberauth_google/pull/81)
28+
- Upgrade Ueberauth and Refactor CSRF State Logic [82](https://github.com/ueberauth/ueberauth_google/pull/82)
2529

2630
## v0.10.0 - 2020-10-20
2731

2832
### Enhancement
2933

30-
* Updated docs [#69](https://github.com/ueberauth/ueberauth_google/pull/69) [#70](https://github.com/ueberauth/ueberauth_google/pull/70)
31-
* Support for birthday [#73](https://github.com/ueberauth/ueberauth_google/pull/73)
32-
* Allow for userinfo endpoint to be configured [#75](https://github.com/ueberauth/ueberauth_google/pull/75)
33-
* Updated plug and ueberauth packages [#76](https://github.com/ueberauth/ueberauth_google/pull/76)
34+
- Updated docs [#69](https://github.com/ueberauth/ueberauth_google/pull/69) [#70](https://github.com/ueberauth/ueberauth_google/pull/70)
35+
- Support for birthday [#73](https://github.com/ueberauth/ueberauth_google/pull/73)
36+
- Allow for userinfo endpoint to be configured [#75](https://github.com/ueberauth/ueberauth_google/pull/75)
37+
- Updated plug and ueberauth packages [#76](https://github.com/ueberauth/ueberauth_google/pull/76)
3438

3539
Thanks goes to all the contributes
3640

3741
## v0.9.0 - 2019-08-21
3842

3943
### Enhancement
4044

41-
* Add support for optional login_hint param [#61](https://github.com/ueberauth/ueberauth_google/pull/61)
42-
* Use `json_library` method from Ueberauth config [#58](https://github.com/ueberauth/ueberauth_google/pull/58)
43-
* Allows specifying `{m, f, a}` tuples for things such as Client ID
45+
- Add support for optional login_hint param [#61](https://github.com/ueberauth/ueberauth_google/pull/61)
46+
- Use `json_library` method from Ueberauth config [#58](https://github.com/ueberauth/ueberauth_google/pull/58)
47+
- Allows specifying `{m, f, a}` tuples for things such as Client ID
4448
and Client Secret [#60](https://github.com/ueberauth/ueberauth_google/pull/60)
45-
* Allows the newest oauth2 package versions with potential security fixes [#68](https://github.com/ueberauth/ueberauth_google/pull/68)
49+
- Allows the newest oauth2 package versions with potential security fixes [#68](https://github.com/ueberauth/ueberauth_google/pull/68)
4650

4751
## v0.6.0 - 2017-07-18
4852

49-
* Add support for `access_type` per request using `url` parameter.
53+
- Add support for `access_type` per request using `url` parameter.
5054

5155
## v0.5.0 - 2016-12-27
5256

53-
* Add support for new params: `access_type`, `approval_prompt`, `state`.
54-
* Fix Elixir warnings.
57+
- Add support for new params: `access_type`, `approval_prompt`, `state`.
58+
- Fix Elixir warnings.
5559

5660
## v0.4.0 - 2016-09-21
5761

58-
* Target Elixir 1.3 and greater.
59-
* Fix OAuth bug with 0.6.0 pin.
62+
- Target Elixir 1.3 and greater.
63+
- Fix OAuth bug with 0.6.0 pin.
6064

6165
## v0.3.0 - 2016-08-15
6266

63-
* Use OpenID endpoint for profile information.
64-
* Update authorize and token URLs.
67+
- Use OpenID endpoint for profile information.
68+
- Update authorize and token URLs.
6569

6670
## v0.2.0 - 2016-12-10
6771

68-
* Release 0.2.0 to follow Ueberauth.
72+
- Release 0.2.0 to follow Ueberauth.

lib/ueberauth/strategy/google.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ defmodule Ueberauth.Strategy.Google do
8282
def credentials(conn) do
8383
token = conn.private.google_token
8484
scope_string = token.other_params["scope"] || ""
85-
scopes = String.split(scope_string, ",")
85+
scopes = String.split(scope_string, " ")
8686

8787
%Credentials{
8888
expires: !!token.expires_at,

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ defmodule UeberauthGoogle.Mixfile do
22
use Mix.Project
33

44
@source_url "https://github.com/ueberauth/ueberauth_google"
5-
@version "0.12.0"
5+
@version "0.12.1"
66

77
def project do
88
[

0 commit comments

Comments
 (0)