SSO between different applications: step 1 (same realm)

This might help clarify the topic: