Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Social Auth Sign In With Apple Support #1400

Merged
merged 4 commits into from
Aug 31, 2020
Merged

Conversation

saeedbashir
Copy link
Contributor

@saeedbashir saeedbashir commented Aug 28, 2020

Description

LEARNER-7697

This PR adds support of social auth with Apple. Learners will be able to use their Apple credentials to login/register with our server.

Notes

You will be able to register and sign in using the Apple credentials on the prod environment from mobile. Sign in With Apple is not available on the prod web and it will be enabled when we will push the solution on mobile. To test a integration between mobile and web please use the stage environment.

Testing

  • Learners should be able to register using the Apple credentials.
  • On successful registration learners should be able to sign in using their Apple credentials.

@codecov
Copy link

codecov bot commented Aug 28, 2020

Codecov Report

Merging #1400 into master will decrease coverage by 0%.
The diff coverage is 1%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #1400   +/-   ##
======================================
- Coverage      52%     52%   -1%     
======================================
  Files         432     433    +1     
  Lines       26213   26268   +55     
======================================
+ Hits        13784   13790    +6     
- Misses      12429   12478   +49     
Impacted Files Coverage Δ
Source/AppleAuthProvider.swift 66% <0%> (ø)
Source/AppleSocial.swift 0% <0%> (ø)
Source/OEXRegistrationViewController.m 60% <100%> (ø)
Source/CutomePlayer/VideoPlayer.swift 55% <0%> (+<1%) ⬆️
Source/CutomePlayer/VideoPlayerControls.swift 76% <0%> (+<1%) ⬆️

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 d549164...f308a80. Read the comment docs.

Source/AppleSocial.swift Outdated Show resolved Hide resolved
Source/AppleSocial.swift Outdated Show resolved Hide resolved
class AppleSocial: NSObject {

static let shared = AppleSocial()
var completionHandler: AppleLoginCompletionHandler!
Copy link
Contributor

Choose a reason for hiding this comment

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

completionHandler can be made optional and private

Suggested change
var completionHandler: AppleLoginCompletionHandler!
private var completionHandler: AppleLoginCompletionHandler?

Source/AppleSocial.swift Outdated Show resolved Hide resolved
Source/AppleSocial.swift Outdated Show resolved Hide resolved
Source/AppleSocial.swift Outdated Show resolved Hide resolved
Source/AppleSocial.swift Outdated Show resolved Hide resolved
Source/AppleAuthProvider.swift Show resolved Hide resolved
Source/OEXRegistrationViewController.m Outdated Show resolved Hide resolved
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants