eisolutions

Results 2 comments of eisolutions

My working example ``` //https://github.com/jumbojett/OpenID-Connect-PHP $oidc = new \Jumbojett\OpenIDConnectClient('https://login.microsoftonline.com/{tenantId}/v2.0/', '{clientId}', '{clientSecret'); //v2.0 in URL is important!!! $oidc->addScope(['profile','openid','email','offline_access','https://outlook.office.com/IMAP.AccessAsUser.All','User.Read']); $oidc->authenticate(); $username = $oidc->requestUserInfo('preferred_username'); //or use static $username='[email protected]'; $token = $oidc->getAccessToken(); $cm =...

You can authorize user in browser, then save access token and refresh token eg. in database and transfer to your daemon app. Daemon app can refresh access token when it...