Browse Source

updated some repositories with basic get/save functions

pull/59/head
Justin Richer 13 years ago
parent
commit
a8d39b905f
  1. 2
      mitre-local
  2. 2
      spring-security-oauth
  3. 10
      src/main/java/org/mitre/openid/connect/repository/ApprovedSiteRepository.java
  4. 6
      src/main/java/org/mitre/openid/connect/repository/IdTokenRepository.java
  5. 2
      src/main/java/org/mitre/openid/connect/repository/UserInfoRepository.java
  6. 4
      src/main/java/org/mitre/openid/connect/web/AuthorizationEndpoint.java

2
mitre-local

@ -1 +1 @@
Subproject commit b3dbc687b2922a78cb3879ca16c0ce1bc9a4f657
Subproject commit f1f301046b6c6f397bc4d40a25dd407ca6f2b757

2
spring-security-oauth

@ -1 +1 @@
Subproject commit 674ebf1fa71f4886216c01d731c6acdcd4e37d72
Subproject commit 5784e6bf534e65627d4efb94be90ab7ba4df9069

10
src/main/java/org/mitre/openid/connect/repository/ApprovedSiteRepository.java

@ -1,11 +1,19 @@
package org.mitre.openid.connect.repository;
import java.util.Collection;
import java.util.Collections;
import org.mitre.openid.connect.model.ApprovedSite;
import org.mitre.openid.connect.model.UserInfo;
public interface ApprovedSiteRepository {
public ApprovedSite getById(Long id);
public ApprovedSite getByUrl(String url);
public Collection<ApprovedSite> getAllForUser(UserInfo user);
public Collection<ApprovedSite> getAllExpired();
public ApprovedSite save(ApprovedSite site);
}

6
src/main/java/org/mitre/openid/connect/repository/IdTokenRepository.java

@ -1,5 +1,11 @@
package org.mitre.openid.connect.repository;
import org.mitre.openid.connect.model.IdToken;
public interface IdTokenRepository {
public IdToken getById(Long id);
public IdToken save(IdToken idToken);
}

2
src/main/java/org/mitre/openid/connect/repository/UserInfoRepository.java

@ -6,4 +6,6 @@ public interface UserInfoRepository {
public UserInfo getByUserId(String user_id);
public UserInfo save(UserInfo user);
}

4
src/main/java/org/mitre/openid/connect/web/AuthorizationEndpoint.java

@ -17,5 +17,9 @@ public class AuthorizationEndpoint {
* handle "idtoken token" flow
*
*/
/*
* Other flows get handled outside of our endpoints by SSOA
*/
}

Loading…
Cancel
Save