Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

AwsSignInterceptor

Intercept OkHttp request and sign AWS v4 signature

jitpack

Download

Add project root build.gradle

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

and add package build.gradle

dependencies {
    ...
    implementation 'com.github.gyamoto:AwsSignInterceptor:master'
}

Usage

val credentialProvider = CognitoCredentialsProvider("identity pool id", Regions.AP_NORTHEAST_1)

val authInterceptor = AwsSignInterceptor(credentialProvider, AP_NORTHEAST_1)

val client = OkHttpClient.Builder()
    .addInterceptor(authInterceptor)
    .build()
You can’t perform that action at this time.