android: more Clever SSO examples needed

89 views
Skip to first unread message

anuj....@gmail.com

unread,
Aug 30, 2015, 3:16:57 PM8/30/15
to Clever Developer Program: Discussions
Clever,

I am not an Android expert, but I recently took a Codepath class and appreciated having clear Android samples.

I would like to use the Clever SSO for my Android Application (SAT Vocabulary) but don't want to become an OAuth expert.

Can you create a simple app and publish the source code to GitHub?

Do I need to add OAuth libraries to my gradle file to be able use Clever SSO more easily?


Here is my current gradle file:

apply plugin: 'com.android.application'

android {
compileSdkVersion 22
buildToolsVersion "22.0.1"

defaultConfig {
applicationId "com.example.foo"
minSdkVersion 7
targetSdkVersion 22
versionCode 20150831
versionName "1.15.0831"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])

// google libraries (22)
compile 'com.android.support:appcompat-v7:22.2.1'
compile 'com.android.support:support-v4:22.2.1'
compile 'com.android.support:cardview-v7:22.2.1'
compile 'com.android.support:recyclerview-v7:22.2.1'

// other support libraries
compile 'com.android.support:design:22.2.1'
compile 'com.loopj.android:android-async-http:1.4.7'
}

colin.sch...@clever.com

unread,
Sep 2, 2015, 3:14:03 PM9/2/15
to Clever Developer Program: Discussions, anuj....@gmail.com
Hi, thanks for using Clever!

We hear you about the full OAuth2 spec, that is complicated to learn. Luckily, our flow doesn't require learning the full spec to get up and running, and is simple enough that you can do it all with HTTP, no OAuth libraries are necessary!

To understand the overall flow and how Clever's authentication works, please check out this page first:

After taking a look at that, please also check out our implicit grant flow: https://dev.clever.com/instant-login/implicit-grant-flow
This is what you'll want to follow for your mobile app, either using HTTP or using a client library.

However after reading those resources, if you do still want to use an OAuth library for Android instead of our recommended HTTP calls, we recommend the official Google OAuth2 Client Library: https://developers.google.com/api-client-library/java/apis/oauth2/v1

Let us know if you have any other questions!
- Colin Schimmelfing, Clever
Reply all
Reply to author
Forward
0 new messages