Open adombeck opened 1 week ago
Hi @adombeck! Can you please assign this to me? I am new here and I really want to contribute to the project. This issue seems to be a good issue to start with.
Thanks in advance!
@shiv-tyagi Sure, thanks for taking the initiative! :)
@adombeck Thanks! Just a small question! I read the docs to setup the development environment. I could not figure out how to get a ms entra id test environment for development. How do you do the testing? Is there any work around for that?
You need a Microsoft Entra tenant. I found this documentation on how to set up a free Microsoft Entra tenant for development, but I didn't try it out.
I managed to get an Entra tenant. Thanks for your help. I have created a PR. Please let me know the steps ahead. Really happy to submit my first PR involving functional changes to authd. 🤩
As explained in this code comment, we should ideally always refresh the token during login when online, not only when the token is expired. We didn't see a way to do that with the
golang.org/x/oauth2
package, but I found one now:We can set the token expiry date to a date in the past before calling
oauth2.Config.TokenSource
: