MBS FileMaker Plugin Example Databases

JWT RS256

All examples are included with download of MBS FileMaker Plugin.

JWT RS256.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts1
Value Lists0
Custom Functions0
Custom Menus0
File Options
Default custom menu set[Standard FileMaker Menus]
When opening file
Minimum allowed version12.0
Login usingAccount Name; Account= Admin
Allow user to save passwordOff
Require iOS passcodeOff
Switch to layoutOff
Hide all toolbarsOff
Script triggers
OnFirstWindowOpenOff
OnLastWindowCloseOff
OnWindowOpenOff
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
JWT RS256
6 fields defined, 1 record
JWT RS256

Fields

Table Name: JWT RS256 - 6 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
KeyNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      HeaderNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          OutputNormal, TextAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
              PasswordNormal, TextAuto-Enter:
              • Allow editing
              Validation:
              • Only during data entry
              Storage:
              • Repetitions: 1
              • Indexing: None
              • Automatically create indexes as needed
              • Index Language: German
                  PayloadNormal, TextAuto-Enter:
                  • Allow editing
                  Validation:
                  • Only during data entry
                  Storage:
                  • Repetitions: 1
                  • Indexing: None
                  • Automatically create indexes as needed
                  • Index Language: German
                      DescriptionNormal, TextAuto-Enter:
                      • Allow editing
                      Validation:
                      • Only during data entry
                      Storage:
                      • Repetitions: 1
                      • Indexing: None
                      • Automatically create indexes as needed
                      • Index Language: German

                            Layout Objects: JWT RS256

                            Regular Fields

                            Field Name: JWT RS256::Key
                            Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                            • Top: 52 pt
                            • Left: 138 pt
                            • Bottom: 182 pt
                            • Right: 690 pt
                            • Anchoring: Left and Right, Top
                            Field Format:
                            • Edit Box
                            Field Behavior:
                            • Allow field to be entered: In Find mode, In Browse mode
                            • Touch keyboard type: Default for Data Type
                            • Go to next field using: Tab key
                            Yes

                            Field Name: JWT RS256::Header
                            Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                            • Top: 207 pt
                            • Left: 138 pt
                            • Bottom: 291 pt
                            • Right: 690 pt
                            • Anchoring: Left and Right, Top
                            Field Format:
                            • Edit Box
                            Field Behavior:
                            • Allow field to be entered: In Find mode, In Browse mode
                            • Touch keyboard type: Default for Data Type
                            • Go to next field using: Tab key
                            Yes

                            Field Name: JWT RS256::Output
                            Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                            • Top: 378 pt
                            • Left: 138 pt
                            • Bottom: 462 pt
                            • Right: 690 pt
                            • Anchoring: Left and Right, Top and Bottom
                            Field Format:
                            • Edit Box
                            Field Behavior:
                            • Allow field to be entered: In Find mode, In Browse mode
                            • Touch keyboard type: Default for Data Type
                            • Go to next field using: Tab key
                            Yes

                            Field Name: JWT RS256::Password
                            Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                            • Top: 183 pt
                            • Left: 138 pt
                            • Bottom: 204 pt
                            • Right: 690 pt
                            • Anchoring: Left and Right, Top
                            Field Format:
                            • Edit Box
                            Field Behavior:
                            • Allow field to be entered: In Find mode, In Browse mode
                            • Touch keyboard type: Default for Data Type
                            • Go to next field using: Tab key
                            Yes

                            Field Name: JWT RS256::Payload
                            Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                            • Top: 294 pt
                            • Left: 138 pt
                            • Bottom: 378 pt
                            • Right: 690 pt
                            • Anchoring: Left and Right, Top
                            Field Format:
                            • Edit Box
                            Field Behavior:
                            • Allow field to be entered: In Find mode, In Browse mode
                            • Touch keyboard type: Default for Data Type
                            • Go to next field using: Tab key
                            Yes

                            Field Name: JWT RS256::Description
                            Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                            • Top: 465 pt
                            • Left: 138 pt
                            • Bottom: 582 pt
                            • Right: 690 pt
                            • Anchoring: Left and Right, Bottom
                            Field Format:
                            • Edit Box
                            Field Behavior:
                            • Allow field to be entered: In Find mode, In Browse mode
                            • Touch keyboard type: Default for Data Type
                            • Go to next field using: Tab key
                            Yes

                            Buttons

                            Button PropertiesCoordinatesScript/Script Step
                              Type:
                            • Text: Calculate
                            • Top: 208 pt
                            • Left: 698 pt
                            • Bottom: 247 pt
                            • Right: 863 pt
                            • Anchoring: Right, Top
                            Perform Script [ “calculate” ]

                            Scripts:


                            Script Hierarchy

                            calculate

                            Script Namecalculate
                            Run script with full access privilegesOff
                            Include In MenuYes
                            Layouts that use this script
                            Scripts that use this script
                              Script Definition
                              Script Steps
                              • Set Field [ JWT RS256::Output; Let ( [ secret = "secretkey"; header = JWT RS256::Header; payload = JWT RS256::Payload; encodedString = MBS( "Text.EncodeToBase64URL"; header; "UTF-8" ) & "." & MBS( "Text.EncodeToBase64URL"; payload; "UTF-8" ); // calculate hash hash = MBS( "RSA.Sign"; "SHA256"; "Text"; encodedString; "UTF-8"; "Text"; JWT RS256::Key; "UTF-8"; "text"; JWT RS256::Password; "UTF-8"; "base64url"; ""); // and built final result: result = encodedString & "." & hash ]; result ) ]
                              Fields used in this script
                              Scripts used in this script
                                Layouts used in this script
                                  Tables used in this script
                                  Table occurrences used by this script
                                  Custom Functions used by this script
                                    Custom menu set used by this script

                                      Download example: JWT RS256

                                      Used functions:




                                      Links
                                      MBS Xojo Plugins