Skip to content
Discussion options

You must be logged in to vote

Hi zendbelt,
thank you for your rapid reply.

In fact I do use the latest module version, the problem occurs in all versions later than 2.4.14.

After days of research I was able to fix it:

On the Microsoft identity platform (requests made to the v2.0 endpoint), your app must explicitly request the offline_access scope, to receive refresh tokens.

Source: https://learn.microsoft.com/en-us/entra/identity-platform/scopes-oidc

So I set OIDCScope "openid profile email offline_access" and it works! I still cannot see why an old module version worked without this directive.

Maybe it'll be helpful to document this in the auth_openidc.conf file?

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by qds-soft
Comment options

You must be logged in to vote
1 reply
@qds-soft
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants