Skip to content

Ghedeon/AwsInterceptor

Repository files navigation

AWS Gateway OkHttp Interceptor

An OkHttp interceptor which signs requests with AWS Signature v4.

Install

Add awsinterceptor as a dependency to your build.gradle file.

repositories {
    maven { url "https://jitpack.io" }
}

...

dependencies {
    implementation 'com.github.ghedeon:awsinterceptor:<check badge for latest version>'
}

Usage

val awsInterceptor = AwsInterceptor(MyAWSCredentialsProvider(), serviceName, region)

val okHttpClient = OkHttpClient.Builder()
    .addInterceptor(awsInterceptor)
    .build()

check sample module for more details

License

Apache License, Version 2.0