| 1 | <Page |
| 2 | x:Class="RblxTool.Views.AccountsPage" |
| 3 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 4 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 5 | xmlns:models="using:RblxTool.Models"> |
| 6 | |
| 7 | <ScrollViewer Padding="{StaticResource PagePadding}"> |
| 8 | <StackPanel Spacing="16"> |
| 9 | |
| 10 | <TextBlock Style="{StaticResource SectionTitle}" Text="Accounts" /> |
| 11 | |
| 12 | <Border Style="{StaticResource CardBorder}"> |
| 13 | <StackPanel Spacing="12"> |
| 14 | <TextBlock FontWeight="SemiBold" Text="1. Session cookie (fastest, most capable)" /> |
| 15 | <TextBlock |
| 16 | Opacity="0.7" |
| 17 | FontSize="12" |
| 18 | TextWrapping="Wrap" |
| 19 | Text="Paste the .ROBLOSECURITY value from your browser cookies. This grants the full purchasing surface." /> |
| 20 | <PasswordBox x:Name="CookieBox" PlaceholderText=".ROBLOSECURITY" /> |
| 21 | <StackPanel Orientation="Horizontal" Spacing="8"> |
| 22 | <TextBox x:Name="CookieLabelBox" Width="200" PlaceholderText="label (optional)" /> |
| 23 | <Button Click="OnAddCookie" Content="Add account" Style="{StaticResource AccentButtonStyle}" /> |
| 24 | </StackPanel> |
| 25 | </StackPanel> |
| 26 | </Border> |
| 27 | |
| 28 | <Border Style="{StaticResource CardBorder}"> |
| 29 | <StackPanel Spacing="12"> |
| 30 | <TextBlock FontWeight="SemiBold" Text="2. Username, password and 2FA" /> |
| 31 | <TextBlock |
| 32 | Opacity="0.7" |
| 33 | FontSize="12" |
| 34 | TextWrapping="Wrap" |
| 35 | Text="Signs in through auth.roblox.com. If Roblox raises a captcha challenge the solver window opens automatically." /> |
| 36 | <TextBox x:Name="UsernameBox" PlaceholderText="username or email" /> |
| 37 | <PasswordBox x:Name="PasswordBox" PlaceholderText="password" /> |
| 38 | <StackPanel x:Name="TwoStepPanel" Spacing="8" Visibility="Collapsed"> |
| 39 | <TextBlock x:Name="TwoStepHint" FontSize="12" Opacity="0.8" /> |
| 40 | <StackPanel Orientation="Horizontal" Spacing="8"> |
| 41 | <TextBox x:Name="CodeBox" Width="140" PlaceholderText="2FA code" /> |
| 42 | <Button Click="OnSubmitCode" Content="Verify" /> |
| 43 | </StackPanel> |
| 44 | </StackPanel> |
| 45 | <Button Click="OnLogin" Content="Sign in" Style="{StaticResource AccentButtonStyle}" /> |
| 46 | </StackPanel> |
| 47 | </Border> |
| 48 | |
| 49 | <Border Style="{StaticResource CardBorder}"> |
| 50 | <StackPanel Spacing="12"> |
| 51 | <TextBlock FontWeight="SemiBold" Text="3. OAuth authorize (not recommended)" /> |
| 52 | <TextBlock |
| 53 | Opacity="0.7" |
| 54 | FontSize="12" |
| 55 | TextWrapping="Wrap" |
| 56 | Text="Roblox Open Cloud OAuth 2.0 with PKCE. Read only: the granted scopes cannot buy items or claim groups, so sweeps and snipes stay disabled on these accounts." /> |
| 57 | <TextBox x:Name="ClientIdBox" PlaceholderText="client id" /> |
| 58 | <TextBox x:Name="RedirectBox" Text="http://localhost:8790/callback" /> |
| 59 | <StackPanel Orientation="Horizontal" Spacing="8"> |
| 60 | <Button Click="OnOauthUrl" Content="Open authorize page" /> |
| 61 | <TextBox x:Name="OauthCodeBox" Width="220" PlaceholderText="paste code" /> |
| 62 | <Button Click="OnOauthExchange" Content="Link" /> |
| 63 | </StackPanel> |
| 64 | </StackPanel> |
| 65 | </Border> |
| 66 | |
| 67 | <TextBlock x:Name="StatusText" FontSize="12" Opacity="0.85" TextWrapping="Wrap" /> |
| 68 | |
| 69 | <Border Style="{StaticResource CardBorder}"> |
| 70 | <StackPanel Spacing="12"> |
| 71 | <StackPanel Orientation="Horizontal" Spacing="8"> |
| 72 | <TextBlock FontWeight="SemiBold" Text="Stored accounts" VerticalAlignment="Center" /> |
| 73 | <Button Click="OnRefresh" Content="Refresh" /> |
| 74 | </StackPanel> |
| 75 | <ListView |
| 76 | x:Name="AccountList" |
| 77 | MaxHeight="420" |
| 78 | SelectionMode="Single" |
| 79 | SelectionChanged="OnAccountSelected"> |
| 80 | <ListView.ItemTemplate> |
| 81 | <DataTemplate x:DataType="models:AccountSummary"> |
| 82 | <Grid Padding="4" ColumnSpacing="12"> |
| 83 | <Grid.ColumnDefinitions> |
| 84 | <ColumnDefinition Width="*" /> |
| 85 | <ColumnDefinition Width="Auto" /> |
| 86 | <ColumnDefinition Width="Auto" /> |
| 87 | </Grid.ColumnDefinitions> |
| 88 | <StackPanel> |
| 89 | <TextBlock FontWeight="SemiBold" Text="{x:Bind Username}" /> |
| 90 | <TextBlock FontSize="11" Opacity="0.65" Text="{x:Bind Label}" /> |
| 91 | </StackPanel> |
| 92 | <TextBlock |
| 93 | Grid.Column="1" |
| 94 | VerticalAlignment="Center" |
| 95 | FontSize="11" |
| 96 | Opacity="0.65" |
| 97 | Text="{x:Bind Method}" /> |
| 98 | <TextBlock |
| 99 | Grid.Column="2" |
| 100 | VerticalAlignment="Center" |
| 101 | FontFamily="Consolas" |
| 102 | FontSize="11" |
| 103 | Opacity="0.65" |
| 104 | Text="{x:Bind UserId}" /> |
| 105 | </Grid> |
| 106 | </DataTemplate> |
| 107 | </ListView.ItemTemplate> |
| 108 | </ListView> |
| 109 | <Button Click="OnRemove" Content="Remove selected" /> |
| 110 | </StackPanel> |
| 111 | </Border> |
| 112 | |
| 113 | </StackPanel> |
| 114 | </ScrollViewer> |
| 115 | </Page> |