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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#228] Add TokenAuthenticator to template-xml #382

Closed

Conversation

kaungkhantsoe
Copy link
Contributor

What happened 馃憖

Provide a description of the changes this pull request brings to the codebase. Additionally, when the pull request is still being worked on, a checklist of the planned changes is welcome to track progress.

Insight 馃摑

Describe in detail why this solution is the most appropriate, which solution you tried but did not go with, and how to test the changes. References to relevant documentation are welcome as well.

Proof Of Work 馃摴

Show us the implementation: screenshots, GIFs, etc.

@kaungkhantsoe kaungkhantsoe self-assigned this Jan 6, 2023
@github-actions
Copy link

github-actions bot commented Jan 6, 2023

9 Warnings
鈿狅笍 Please add labels to this PR
鈿狅笍 Uh oh! ApiServiceProvider.kt is under 95% coverage!
鈿狅笍 Uh oh! ApplicationRequestAuthenticator.kt is under 95% coverage!
鈿狅笍 Uh oh! AuthStatus.kt is under 95% coverage!
鈿狅笍 Uh oh! AuthenticateResponse.kt is under 95% coverage!
鈿狅笍 Uh oh! ResponseMapping.kt is under 95% coverage!
鈿狅笍 Uh oh! SessionManagerImpl.kt is under 95% coverage!
鈿狅笍 Uh oh! TokenRefresherImpl.kt is under 95% coverage!
鈿狅笍 Uh oh! Your project is under 80% coverage!

Kover report for template-xml:

馃 Template - XML Unit Tests Code Coverage: 24.50%

Coverage of Modified Files:

File Coverage
ApiServiceProvider.kt 0.00%
ApplicationRequestAuthenticator.kt 0.00%
AuthStatus.kt 0.00%
AuthenticateResponse.kt 0.00%
Error.kt 100.00%
ErrorResponse.kt 100.00%
ResponseMapping.kt 71.70%
SessionManagerImpl.kt 0.00%
TokenRefresherImpl.kt 0.00%

Modified Files Not Found In Coverage Report:

AuthModule.kt
AuthService.kt
Authenticate.kt
MockUtil.kt
OkHttpClientModule.kt
RetrofitModule.kt
SessionManager.kt
TokenRefresher.kt

Codebase cunningly covered by count Shroud 馃

Kover report for template-compose:

馃 Template - Compose Unit Tests Code Coverage: 14.62%

Coverage of Modified Files:

File Coverage
ApiServiceProvider.kt 0.00%
Error.kt 100.00%
ErrorResponse.kt 100.00%
ResponseMapping.kt 87.69%

Modified Files Not Found In Coverage Report:

ApplicationRequestAuthenticator.kt
AuthModule.kt
AuthService.kt
AuthStatus.kt
Authenticate.kt
AuthenticateResponse.kt
MockUtil.kt
OkHttpClientModule.kt
RetrofitModule.kt
SessionManager.kt
SessionManagerImpl.kt
TokenRefresher.kt
TokenRefresherImpl.kt

Codebase cunningly covered by count Shroud 馃

Generated by 馃毇 Danger

@kaungkhantsoe kaungkhantsoe force-pushed the feature/228-add-token-authenticator-setup branch from 275d6f3 to a0a9a43 Compare January 6, 2023 06:13
@kaungkhantsoe kaungkhantsoe force-pushed the feature/228-add-token-authenticator-setup branch from a0a9a43 to c79ef76 Compare January 6, 2023 06:31
@toby-thanathip
Copy link
Contributor

toby-thanathip commented Jan 9, 2023

@luongvo @kaungkhantsoe I think let's postpone this for now, this issue is a lot bigger than I originally estimated.

It's best to create another issue first, to integrate a new API that works with a (refresh) token.

Because our current API doesn't have that. What do you think? 馃檹

@ryan-conway
Copy link
Collaborator

It's best to create another issue first, to integrate a new API that works with a (refresh) token.

@Tuubz Do you mean to integrate an API into the template? It might be a better idea to add that to the sample projects instead (perhaps the survey API?) and keep only the authenticator stuff in the template, what do you think?

@toby-thanathip
Copy link
Contributor

toby-thanathip commented Mar 7, 2023

@ryan-conway Sorry for the late reply, but yes, you're correct. 馃憤

Please have a look at this thread: https://nimble-co.slack.com/archives/G41UCTGHL/p1614156128022800

IMO, I think we should go with GitHub API (convenient) or create a Mock API with Postman (flexible).

I'll create an RFC for this, what do you think? 馃檹

@ryan-conway
Copy link
Collaborator

@Tuubz An RFC sounds like a good idea 馃槃

@toby-thanathip
Copy link
Contributor

@ryan-conway @kaungkhantsoe RFC created: #434 馃殌

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.

Add TokenAuthenticator setup
3 participants