Implementing OAuth in Custom FileMaker Application

This article is a continuation of the FileMaker OAuth 2.0 Authentication  Here we will show you how OAuth works with some sample code and how it can be used to log on to Custom FileMaker application.Steps Involved-

  1. Configure FileMaker Server / Cloud
  2. Create Application and configure it on provider’s account
  3. Set up Groups or Accounts in FileMaker file

1. Configure FileMaker Server / Cloud

The first step to use OAuth is to enable External Authentication on FileMaker Server/Cloud.

Enabling EA on FileMaker Server: First, you need to login to Admin Console of FileMaker Server and then you can go to Database Server>>Security and in Client Authentication area select FileMaker and External Server Accounts and then enable the OAuth Providers.

Enabling EA on FileMaker Server article 2 image 1

Enabling EA on FileMaker Cloud: In this case, you need to login to Admin Console of FileMaker Cloud and then you can go to Configuration>> Client Authentication, and from there you can enable OAuth Identity Providers.

Enabling EA on FileMaker Cloud article 2 image 2

2. Create Application and configure it on provider’s account

Now that we have enabled OAuth Authentication next we have to Create OAuth Client ID Credentials on provider’s account.

Amazon

  • Sign up at- https://login.amazon.com/manageApps
  • Create OAuth Client ID Credential
  • Set Allowed/Authorized Return URLs (https://FullyQualifiedDomain/oauth/redirect)
    in our case FQD: https://metasys.fmi.filemaker-cloud.com
  • Copy Client ID and Client secret into FileMaker Server / Cloud
  • Set up Accounts in FileMaker file

Creating OAuth on Amazon article 2 image 3.png

FileMaker Cloud article 2 image 4

Manage security

Google

  • Sign up at- https://console.developers.google.com
  • Create OAuth client ID Credential
  • Set Allowed/Authorized Return URLs (https://FullyQualifiedDomain/oauth/redirect)
    in our case FQD: https://metasys.fmi.filemaker-cloud.com
  • Copy Client ID, Client secret into FileMaker Server / Cloud
  • Set up Accounts in FileMaker file

Creating OAuth on Google article 2 image 6

FileMaker Cloud

Managing Contacts

Microsoft Azure

  • Sign up at- https://portal.azure.com
  • Create OAuth client ID Credential
  • Set Allowed/Authorized Return URLs (https://FullyQualifiedDomain/oauth/redirect)
    in our case FQD: https://metasys.fmi.filemaker-cloud.com
  • Copy Client ID, Client secret and Tenant ID into FileMaker Server / Cloud
  • Set up Accounts in FileMaker file

Creating OAuth on Microsoft Azure image 9

Image 10

Manage security Image 2

With Azure, we can also configure to log in with group

  • Create Group in Azure Active Directory
  • Add User to the GroupEnable Group Authentication in Application manifest (set “group membership claims”: “SecurityGroup”)
SHARE THIS POST
Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn

Leave a Reply

Your email address will not be published. Required fields are marked *