This repository has been archived by the owner on Nov 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from walt-id/feat-ebsi-compliance
Feat ebsi compliance
- Loading branch information
Showing
29 changed files
with
891 additions
and
212 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
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
3 changes: 2 additions & 1 deletion
3
src/commonMain/kotlin/id/walt/oid4vc/errors/AuthorizationError.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
15 changes: 15 additions & 0 deletions
15
src/commonMain/kotlin/id/walt/oid4vc/errors/CredentialOfferError.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,15 @@ | ||
package id.walt.oid4vc.errors | ||
|
||
import id.walt.oid4vc.requests.CredentialOfferRequest | ||
import id.walt.oid4vc.requests.TokenRequest | ||
import id.walt.oid4vc.responses.TokenErrorCode | ||
|
||
class CredentialOfferError( | ||
val credentialOfferRequest: CredentialOfferRequest, val errorCode: CredentialOfferErrorCode, override val message: String? = null | ||
): Exception() { | ||
} | ||
|
||
enum class CredentialOfferErrorCode { | ||
invalid_request, | ||
invalid_issuer | ||
} |
17 changes: 17 additions & 0 deletions
17
src/commonMain/kotlin/id/walt/oid4vc/interfaces/IHttpClient.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,17 @@ | ||
package id.walt.oid4vc.interfaces | ||
|
||
import io.ktor.http.* | ||
import kotlinx.serialization.json.Json | ||
import kotlinx.serialization.json.JsonElement | ||
import kotlinx.serialization.json.JsonObject | ||
|
||
data class SimpleHttpResponse ( | ||
val status: HttpStatusCode, | ||
val headers: Headers, | ||
val body: String? | ||
) | ||
interface IHttpClient { | ||
fun httpGet(url: Url, headers: Headers? = null): SimpleHttpResponse | ||
fun httpPostObject(url: Url, jsonObject: JsonObject, headers: Headers? = null): SimpleHttpResponse | ||
fun httpSubmitForm(url: Url, formParameters: Parameters, headers: Headers? = null): SimpleHttpResponse | ||
} |
2 changes: 1 addition & 1 deletion
2
...lt/oid4vc/providers/SIOPProviderConfig.kt → ...id4vc/providers/CredentialWalletConfig.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,5 +1,5 @@ | ||
package id.walt.oid4vc.providers | ||
|
||
data class SIOPProviderConfig( | ||
data class CredentialWalletConfig( | ||
val redirectUri: String? = null | ||
) : OpenIDProviderConfig() |
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.