This repository has been archived by the owner on Sep 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feature/update-new-auth-host] APP 팀 서버에서 수정된 부분 반영 (#2)
* API 업데이트 된 부분 수정 * Version bump to 0.1.3
- Loading branch information
Showing
17 changed files
with
49 additions
and
35 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
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
1 change: 1 addition & 0 deletions
1
auth/src/main/java/org/sopt/official/playground/auth/Constants.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
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
6 changes: 4 additions & 2 deletions
6
auth/src/main/java/org/sopt/official/playground/auth/PlaygroundInfo.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 |
---|---|---|
@@ -1,8 +1,10 @@ | ||
package org.sopt.official.playground.auth | ||
|
||
internal object PlaygroundInfo { | ||
val HOST: String = "sopt-internal-dev.pages.dev" | ||
val DEBUG_HOST: String = "sopt-internal-dev.pages.dev" | ||
val HOST: String = "playground.sopt.org" | ||
val AUTH_PATH: String = "auth/oauth" | ||
val REDIRECT_URI = "app://org.sopt.makers.android/oauth2redirect" | ||
val authHost: String = "mock-makers-app-server.tekiter.workers.dev" | ||
val DEBUG_AUTH_HOST: String = "ec2-43-200-170-159.ap-northeast-2.compute.amazonaws.com:8080/api/v2/" | ||
val RELEASE_AUTH_HOST: String = "app.sopt.org/api/v2/" | ||
} |
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
4 changes: 2 additions & 2 deletions
4
auth/src/main/java/org/sopt/official/playground/auth/data/PlaygroundAuthDatasource.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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
package org.sopt.official.playground.auth.data | ||
|
||
import org.sopt.official.playground.auth.data.remote.model.response.OauthToken | ||
import org.sopt.official.playground.auth.data.remote.model.response.OAuthToken | ||
|
||
interface PlaygroundAuthDatasource { | ||
suspend fun oauth(code: String): Result<OauthToken> | ||
suspend fun oauth(code: String): Result<OAuthToken> | ||
} |
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
6 changes: 3 additions & 3 deletions
6
auth/src/main/java/org/sopt/official/playground/auth/data/remote/AuthService.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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
package org.sopt.official.playground.auth.data.remote | ||
|
||
import org.sopt.official.playground.auth.data.remote.model.request.RequestToken | ||
import org.sopt.official.playground.auth.data.remote.model.response.OauthToken | ||
import org.sopt.official.playground.auth.data.remote.model.response.OAuthToken | ||
import retrofit2.http.Body | ||
import retrofit2.http.POST | ||
|
||
internal interface AuthService { | ||
@POST("oauth") | ||
@POST("auth/playground") | ||
suspend fun oauth( | ||
@Body request: RequestToken | ||
): OauthToken | ||
): OAuthToken | ||
} |
2 changes: 2 additions & 0 deletions
2
...src/main/java/org/sopt/official/playground/auth/data/remote/model/request/RequestToken.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 |
---|---|---|
@@ -1,8 +1,10 @@ | ||
package org.sopt.official.playground.auth.data.remote.model.request | ||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
internal data class RequestToken( | ||
@SerialName("code") | ||
val code: String | ||
) |
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