Skip to content
This repository was archived by the owner on Jan 9, 2026. It is now read-only.

Commit e7b5bef

Browse files
awolfdenAdam Wolfman
andauthored
Update UI/UX for Ruby example apps (#94)
* Update UI/UX for MFA app * Update UI/UX for Magic Link app * Update UI/UX for Dsync app * Update UI/UX for Admin Portal app * Remove whitespace from html templates --------- Co-authored-by: Adam Wolfman <[email protected]>
1 parent 689f57f commit e7b5bef

File tree

43 files changed

+1458
-1084
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1458
-1084
lines changed

ruby-admin-portal-example/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ source 'https://rubygems.org'
44

55
gem 'dotenv', '2.7.6'
66
gem 'sinatra', '2.2.0'
7-
gem 'workos', '2.12.0'
7+
gem 'workos', '2.13.0'

ruby-admin-portal-example/Gemfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ GEM
1313
rack (~> 2.2)
1414
rack-protection (= 2.2.0)
1515
tilt (~> 2.0)
16-
sorbet-runtime (0.5.10263)
16+
sorbet-runtime (0.5.10830)
1717
tilt (2.0.10)
18-
workos (2.5.0)
18+
workos (2.13.0)
1919
sorbet-runtime (~> 0.5)
2020

2121
PLATFORMS
@@ -24,7 +24,7 @@ PLATFORMS
2424
DEPENDENCIES
2525
dotenv (= 2.7.6)
2626
sinatra (= 2.2.0)
27-
workos (= 2.5.0)
27+
workos (= 2.13.0)
2828

2929
BUNDLED WITH
3030
2.1.4

ruby-admin-portal-example/app.rb

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,13 @@
2828
erb :admin_portal_launcher
2929
end
3030

31-
get('/dsync-admin-portal') do
32-
organization_id = $organization.id # ... The ID of the organization to start an Admin Portal session for
33-
link = WorkOS::Portal.generate_link(
34-
organization: organization_id,
35-
intent: 'dsync',
36-
)
37-
redirect link
38-
end
3931

40-
get('/sso-admin-portal') do
32+
get('/launch-admin-portal') do
33+
intent = params["intent"]
4134
organization_id = $organization.id # ... The ID of the organization to start an Admin Portal session for
42-
link = WorkOS::Portal.generate_link(
35+
portal_link = WorkOS::Portal.generate_link(
4336
organization: organization_id,
44-
intent: 'sso',
45-
)
46-
redirect link
37+
intent: intent,
38+
)
39+
redirect portal_link
4740
end
Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)