Search in sources :

Example 1 with OAuthResource

use of org.olat.login.oauth.OAuthResource in project openolat by klemens.

the class OAuthAuthenticationController method redirect.

private void redirect(UserRequest ureq, OAuthSPI provider) {
    HttpSession session = ureq.getHttpReq().getSession();
    MediaResource redirectResource = new OAuthResource(provider, session);
    ureq.getDispatchResult().setResultingMediaResource(redirectResource);
}
Also used : HttpSession(javax.servlet.http.HttpSession) MediaResource(org.olat.core.gui.media.MediaResource) OAuthResource(org.olat.login.oauth.OAuthResource)

Example 2 with OAuthResource

use of org.olat.login.oauth.OAuthResource in project OpenOLAT by OpenOLAT.

the class OAuthAuthenticationController method redirect.

private void redirect(UserRequest ureq, OAuthSPI provider) {
    HttpSession session = ureq.getHttpReq().getSession();
    MediaResource redirectResource = new OAuthResource(provider, session);
    ureq.getDispatchResult().setResultingMediaResource(redirectResource);
}
Also used : HttpSession(javax.servlet.http.HttpSession) MediaResource(org.olat.core.gui.media.MediaResource) OAuthResource(org.olat.login.oauth.OAuthResource)

Aggregations

HttpSession (javax.servlet.http.HttpSession)2 MediaResource (org.olat.core.gui.media.MediaResource)2 OAuthResource (org.olat.login.oauth.OAuthResource)2