contacts
and calendar
(you can think of them as microservices)read:contacts
and read:calendar
access_token
that works for both APIsOrganizer Service
. We will then create two scopes to demonstrate how you can use the Implicit Flow to access the calendar
and contacts
APIs from the SPA.
You need to complete the following steps:
http://localhost:3000
and http://localhost:3000/callback.html
.Organizer Service
and set its unique identifier to organize
. By default, the signing algorithm for the tokens obtained for this API is RS256, which you should leave as is. To learn more, read Register APIs.
read
from one API called calendar
and another one called contacts
, so you will need to create the following permissions:
read:calendar
read:contacts
/authorize
endpoint). To learn more about the call’s parameters, see our tutorial: Call Your API Using the Authorization Code Flow with PKCE.
codeblockOld.header.login.logInButton codeblockOld.header.login.configureSnippet
checkSession()
to see if a session exists. If the session does not exist, you can then log the user out of the application. The same polling method can be used to implement silent authentication for a Single Sign-on (SSO) scenario.
The poll interval between checks to checkSession()
should be at least 15 minutes between calls to avoid any issues in the future with rate limiting of this call.