• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wistefan / keycloak-vc-issuer / #424

14 Nov 2023 02:06PM UTC coverage: 41.163% (-7.7%) from 48.895%
#424

push

wistefan
use protocol mappers

354 of 860 relevant lines covered (41.16%)

0.41 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
src/main/java/org/fiware/keycloak/SIOP2LoginProtocol.java
1
package org.fiware.keycloak;
2

3
import jakarta.ws.rs.core.HttpHeaders;
4
import jakarta.ws.rs.core.Response;
5
import jakarta.ws.rs.core.UriInfo;
6
import org.keycloak.events.EventBuilder;
7
import org.keycloak.models.AuthenticatedClientSessionModel;
8
import org.keycloak.models.ClientSessionContext;
9
import org.keycloak.models.KeycloakSession;
10
import org.keycloak.models.RealmModel;
11
import org.keycloak.models.UserSessionModel;
12
import org.keycloak.protocol.LoginProtocol;
13
import org.keycloak.sessions.AuthenticationSessionModel;
14

15
/**
16
 * Empty implementation of the SIOP2LoginProtocl. Its required to be available for integration with the client-registration.
17
 * Since we do not support any additional functionality(like logging into Keycloak with SIOP-2), its an empty default
18
 * implementation.
19
 */
20
public class SIOP2LoginProtocol implements LoginProtocol {
21

22
        public SIOP2LoginProtocol(KeycloakSession session) {
×
23
        }
×
24

25
        @Override public SIOP2LoginProtocol setSession(KeycloakSession session) {
26
                return this;
×
27
        }
28

29
        @Override public SIOP2LoginProtocol setRealm(RealmModel realm) {
30
                return this;
×
31
        }
32

33
        @Override public LoginProtocol setUriInfo(UriInfo uriInfo) {
34
                return null;
×
35
        }
36

37
        @Override public LoginProtocol setHttpHeaders(HttpHeaders httpHeaders) {
38
                return null;
×
39
        }
40

41
        @Override
42
        public SIOP2LoginProtocol setEventBuilder(EventBuilder event) {
43
                return this;
×
44
        }
45

46
        @Override public Response authenticated(AuthenticationSessionModel authSession, UserSessionModel userSession,
47
                        ClientSessionContext clientSessionCtx) {
48
                return null;
×
49
        }
50

51
        @Override public Response sendError(AuthenticationSessionModel authSession, Error error) {
52
                return null;
×
53
        }
54

55
        @Override public Response backchannelLogout(UserSessionModel userSession,
56
                        AuthenticatedClientSessionModel clientSession) {
57
                return null;
×
58
        }
59

60
        @Override public Response frontchannelLogout(UserSessionModel userSession,
61
                        AuthenticatedClientSessionModel clientSession) {
62
                return null;
×
63
        }
64

65
        @Override public Response finishBrowserLogout(UserSessionModel userSession,
66
                        AuthenticationSessionModel logoutSession) {
67
                return null;
×
68
        }
69

70
        @Override public boolean requireReauthentication(UserSessionModel userSession,
71
                        AuthenticationSessionModel authSession) {
72
                return false;
×
73
        }
74

75
        @Override public void close() {
76
                // nothing to close, just fulfilling the interface.
77
        }
×
78
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc