Skip to content

Instantly share code, notes, and snippets.

View dcinzona's full-sized avatar
๐Ÿ†”
๐Ÿง‘โ€๐Ÿ’ป๐ŸŒŽ๐ŸŒŽ๐ŸŒŽโ˜๏ธ

Gustavo Tandeciarz dcinzona

๐Ÿ†”
๐Ÿง‘โ€๐Ÿ’ป๐ŸŒŽ๐ŸŒŽ๐ŸŒŽโ˜๏ธ
  • Salesforce
  • Washington, DC
View GitHub Profile
@dcinzona
dcinzona / JitHandler.cls
Created June 20, 2024 13:03 — forked from wesley-chiSFDC/JitHandler.cls
JIT Handler Round Robin
public with sharing class JitHandler implements Auth.SamlJitHandler {
public class JitException extends Exception {}
public User createUser(Id samlSsoProviderId, Id communityId, Id portalId,
String federationIdentifier, Map<String, String> attributes, String assertion) {
User u = new User();
handleJit(true, u, samlSsoProviderId, communityId, portalId,
federationIdentifier, attributes, assertion);
return u;
}