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

Include scope(list of permissions) you want to request from the user. #3

Closed
wants to merge 1 commit into from

Conversation

alezhek
Copy link
Contributor

@alezhek alezhek commented Apr 9, 2013

In this commit, I added the ability to define the parameters for adding scope permissions for user.

Scope parameters:
http://dev.odnoklassniki.ru/wiki/pages/viewpage.action?pageId=12878032

@incubus
Copy link
Owner

incubus commented Apr 9, 2013

Здравствуйте! Синтаксис для хешей public_key: ENV['APP_PUBLIC_KEY'] сломает поддержку Ruby 1.8.X.


```ruby
use OmniAuth::Builder do
provider :odnoklassniki, ENV['APP_ID'], ENV['APP_SECRET_KEY'], public_key: ENV['APP_PUBLIC_KEY']
Copy link

Choose a reason for hiding this comment

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

Comma is missed before scope.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Мой косяк.
Забыл запятую:)

@dzhlobo
Copy link

dzhlobo commented Apr 9, 2013

@incubus в README можно рекомендовать новый стиль ;). Просто можно добавить также список поддерживаемых версий руби.

@incubus
Copy link
Owner

incubus commented Apr 9, 2013

Не проще ли оставить старый синтаксис? :)

@alezhek
Copy link
Contributor Author

alezhek commented Apr 9, 2013

Я отправлю заново пулл реквест в отдельной ветке, т.к. не делал его в отдельной ветке(мой косяк).
Оставлю измениения для Ruby 1.8.x, дабы поддерживались остальные версии.

@alezhek alezhek closed this Apr 9, 2013
cybernetlab added a commit to plandex/omniauth-odnoklassniki that referenced this pull request Aug 6, 2015
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