-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support authentication via Kong consumer headers (#112)
- Loading branch information
1 parent
23e5efc
commit 17c198e
Showing
81 changed files
with
298 additions
and
199 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
java=11.0.20-tem |
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
27 changes: 27 additions & 0 deletions
27
models/src/main/kotlin/io/provenance/api/models/entity/EntityID.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,27 @@ | ||
package io.provenance.api.models.entity | ||
|
||
import java.util.UUID | ||
|
||
sealed interface Entity { val id: String } | ||
|
||
/** | ||
* Kong consumer | ||
* | ||
* @property id | ||
* @property username - will be null for consumers created for delegated keys | ||
* @property customId - contains granter address for delegated keys | ||
* @constructor Create empty Kong consumer | ||
*/ | ||
data class KongConsumer( | ||
val entityId: String, | ||
val username: String?, | ||
val customId: String, | ||
) : Entity { | ||
override val id: String | ||
get() = entityId | ||
} | ||
|
||
data class MemberUUID(val value: UUID) : Entity { | ||
override val id: String | ||
get() = value.toString() | ||
} |
3 changes: 2 additions & 1 deletion
3
models/src/main/kotlin/io/provenance/api/models/p8e/query/QueryScopeRequest.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
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
4 changes: 2 additions & 2 deletions
4
...io/provenance/api/domain/usecase/cee/approve/models/ApproveContractBatchRequestWrapper.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,9 +1,9 @@ | ||
package io.provenance.api.domain.usecase.cee.approve.models | ||
|
||
import io.provenance.api.models.entity.Entity | ||
import io.provenance.api.models.cee.approve.ApproveContractBatchRequest | ||
import java.util.UUID | ||
|
||
data class ApproveContractBatchRequestWrapper( | ||
val uuid: UUID, | ||
val entity: Entity, | ||
val request: ApproveContractBatchRequest | ||
) |
4 changes: 2 additions & 2 deletions
4
...tlin/io/provenance/api/domain/usecase/cee/approve/models/ApproveContractRequestWrapper.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,9 +1,9 @@ | ||
package io.provenance.api.domain.usecase.cee.approve.models | ||
|
||
import io.provenance.api.models.entity.Entity | ||
import io.provenance.api.models.cee.approve.ApproveContractRequest | ||
import java.util.UUID | ||
|
||
data class ApproveContractRequestWrapper( | ||
val uuid: UUID, | ||
val entity: Entity, | ||
val request: ApproveContractRequest | ||
) |
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
4 changes: 2 additions & 2 deletions
4
...in/kotlin/io/provenance/api/domain/usecase/cee/common/client/model/CreateClientRequest.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
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
.../io/provenance/api/domain/usecase/cee/execute/model/ExecuteContractBatchRequestWrapper.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,9 +1,9 @@ | ||
package io.provenance.api.domain.usecase.cee.execute.model | ||
|
||
import io.provenance.api.models.entity.Entity | ||
import io.provenance.api.models.cee.execute.ExecuteContractBatchRequest | ||
import java.util.UUID | ||
|
||
data class ExecuteContractBatchRequestWrapper( | ||
val uuid: UUID, | ||
val entity: Entity, | ||
val request: ExecuteContractBatchRequest, | ||
) |
4 changes: 2 additions & 2 deletions
4
...otlin/io/provenance/api/domain/usecase/cee/execute/model/ExecuteContractRequestWrapper.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,9 +1,9 @@ | ||
package io.provenance.api.domain.usecase.cee.execute.model | ||
|
||
import io.provenance.api.models.entity.Entity | ||
import io.provenance.api.models.cee.execute.ExecuteContractRequest | ||
import java.util.UUID | ||
|
||
data class ExecuteContractRequestWrapper( | ||
val uuid: UUID, | ||
val entity: Entity, | ||
val request: ExecuteContractRequest, | ||
) |
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
4 changes: 2 additions & 2 deletions
4
...n/io/provenance/api/domain/usecase/cee/reject/models/RejectContractBatchRequestWrapper.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,9 +1,9 @@ | ||
package io.provenance.api.domain.usecase.cee.reject.models | ||
|
||
import io.provenance.api.models.entity.Entity | ||
import io.provenance.api.models.cee.reject.RejectContractBatchRequest | ||
import java.util.UUID | ||
|
||
class RejectContractBatchRequestWrapper( | ||
val uuid: UUID, | ||
val entity: Entity, | ||
val request: RejectContractBatchRequest, | ||
) |
4 changes: 2 additions & 2 deletions
4
.../provenance/api/domain/usecase/cee/reject/models/RejectContractExecutionRequestWrapper.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,9 +1,9 @@ | ||
package io.provenance.api.domain.usecase.cee.reject.models | ||
|
||
import io.provenance.api.models.entity.Entity | ||
import io.provenance.api.models.cee.reject.RejectContractRequest | ||
import java.util.UUID | ||
|
||
data class RejectContractExecutionRequestWrapper( | ||
val uuid: UUID, | ||
val entity: Entity, | ||
val request: RejectContractRequest | ||
) |
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
4 changes: 2 additions & 2 deletions
4
.../api/domain/usecase/cee/submit/models/SubmitContractBatchExecutionResultRequestWrapper.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,9 +1,9 @@ | ||
package io.provenance.api.domain.usecase.cee.submit.models | ||
|
||
import io.provenance.api.models.entity.Entity | ||
import io.provenance.api.models.cee.submit.SubmitContractBatchExecutionResultRequest | ||
import java.util.UUID | ||
|
||
data class SubmitContractBatchExecutionResultRequestWrapper( | ||
val uuid: UUID, | ||
val entity: Entity, | ||
val request: SubmitContractBatchExecutionResultRequest | ||
) |
4 changes: 2 additions & 2 deletions
4
...nance/api/domain/usecase/cee/submit/models/SubmitContractExecutionResultRequestWrapper.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,9 +1,9 @@ | ||
package io.provenance.api.domain.usecase.cee.submit.models | ||
|
||
import io.provenance.api.models.entity.Entity | ||
import io.provenance.api.models.cee.submit.SubmitContractExecutionResultRequest | ||
import java.util.UUID | ||
|
||
data class SubmitContractExecutionResultRequestWrapper( | ||
val uuid: UUID, | ||
val entity: Entity, | ||
val request: SubmitContractExecutionResultRequest | ||
) |
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
Oops, something went wrong.