Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .classpath
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="lib" path="libs/commons-io-2.0.1.jar"/>
<classpathentry kind="lib" path="libs/httpmime-4.1.1.jar"/>
<classpathentry kind="lib" path="libs/jsoup-1.6.1.jar"/>
<classpathentry kind="lib" path="libs/android-async-http-1.3.1.jar"/>
<classpathentry kind="lib" path="libs/xstream-1.3.jar"/>
<classpathentry kind="lib" path="libs/nimbus-jose-jwt-2.25.jar"/>
<classpathentry kind="lib" path="libs/jcip-annotations-1.0.jar"/>
<classpathentry kind="lib" path="libs/json-smart-1.1.1.jar"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.esri.arcgis.android.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
8 changes: 8 additions & 0 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,14 @@
<activity android:name=".libraries.LibraryFines"></activity>
<activity android:name=".libraries.LibraryFineDetail"></activity>
<activity android:name=".links.LinksActivity"></activity>
<activity android:name=".id.OpenIDConnectActivity">
<intent-filter android:label="OIDCCallback">
<data android:scheme="mitmobile2" />
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
</intent-filter>
</activity>

</application>

Expand Down
Binary file added libs/jcip-annotations-1.0.jar
Binary file not shown.
Binary file added libs/json-smart-1.1.1.jar
Binary file not shown.
Binary file added libs/nimbus-jose-jwt-2.25.jar
Binary file not shown.
Binary file added res/drawable-hdpi/home_openidconnect.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/home_openidconnect.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions res/layout/openidconnect_home.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" android:orientation="vertical">
<TextView android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="OpenID Connect" android:textAppearance="?android:attr/textAppearanceLarge"/>
<TextView android:id="@+id/textView2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="16dp" android:text="Subject:" android:textAppearance="?android:attr/textAppearanceLarge"/>
<TextView android:id="@+id/subjectVal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="..." android:textAppearance="?android:attr/textAppearanceSmall" android:textColor="@color/boldBlack"/>

<TextView
android:id="@+id/textView4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="14dp"
android:text="Username:"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TextView android:id="@+id/usernameVal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="..." android:textAppearance="?android:attr/textAppearanceSmall" android:textColor="@color/boldBlack"/>
<TextView android:id="@+id/textView3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="20dp" android:text="Email:" android:textAppearance="?android:attr/textAppearanceLarge"/>
<TextView android:id="@+id/emailVal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="..." android:textAppearance="?android:attr/textAppearanceSmall" android:textColor="@color/boldBlack"/>
<LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="18dp">
<LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical">
<Button android:id="@+id/openid_login" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" android:text="Log In"/>
<Button android:id="@+id/openid_profile" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" android:text="Profile"/>
<Button android:id="@+id/openid_logout" android:layout_width="fill_parent" android:layout_height="0dp" android:layout_weight="1" android:text="Log Out"/>
</LinearLayout>
<LinearLayout android:layout_width="wrap_content" android:layout_height="match_parent" android:orientation="vertical">
<ToggleButton android:id="@+id/openid_idtoken" android:layout_width="fill_parent" android:layout_height="wrap_content" android:clickable="false" android:text="ToggleButton" android:textOff="ID Token" android:textOn="ID Token"/>
<ToggleButton android:id="@+id/openid_access" android:layout_width="fill_parent" android:layout_height="wrap_content" android:clickable="false" android:text="ToggleButton" android:textOff="Access Token" android:textOn="Access Token"/>
<ToggleButton android:id="@+id/openid_refresh" android:layout_width="fill_parent" android:layout_height="wrap_content" android:clickable="false" android:text="ToggleButton" android:textOff="Refresh Token" android:textOn="Refresh Token"/>
</LinearLayout>
</LinearLayout>

</LinearLayout>
2 changes: 2 additions & 0 deletions src/edu/mit/mitmobile2/HomeScreenActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import edu.mit.mitmobile2.emergency.EmergencyModule;
import edu.mit.mitmobile2.events.EventsModule;
import edu.mit.mitmobile2.facilities.FacilitiesModule;
import edu.mit.mitmobile2.id.OpenIDConnectModule;
import edu.mit.mitmobile2.libraries.LibrariesModule;
import edu.mit.mitmobile2.links.LinksModule;
import edu.mit.mitmobile2.maps.MapsModule;
Expand Down Expand Up @@ -124,6 +125,7 @@ void createView() {
new DiningModule(),
new QRReaderModule(),
new LinksModule(),
new OpenIDConnectModule()
};

mSpringBoard = (GridView) findViewById(R.id.homeSpringBoardGV);
Expand Down
Loading