Skip to content

Commit

Permalink
Fix scopes usage in runtime for oauth2 (#2956)
Browse files Browse the repository at this point in the history
* Fix scopes usage in runtime for oauth2

* Remove comma parsing
  • Loading branch information
arbulu89 authored Sep 10, 2024
1 parent 670d11c commit 9b387fb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,9 @@ if config_env() in [:prod, :demo] do
raise("environment variable OAUTH2_USER_URL is missing"),
strategy: Assent.Strategy.OAuth2,
auth_method: :client_secret_post,
authorization_params:
String.split(System.get_env("OAUTH2_SCOPES", "profile,email"), ",")
authorization_params: [
scope: System.get_env("OAUTH2_SCOPES", "profile email")
]
]
]
end
Expand Down

0 comments on commit 9b387fb

Please sign in to comment.