I am struggling with getting access to the domain aliases for a given self-service SSO connection. I’m configuring using an Okta Workforce connection an I am following the docs here:
..which states that ‘Both methods populate the same field: options.domain_aliases’. However, when I issue the connection request I see no such options in the response:
Note, in the management console the aliases are clearly visible in the Connnection/Login Experience/Home Realm Discovery/Identity Provider domain list.
Yes, profile created, ticket created, wizard completed. I am currently pre-verifying by passing domain_aliases when creating the ticket. This is for ease of initial testing of the flow.
@JFoxUK wrt the self-service URLs your referenced. I have already done the ticket creation and connection setup wizard. I’m trying to fetch the resultant connection. The REST API docs for the get connection endpoint state a specific read:connection_optionsscope is required:
This was missing from my client API config, but adding it did nothing
After a management token refresh this worked.
So it was a scope issue. The API normally gives good feedback on when there are relevant scopes configured for an API operation, but it was silent in this case. And not present in the main docs: