Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
MBS FileMaker Plugin Example Databases
Google OAUTH 2 example
All examples are included with download of MBS FileMaker Plugin.
Overview | |
Tables | 1 |
Relationships | 0 |
Layouts | 1 |
Scripts | 3 |
Value Lists | 0 |
Custom Functions | 2 |
Custom Menus | 0 |
File Options | |
Default custom menu set | [Standard FileMaker Menus] |
When opening file | |
Minimum allowed version | 12.0 |
Login using | Account Name; Account= Admin |
Allow user to save password | Off |
Require iOS passcode | Off |
Switch to layout | Off |
Hide all toolbars | Off |
Script triggers | |
OnFirstWindowOpen | Off |
OnLastWindowClose | Off |
OnWindowOpen | Off |
OnWindowClose | Off |
OnFileAVPlayerChange | Off |
Thumbnail Settings | |
Generate Thumbnails | On; Temporary |
Table Name |
Statistics
| Occurrences in Relationship Graph |
Google OAUTH 2 example |
14 fields defined, 1 record
| Google OAUTH 2 example |
Layout Objects: Google OAUTH 2 example
Field Name: Google OAUTH 2 example::client_secret | |||||
Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes |
Field Name: Google OAUTH 2 example::client_id | |||||
Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes |
Field Name: Google OAUTH 2 example::curl_result_as_text | |||||
Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes |
Field Name: Google OAUTH 2 example::curl_header_as_text | |||||
Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes |
Field Name: Google OAUTH 2 example::device_code | |||||
Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes |
Field Name: Google OAUTH 2 example::user_code | |||||
Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes |
Field Name: Google OAUTH 2 example::verification_url | |||||
Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes |
Field Name: Google OAUTH 2 example::expires_in | |||||
Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes |
Field Name: Google OAUTH 2 example::interval | |||||
Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes |
Field Name: Google OAUTH 2 example::access_token | |||||
Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes |
Field Name: Google OAUTH 2 example::token_type | |||||
Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes |
Field Name: Google OAUTH 2 example::token_expires_in | |||||
Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes |
Field Name: Google OAUTH 2 example::id_token | |||||
Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes |
Field Name: Google OAUTH 2 example::refresh_token | |||||
Field Properties | Coordinates | Field Format | Field Behavior | Quick Find | |
|
| Field Format:
| Field Behavior:
| Yes |
Button Properties | Coordinates | Script/Script Step | ||||
|
| Perform Script [ “MonkeyBread Post using Curl to obtain user code” ] Scripts: |
Button Properties | Coordinates | Script/Script Step | ||||
|
| Open URL [ Google OAUTH 2 example::verification_url ]
[ No dialog ] Fields: |
Button Properties | Coordinates | Script/Script Step | ||||
|
| Perform Script [ “MonkeyBread Post using Curl to obtain access and refresh tokens” ] Scripts: |
Button Properties | Coordinates | Script/Script Step | ||||
|
| Open URL [ "https://www.googleapis.com/oauth2/v1/userinfo?access_token=" & Google OAUTH 2 example::access_token ]
[ No dialog ] Fields: |
Button Properties | Coordinates | Script/Script Step | ||||
|
| Perform Script [ “MonkeyBread Post using Curl to refresh token” ] Scripts: |
MonkeyBread Post using Curl to obtain user code |
MonkeyBread Post using Curl to obtain access and refresh tokens |
MonkeyBread Post using Curl to refresh token |
Next Script: [MonkeyBread Post using Curl to obtain access and refresh tokens] |
Script Name | MonkeyBread Post using Curl to obtain user code |
Run script with full access privileges | Off |
Include In Menu | Yes |
Layouts that use this script | |
Scripts that use this script |
|
Script Definition | |
Script Steps |
|
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 |
|
Previous Script: [MonkeyBread Post using Curl to obtain user code] | Next Script: [MonkeyBread Post using Curl to refresh token] |
Script Name | MonkeyBread Post using Curl to obtain access and refresh tokens |
Run script with full access privileges | Off |
Include In Menu | Yes |
Layouts that use this script | |
Scripts that use this script |
|
Script Definition | |
Script Steps |
|
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 |
|
Previous Script: [MonkeyBread Post using Curl to obtain access and refresh tokens] |
Script Name | MonkeyBread Post using Curl to refresh token |
Run script with full access privileges | Off |
Include In Menu | Yes |
Layouts that use this script | |
Scripts that use this script |
|
Script Definition | |
Script Steps |
|
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 |
|
Function Name | Parameters | Availability | Definition | In Field Definitions | In Scripts |
GetNamedParameter | name;params | All accounts | // Version: Mar 18 2011, 11:30 // Retrives a named value from a string of serialized parameters // The params parameter is the serialized string If( GetValue ( params ; 1 ) = name; Middle ( params ; Position ( params ; ¶ ; 0 ; 2) + 1; GetValue ( params; 2 ) ); If( Length( params ) - (Position ( params ; ¶ ; 0 ; 2) + GetValue ( params; 2 ) ) > 0; GetNamedParameter( name; Right ( params ; Length( params ) - (Position ( params ; ¶ ; 0 ; 2) + GetValue ( params; 2 ) ) ) ); "?" ) ) |
| |
ParseData | theText;theStartTag;theEndTag;theOccurance | All accounts | // ParseData ( theText; theStartTag; theEndTag; theOccurance) // // Extract the text between two strings. // // Parameters: // theText = the text to parse // theStartTag = the string that comes before the text to extract // theEndTag = the string that comes after the text to extract // theOccurance = the instance of the text to extract // // Return Value: // the instance of text found in theText beween theStartTag and theEndTag based on theOccurance // Let ( [ theStartPos = Position ( theText ; theStartTag ; 1 ; theOccurance ) ; theResult = Case ( // ------------------------------ // If theStartTag was not found, return an empty string. theStartPos = 0 ; "" ; // ------------------------------ // ------------------------------ // If theStartTag was found, get the string we are looking for. theStartPos > 0 ; Let ( [ theStartPos = theStartPos + Length ( theStartTag ) ; theEndPos = Position ( theText ; theEndTag ; theStartPos ; 1 ) ; theLengthToKeep = theEndPos - theStartPos; theResult = Middle ( theText ; theStartPos ; theLengthToKeep ) ] ; theResult ) // ------------------------------ ) // End case ] ; theResult ) |
|
Menu Sets | Menus | In Scripts | In Layouts | Comments |
[Standard FileMaker Menus] |
|
Download example: Google OAUTH 2 example
Used functions: