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

Authorization Code Flow #177

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

Authorization Code Flow #177

wants to merge 5 commits into from

Conversation

petersamokhin
Copy link

Added the ability to receive code for the server-side auth.
Code Flow is available only through the WebView due to the hardcoded response_type in the VK iOS app.

@codecov
Copy link

codecov bot commented Mar 30, 2020

Codecov Report

Merging #177 into master will decrease coverage by 2.50%.
The diff coverage is 49.34%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #177      +/-   ##
==========================================
- Coverage   94.38%   91.89%   -2.49%     
==========================================
  Files          68       69       +1     
  Lines        2703     2440     -263     
==========================================
- Hits         2551     2242     -309     
- Misses        152      198      +46     
Impacted Files Coverage Δ
Library/Sources/Common/SwiftyVKDelegate.swift 0.00% <0.00%> (ø)
Library/Sources/Dependecies/Dependencies.swift 100.00% <ø> (ø)
...ibrary/Sources/Presentation/Web/WebPresenter.swift 97.15% <ø> (-0.53%) ⬇️
Library/Sources/Sessions/Session.swift 79.60% <0.00%> (-15.22%) ⬇️
Library/Sources/Sessions/Code/Code.swift 20.00% <20.00%> (ø)
...ary/Sources/Sessions/Management/Authorizator.swift 93.81% <93.55%> (+0.74%) ⬆️
Library/Sources/Dependecies/DependenciesImpl.swift 90.96% <100.00%> (+0.32%) ⬆️
Library/Sources/Utils/KeychainProvider.swift 45.24% <0.00%> (-47.35%) ⬇️
Library/Sources/Extensions/GCD+Extensions.swift 75.00% <0.00%> (-5.00%) ⬇️
Library/Sources/Common/VK.swift 64.71% <0.00%> (-3.71%) ⬇️
... and 40 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e82a0bc...96667ab. Read the comment docs.

@west0r
Copy link
Member

west0r commented Apr 4, 2020

Привет, спасибо за ПР, у меня наконец дошли руки отревьюить его. Ссори, что вышло так много комментов, но пока код не выглядит так, что его можно вмержить без правок. Верхнеуровнево что бы хотелось изменить:

Убрать метод получения кода из сессии в класс VK и изменить его сигнатуру
Убрать делегатный метод получения кода, так как он излишен
Убрать лишние сущности и ненужные для кода параметры

Сейчас код получения кода выглядит как копипаста кода токена, но у него логика сильно проще и код должен быть проще.

Ну и мелкие замечания пофиксить желательно.

Еще тебе нужно пофиксить сломавшиеся проверки на ПР и добавить новый функционал в ридми.

Надеюсь, что это не составит особого труда. Буду ждать твоего ответа.

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.

None yet

3 participants