Adding More Ephemeral Keys & Secondary Authentication Checks (Advanced)

Secondary authentication checks for ephemeral key registration

* Our SDK takes care of the below features. Please read for more information only if you are an advanced user.

In this article we’re going to explore secondary authentication checks for ephemeral key registration – you may have found when following the steps in the article on ephemeral key registration and unlocking that Doordeck responded with a HTTP 423 when trying to add the ephemeral key.  

When setting an ephemeral key for a new user, it will almost always be accepted immediately (because it’s a new user!), but if the user wants to use a new device, they need a new ephemeral key (unless you have a secure way to get the first ephemeral key from the other device, such as through keychain sync), in this case Doordeck may want to verify the user is who they claim – we tell you about this through the use of HTTP 423.

We have a few options for verifying the user, email, SMS and a phone call – all of these are white labelled (or barely labelled at all) so it looks like it’s coming from your App rather than from Doordeck – we’ll try and select the most appropriate communication method based on the fields you’ve provided in the OpenID auth token, we’ll look for a verified communication method with preference for email then SMS as this is what user’s have come to expect, but you can override this. Let’s ask for a secondary authentication code to be SMS’ to us:

  • curl “https://api.doordeck.com/auth/certificate/verify?method=SMS”  \
    -X POST \
    -H “Authorization: Bearer $TOKEN” \
    -H ‘content-type: application/json’ \
    –data-binary “{\”ephemeralKey\”:\”`cat public.base64.key`\”}”

You’ll note, that just like when we registered the ephemeral key last time, we need to specify the entire ephemeral key at the start of the verification process.

If your OpenID auth token includes the telephone field and has marked it as verified, you should receive an SMS shortly – the code in the SMS is valid for 5 minutes.

You can remove ?method=SMS and Doordeck will auto-select a method, or you can specify one of the following:

1. SMS
2. TELEPHONE
3. EMAIL

Bear in mind, if you specify a method but don’t have the corresponding field in the OpenID auth token, you’ll get an error message.

After acquiring the verification code from the user, you should sign it with your ephemeral key – almost exactly like you’d sign the JWT used in the unlock request from the previous article, but this time we need standard Base64 encoding rather than Base64Url (urgh!); we can use the commonly available base64 and openssl commands to do this.

  • # Sign code
    echo -n ‘12345678’ > code
    openssl pkeyutl -sign -inkey private.key  -rawin -in code | base64

You can now send Doordeck the signature and we’ll know that both the verification code is what we expect and that you’ve used the same ephemeral key for verifying – we’ll then return a certificate chain that you can use immediately.

  • curl “https://api.doordeck.com/auth/certificate/check”  \
    -X POST \
    -H “Authorization: Bearer $TOKEN” \
    -H ‘content-type: application/json’ \
    –data-binary “{\”verificationSignature\”:\”BASE64-ENCODED-SIGNATURE”}”

Our SDKs have this process setup already – you can check early if the user will need to go through a verification process and decide to perform it as they login or wait until they go to unlock a door, both have advantages and disadvantages.

 

William Bainborough

Board of Directors

William is an experienced British entrepreneur, founder, and accomplished board executive and advisor for a number of businesses. He is the CEO and co-founder of Doordeck, the world’s only true cloud-based access control aggregator. He is also the managing director and founder of Group Secure, a leader in providing security, CCTV, and access control solutions, products, and installation for high-net-worth individuals in the UK. 

William established his first business at just seventeen and brings 20-plus years of in-depth experience and industry knowledge. He has a proven track record for building businesses from the ground up—and then leading them to profitability and a successful exit across a myriad of sectors including hospitality, retail, security, telecommunications, and e-commerce. William’s leadership, vision, and experience in creating cutting-edge SaaS-based technology platforms will prove invaluable for Sentry Interactive moving forward.

Denis Hébert

CHAIRMAN & CEO

Hébert began his career at Honeywell International where he held several leadership positions including Managing Director for the Automation and Controls business in France and eventually President of the NexWatch Corporation from 1999-2002. Hébert led HID Global as President & CEO over a transformative 12-year period from 2002-2015, where he provided strategic guidance and grew the business tenfold through a mix of strong organic and acquisitive growth. Most recently, Hébert was President of Feenics Corporation which is a cloud-based access control company that was successfully sold to ACRE LLC at the end of 2021. Hébert also served on the Board of Directors for the Security Industry Association (SIA) from 2009-2020 and was nominated to be Chairman of the Board for SIA from 2016-2018. He is currently Chairman of the Board for Nightingale Security based in Newark, CA.

Stephen Taylor Matthews

Board of Directors
Stephen is a very accomplished attorney, member of the Texas State Bar, licensed commercial real estate broker, and an avid philanthropist. He is an experienced executive board member, serving in leadership positions for more than 20 community councils and corporate boards—ranging from Boy Scouts of America to the ABBA Business Leaders Council, and most recently the American Bank BOD, the Real Estate Council of Austin, and the Marbridge Foundation BOT. With more than 35 years experience, Stephen and his firm, Barrond & Adler, L.L.P. are devoted to eminent domain cases in Texas.

Jon Davis

Board of Directors

Mr. Davis is an Experienced corporate board member, having served on boards of public, private equity-backed, and venture-backed companies. Jon possesses deep industry expertise in dairy, food processing, food technology and manufacturing, and food, beverage, and entertainment services. 

During Jon’s tenure of 25 plus years, he’s led operations, research and development, and mergers and acquisitions. He’s served as CEO and has been the founder and active board member for many successful enterprises—from startups to billion-dollar corporations. While COO and CEO of Davisco Foods International, Jon built a state-of-the-art cheese plant which was awarded the United States Dairy processing plant of the year in 2005 by Dairy Foods magazine. Currently, Jon is active with several non-dairy projects, including investments in local real estate, the Wayzata Brewworks, and his latest venture the new CōV restaurant in Edina’s Galleria.

Joe Caldwell

Founder and Chairman of the Board

Joe is an American entrepreneur, investor, and accomplished executive. He has co-founded, founded, and led many successful businesses, including US Internet, a leading fiber internet service provider, Securence, a leading provider of email filtering software, and Ravon, an industry-leading digital voice communications service. 

It was Joe’s venture, Municipal Parking Services (MPS), that inspired him in 2020 to start Sentry Interactive, an advanced touchless and staffless detection platform.

Caldwell currently serves as CEO and Chairman of the Board for Municipal Parking Services (MPS), a global tech company based in Austin, TX responsible for inventing and patenting technologies that assist in parking and security enforcement.

Joe was named one of Minnesota’s 500 Most Powerful Business Leaders for the past two years—and is a seasoned corporate board member. He’s served on boards of public, private equity-backed, and venture-backed companies—and has deep industry expertise in all aspects of digital technology.

Jason Bohrer

Board of Directors

Jason Bohrer is one of the visionaries behind our mission to bring people back together safely and securely, in any environment, through Sentry’s advanced digital communications and detection platform. With over two decades of senior leadership experience, Jason’s track record of success spans across sales, operations, product innovation, strategy, and technology for domestic and global companies like Bexar Technology Partners, CPI Card Group, HID Global, and Motorola, Inc. Prior to launching Sentry Interactive, Jason was actively involved with several key technology transitions across multiple industries, including the contact and contactless EMV transitions in the U.S. payments industry and the adoption of smart card and mobile technologies in the global access and identity market. Jason was an inaugural member of the University of Chicago Executive Institute and holds a bachelor’s degree in Economics from the University of Texas at Austin. He also serves as the Executive Director for two industry-leading not-for-profit organizations: the Secure Technology Alliance and the U.S. Payments Forum.
Brent Terry

Brent Terry

Chief Operating Officer
Brent Terry leads the operations and solutions organizations at Sentry. This includes all product innovation, development, and operations management. A veteran in the technology space, Brent has more than 30 years of experience across a myriad of industries, like physical security technology and building automation, SAAS, hardware and software product development, internet, digital TV, interactive TV, digital media, telecommunications, and medical products and services. Prior to Sentry, Brent has spun up successful startups and led high-performing teams for some of the biggest global, Fortune 500 companies, including ARRIS, Conerco, Motive Communications, SeaChange International, and IBM. Brent holds a BS in Computer Science from the University of Louisiana. He also is the committee Chairman and Program Director for a non-profit organization responsible for the rollout of smart cards for physicians and first responders.