-
Notifications
You must be signed in to change notification settings - Fork 488
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
22 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 12 additions & 15 deletions
27
...ava/edu/harvard/iq/dataverse/authorization/providers/shib/ShibAuthenticationProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,31 @@ | ||
package edu.harvard.iq.dataverse.authorization.providers.shib; | ||
|
||
import edu.harvard.iq.dataverse.authorization.AuthenticationProvider; | ||
import edu.harvard.iq.dataverse.authorization.AuthenticationProviderDisplayInfo; | ||
import edu.harvard.iq.dataverse.authorization.AuthenticationRequest; | ||
import edu.harvard.iq.dataverse.authorization.AuthenticationResponse; | ||
import edu.harvard.iq.dataverse.authorization.ExternalLinkAuthenticationProvider; | ||
import java.net.URL; | ||
|
||
public class ShibAuthenticationProvider implements ExternalLinkAuthenticationProvider { | ||
public class ShibAuthenticationProvider implements AuthenticationProvider { | ||
|
||
@Override | ||
public String getId() { | ||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. | ||
return "shib"; | ||
} | ||
|
||
@Override | ||
public AuthenticationProviderDisplayInfo getInfo() { | ||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. | ||
return new AuthenticationProviderDisplayInfo(getId(), "Shibboleth Provider", "Shibboleth user repository"); | ||
} | ||
|
||
@Override | ||
public AuthenticationResponse authenticate( AuthenticationRequest req ) { | ||
// TODO the credentials map will contain the shib* headers. Find the persistent id of the | ||
// user there, and return it. | ||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. | ||
public AuthenticationResponse authenticate(AuthenticationRequest req) { | ||
/** | ||
* @todo Should we really implement this? It feels like unnecessary | ||
* overhead to pass AuthenticationRequest and AuthenticationResponse | ||
* back and forth when all the processing is done by the Shibboleth | ||
* Identity Providers. | ||
*/ | ||
throw new UnsupportedOperationException("Not supported yet. "); | ||
} | ||
|
||
@Override | ||
public URL getAuthenticationUrl() { | ||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. | ||
} | ||
|
||
|
||
} |