Giter Club home page Giter Club logo

Comments (5)

jkroepke avatar jkroepke commented on June 26, 2024 1

It could be possible that your OIDC provide doesn't provide refresh tokens? As I know, with default configuration, Azure AD is able to issue refresh tokens.

At openvpn-auth-oauth2 site you can disable the check with --oauth2.refresh.validate-user=false

from openvpn-auth-oauth2.

freeddser avatar freeddser commented on June 26, 2024

It could be possible that your OIDC provide doesn't provide refresh tokens? As I know, with default configuration, Azure AD is able to issue refresh tokens.

At openvpn-auth-oauth2 site you can disable the check with --oauth2.refresh.validate-user=false

CONFIG_OAUTH2_REFRESH_EXPIRES=8h
in OpenVPN server.conf
auth-gen-token 28800 external-auth

Thank you for getting back to me. The current issue is that I have set an expiration time of 8 hours,
But it automatically disconnected after an hour. I looked at the log prompt reauth, then failed. then I need to re-login with Azure account.

Does the program initiate this hourly reauth?

from openvpn-auth-oauth2.

jkroepke avatar jkroepke commented on June 26, 2024

Does the program initiate this hourly reauth?

No, its an OpenVPN default. And can be controlled with the parameter reneg-sec which is 3600 by default (1 hour).

Read more here: https://openvpn.net/community-resources/reference-manual-for-openvpn-2-6/

from openvpn-auth-oauth2.

freeddser avatar freeddser commented on June 26, 2024

Does the program initiate this hourly reauth?

No, its an OpenVPN default. And can be controlled with the parameter reneg-sec which is 3600 by default (1 hour).

Read more here: https://openvpn.net/community-resources/reference-manual-for-openvpn-2-6/

thanks

from openvpn-auth-oauth2.

freeddser avatar freeddser commented on June 26, 2024

I added the reneg-sec 28800 in the client.ovpn for this issues

from openvpn-auth-oauth2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.