Uneven spacing between box items

0 votes
asked Jan 14 in Question / help by ak2766 (120 points)
edited Jan 14 by ak2766

How can I keep the spacing between box elements (Proxmox VE, Keycloak OIDC, and Okta SAML as seen in the attached sandbox) the same?

//www.plantuml.com/plantuml/png/ZP5DYzim48Rl-XM3hy4bRMy1btMpBPXksT2blIloa1NMXv76o-RVLwFQSXrQs9CJpQl7pxo-YoG3JTO8EP5taprZ477GRfH1MZZxruWZlD_lXI1D1g7wXbTbl1o0F7mCFPpI_IiyjTyVeBk7py4F62eXf28Vu6V403B2b9v291fKf-1VRVhnXE55Awm4m9WGMkbHEbhdlxvKV7DyGO6kPvCPK0GUk_iZTFtf5h5DPCgW_0tbSI09TVR-y6x_Jmn7SY0ZVFgtCfe6EgT9Iq9uy1Vlk8v5lMa4Bmpr9zQ7tUu0hL8Ouv8GV5odSOuTqZ56TCGaxU2h3tO3EAIo32g2pM9RI5qVu0VsEd2EV8aMKAg0JLPjPlnve-3PstGuMNHoGUr4pmpulqg95GftoJB5XLi6arrujc4LdUEpD0RT1Gk7dyo1exUZGSBR37Dcu6x7ujFPwhz9F5psuaoAy3TkOxfDshl8gotV8GVcsTnSFbvT-VI2VIfPt2NEPCrl

EDIT: Noticed I posted a PNG instead of a link to the sandbox.  Here's the code:

@startuml
autonumber
title "Keycloak to 3rd Party SAML ID Broker"
actor User as user
box "Proxmox Service"
participant "Proxmox VE" as pve
end box
box "Keycloak OIDC IdP"
participant "Keycloak OIDC" as kco
end box
box "Okta - SAML2.0 IdP"
participant "Okta SAML" as okta
end box

== Initiate Logon to Proxmox ==
user -> pve ++: Access Proxmox
pve --> user : Present Login Form
user -> pve : Select Keycloak OIDC
pve --> user : Redirect to Keycloak
user -> kco ++: Initiate OIDC Login
kco --> user : Present Login Form
user -> kco : Select Okta Auth
kco --> user : Redirect to Okta Auth
user -> okta ++:Initiate SAML login
okta -> user : Present Challenge
user -> user ++: Complete Challenge
user -> okta --: Submit Challenge
okta -> kco --: Send Assertions
kco -> pve --: Assert Login
pve -> user --: Logged In
@enduml

2 Answers

0 votes
answered Jan 14 by The-Lu (87,580 points)
selected Jan 14 by ak2766
 
Best answer

Hello A.,

For that you can change 'Padding' parameter with:

skinparam ParticipantPadding 50
skinparam BoxPadding 20

See doc. here:

Enjoy,
Regards,
Th.

commented Jan 14 by ak2766 (120 points)
Fantastic.  This resolves it.

Thanks for link.  I had tried searching by I was looking in the CSS style section as I read skinparam will be going bye bye in the near future?
0 votes
answered Jan 14 by The-Lu (87,580 points)

Hello A.,

Here is a workaround:

  • Could you a add a space after "Assert Login" (in order to have the same length as "Send Assertions")
kco -> pve --: Assert Login\t

Regards,
Th.

commented Jan 14 by ak2766 (120 points)
edited Jan 14 by ak2766

The spacing still looks different though.

Thanks though for correcting my initial diagram.  I now understand that one doesn't stop the bar then reopen it later if the process isn't complete.

How do I go about sharing the diagram as you did here.  I tried by obviously clueless me failed.

UPDATE:  I somehow posted the corrected one.  I had an earlier version that had the vertical bars starting and stopping as the process was handed to other sections.  It looked very busy.

...