From 1da83d0913588c44c50cc37ea7bce43fc8bf0c44 Mon Sep 17 00:00:00 2001 From: Phillip Rasmussen Date: Wed, 10 Jul 2019 16:48:16 +1200 Subject: [PATCH] checkAccessToken using refresh_token authenticate() now writes the new refresh token to the DB. Two new functions; checkAccessToken() getAccessTokenRefresh() Call application.security.userdirectories.MICROSOFTUD.checkAccessToken() to check that the access_token hasn't expires and if so obtain an new one with the refresh_token. --- packages/security/MicrosoftDirectory.cfc | 53 +++++++++++++++++++++++- 1 file changed, 52 insertions(+), 1 deletion(-) diff --git a/packages/security/MicrosoftDirectory.cfc b/packages/security/MicrosoftDirectory.cfc index f318886..6803a99 100644 --- a/packages/security/MicrosoftDirectory.cfc +++ b/packages/security/MicrosoftDirectory.cfc @@ -39,6 +39,10 @@ + + + + @@ -248,6 +252,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -313,6 +353,17 @@ + + + + + + + + + + + @@ -332,4 +383,4 @@ - \ No newline at end of file +