Closed xgp closed 9 months ago
post org broker login
longer term
New method. Link an existing IdP to an organization
POST /:realm/orgs/:orgId/idps/link
Path Parameters
realm
string required - realm name (not id!)orgId
string required - organization idBody
alias
string required - alias of existing IdPpost_broker_flow
string optional - post broker login flow alias, defaults to post org broker login
sync_mode
string optional - sync mode, defaults to FORCE
Example
{
"alias": "azure-saml-1234",
"post_broker_flow": "super duper post org broker login",
"sync_mode": "IMPORT"
}
Responses
201
with Location
header of org IdP, created successfully409
, IdP is already associatedNew method implemented here https://github.com/p2-inc/keycloak-orgs/pull/159
Code pushed up here: https://github.com/p2-inc/keycloak/commits/23.0.1_orgs_admin_ui/
Getting a 500 error whenever I hit the Link endpoint though. Somethings going on there.
It was how we were updating the IdP. Fixed now.
By default, we set the
postBrokerLoginFlowAlias
topost org broker login
when an IdP is linked to an Organization. If you have already set a custom value for that flow it will be overriden.We need a way to allow this to be specified, and for a custom default to be set.
Ideas:
attributes->organizationPostLoginFlow
If we do the second one for the default, we should also consider allowing a custom default for
syncMode
, which we currently override toFORCE