-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: login with Google, Facebook, Microsoft
- Loading branch information
Showing
31 changed files
with
1,179 additions
and
447 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,8 @@ jobs: | |
uses: gradle/[email protected] | ||
with: | ||
cache-read-only: ${{ github.ref != 'refs/heads/develop' }} | ||
|
||
- name: Generate mock files | ||
run: ./gradlew generateMockedRawFile | ||
- name: Run unit tests | ||
run: ./gradlew testProdReleaseUnitTest $CI_GRADLE_ARG_PROPERTIES | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
auth/src/main/java/org/openedx/auth/data/model/LoginType.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package org.openedx.auth.data.model | ||
|
||
import org.openedx.core.ApiConstants | ||
|
||
/** | ||
* Enum class with types of supported login types | ||
* | ||
* @param postfix postfix to add to the API call | ||
* @param methodName name of the login type | ||
*/ | ||
enum class LoginType(val postfix: String, val methodName: String) { | ||
PASSWORD("", "Password"), | ||
GOOGLE(ApiConstants.LOGIN_TYPE_GOOGLE, "Google"), | ||
FACEBOOK(ApiConstants.LOGIN_TYPE_FB, "Facebook"), | ||
MICROSOFT(ApiConstants.LOGIN_TYPE_MICROSOFT, "Microsoft"), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.