Kotlin Multiplatform Implementation
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 領域
- mobile-dev
調査の方向性
まず README、EXAMPLES.md、および issue にリンクされている API ドキュメントを確認し、次にライブラリでの Base64 と Parcelable の使用箇所を追跡します。提案されている Base64 デコードパスを含め、これらの Android 固有の関数が Kotlin Multiplatform 互換の動作に置き換えられ、ネイティブ実装を必要としない状態になれば作業は完了です。
索引モデルが issue の本文から書いたものです。
説明
Checklist
- I have looked into the Readme and Examples, and have not found a suitable solution or answer.
- I have looked into the API documentation and have not found a suitable solution or answer.
- I have searched the issues and have not found a suitable solution or answer.
- I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- I agree to the terms within the Auth0 Code of Conduct.
Describe the problem you'd like to have solved
Hello all,
this library currently won't work with kotlin multiplatform module because it's using the:
- https://developer.android.com/reference/android/util/Base64
- https://developer.android.com/reference/android/os/Parcelable
It would be nice to replace this function with ktor's utility function: - https://api.ktor.io/ktor-utils/io.ktor.util/decode-base64-bytes.html
Example implementation in my code (splitToken is copied from this project)
val jwtBody = JWTPayload.splitToken(loginData.access_token ?: "")?.get(1)
if (jwtBody.isNullOrEmpty()) {
throw IllegalArgumentException()
}
val jwtAccessToken = Json{ ignoreUnknownKeys = true }.decodeFromString<JWTPayload>(
jwtBody.decodeBase64Bytes().decodeToString()
)
if (jwtAccessToken.sub.isEmpty()) {
throw IllegalArgumentException()
}
Regards,
Luca.
Describe the ideal solution
Replace base64 and parcelable function/object.
Alternatives and current workarounds
Implement native code functions/libs.
Additional context
No response
- 主要言語
- Java
- スター
- 457
- フォーク
- 81
- 平均マージ
- 4時間 14分
- マージ済み PR(30日)
- 6
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
auth0/JWTDecode.Android のほかの issue
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
auth0/JWTDecode.Android#100 · コメント 9 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
feature request
難易度 2/5 1〜3時間 初心者へのやさしさ 52/100
auth0/JWTDecode.Android#72 · コメント 7 件 · リアクション 3 件 ·
メンテナーはふだん 1 日以内に返信
auth0/JWTDecode.Android の issue をすべて見る
似ている issue
-
type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
objectionary/lints#1520 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
SchweizerischeBundesbahnen/ch.sbb.polarion.extension.pdf-exporter#1109 ·
メンテナーはふだん 1 日以内に返信