<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00007hX3G6CAKOkta Classic EngineAuthenticationAnswered2024-04-16T12:56:30.000Z2022-06-03T16:15:44.000Z2022-06-03T23:46:46.000Z

wt2n4 (wt2n4) asked a question.

Sign on from third party application

Hi guys!

I made an app which uses Okta for authentication.

A third party partner wants to integrate with me, the user must pass from the partner page to my pagw without entering the password, with a SSO method.

 

How can I do it? I can create the user server side but i am not able to log in him 😞

 

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")

.setFirstName("JoeTEST")

.setLastName("CodeTEST")

.setProfileProperties(data)

.addGroup("XX")

.setActive(true)

.setPassword("XXXX".toCharArray())

.buildAndCreate(client)

;

return ResponseEntity.ok(user);

 

}

```

 

May you help me?


This question is closed.
Loading
Sign on from third party application