Eric Mortensen
Results
2
comments of
Eric Mortensen
Forgot to add that adding the Origin header solved the issue and I was authenticated as expected.
apologies, the code I used was: func AzureADAuthMiddleware() gin.HandlerFunc { return func(c *gin.Context) { client, err := public.New("my-app-id", public.WithAuthority("https://login.microsoftonline.com/my-tenant-id")) result, err := client.AcquireTokenInteractive(context.TODO(), []string{"openid"}, public.WithRedirectURI("http://localhost:8082")) if err != nil {...