|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AuthenticationProvider
Provides authentication federation/delegation support for external LMSs
Implementation of this provider is mandatory.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface blackboard.platform.integration.provider.IntegrationProvider |
|---|
IntegrationProvider.ProviderType |
| Method Summary | |
|---|---|
java.util.Set<Id> |
checkActivity(java.util.Set<Id> userIds)
Used to confirm which user sessions have had recent activity on the external LMS. |
void |
flushCachedCredentials(Id userId)
When this is called, the provider should clear any internally cached information about the specified user's session. |
java.util.Set<javax.servlet.http.Cookie> |
getCookies(Id userId)
Deprecated. Since 9.1. Please implement the alternate getCookies(Id, String) method. It is recommended that the provider maintain an internal cache of these cookies, as this method is called relatively often. |
java.util.Set<javax.servlet.http.Cookie> |
getCookies(Id userId,
java.lang.String baseUrl)
Requests updated cookies for the user's external LMS session. |
java.lang.String |
getSharedCookieDomain(Id userId)
Determines the cookie domain shared by Academic Suite and the external LMS. |
boolean |
login(Id userId,
java.lang.String password)
Pass the user's password to the external LMS for validation. |
void |
logout(Id userId)
Notifies the external LMS that a user has logged out of Academic Suite. |
void |
setCookies(Id userId,
java.util.Set<javax.servlet.http.Cookie> cookies)
Invoked by the integration framework when it detects any new cookies on the browser for the current integration. |
| Methods inherited from interface blackboard.platform.integration.provider.IntegrationProvider |
|---|
initializeProvider |
| Method Detail |
|---|
boolean login(Id userId,
java.lang.String password)
throws PasswordChangeRequiredException,
PasswordChangeForcedException
Note that this method will only be called if the current integration is the user's primary integration. For
secondary integrations, the first interaction between AuthenticationProvider and a user will be through
getCookies(blackboard.persist.Id, String) when a user tries to access integration-specific content.
userId - Id of the current Userpassword - Password entered by the user.
PasswordChangeRequiredException - Indicates that the password was valid but that it needs to be changed.
Normally thrown when the current password has expired.
PasswordChangeForcedException - Indicates that the password was valid but that it needs to be changed.
Normally thrown when passwords must be changed after the first login.void logout(Id userId)
Academic Suite will handle revoking the user's current session cookies.
userId - Id of the current User@Deprecated java.util.Set<javax.servlet.http.Cookie> getCookies(Id userId)
It is recommended that the provider maintain an internal cache of these cookies, as this method is called relatively often.
userId - Id of the current User
java.util.Set<javax.servlet.http.Cookie> getCookies(Id userId,
java.lang.String baseUrl)
It is recommended that the provider maintain an internal cache of these cookies, as this method is called relatively often.
userId - Id of the current UserbaseUrl - Current base url for the user's session - to be used for all callback URLs into AS
void setCookies(Id userId,
java.util.Set<javax.servlet.http.Cookie> cookies)
getCookies(Id, String) method.
If the provider maintains an internal cache, it is recommended that the cache be updated with these new cookie values.
userId - Id of the current Usercookies - Updated cookies to storejava.util.Set<Id> checkActivity(java.util.Set<Id> userIds)
If the remote LMS does not keep track of session state, you may return null here. When the user's Academic Suite session times out, they will be logged out automatically.
userIds - List of User Ids to check.
void flushCachedCredentials(Id userId)
userId - Id of the current Userjava.lang.String getSharedCookieDomain(Id userId)
ContentSystemProvider is implemented.
userId - Id of the current User
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||