Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question: How to get refresh_token from Azure SSO #281

Open
cdebadri opened this issue Oct 4, 2023 · 1 comment
Open

question: How to get refresh_token from Azure SSO #281

cdebadri opened this issue Oct 4, 2023 · 1 comment
Assignees
Labels

Comments

@cdebadri
Copy link

cdebadri commented Oct 4, 2023

I'm using caddy-security to perform the authentication to my site. I'm using Azure Oauth2.0 for SSO. Now post authentication I'm having the access_token as a cookie on my site. But I'm not able to get the refresh_token. Is there configuration I can enable to get the refresh_token as well? Here's an example of the config that I'm using:

{
  security {
    oauth identity provider azure-auth {
        realm azure
        driver azure
        client_id ENV{data_gov_portal_client_id}
        client_secret ENV{data_gov_portal_client_secret}
        scopes openid email profile offline_access
        tenant_id ENV{tenant_id}
    }
    authentication portal authn-az {
        enable identity provider azure-auth
    }
    authorization policy authz-policy {
      set auth url /auth/oauth2/azure
      allow roles authp/admin authp/guest anonymous
      acl default allow
    }
  }
}
@cdebadri cdebadri added need triage question Further information is requested labels Oct 4, 2023
@greenpau greenpau added feature and removed question Further information is requested need triage labels Oct 4, 2023
@greenpau
Copy link
Owner

greenpau commented Oct 4, 2023

@cdebadri , this is a feature request. I don't have access to Azure environment. If you want to have this implemented, I would need a tenant from you where I can tinker with the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants