Hi guys!
I made an app which uses Okta for authentication.
A third party partner wants to integrate with me, the user journey must be:
- User logs in into the partner application
- User enters in my application with SSO, no password required
How can I do it? I can create the user server side but i am not able to log in him
and i do not know if my partner is able to implement an OpenID connection
here is the Server side code:
@GetMapping
public ResponseEntity doStuff(){
Client client = Clients. *builder* ()
.setOrgUrl("XXXXX")
.setClientId("XXXX")
.setClientCredentials(new TokenClientCredentials("XXXXX"))
.build();
Map<String, Object> data = new HashMap<>();
data.put("privacy_consent", true);
data.put("market_consent", true);
data.put("group_id", "XXX");
User user = UserBuilder. *instance* ()
.setEmail("joe.coder"+(int)(Math. *random* ()*1000)+"@[example.com](https://example.com/)")
.setFirstName("JoeTEST")
.setLastName("CodeTEST")
.setProfileProperties(data)
.addGroup("XX")
.setActive(true)
.setPassword("XXXX".toCharArray())
.buildAndCreate(client)
;
return ResponseEntity. *ok* (user);
}