Re: Django Microsoft Authentication Backend not succeeding on new deployments

2021-01-30 Thread Ryan Nowakowski
On Fri, Jan 29, 2021 at 08:58:48AM -0800, Larry Martell wrote:
> We finally found the issue - I said we had the same version of all the
> python packages but we did not - the new system had 2.0.1 version of
> pyjwt. When we downgraded to 1.7.1 it started working again. The
> requirements file for Django Microsoft Authentication Backend have
> pyjwt [required: Any]
 
Yuup!  That kind of thing has bitten me more than once.  I end up
pinning the version of the dependency in requirements.txt to the one I
know works.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/20210130183020.GM9805%40fattuba.com.


Re: Django Microsoft Authentication Backend not succeeding on new deployments

2021-01-29 Thread Larry Martell
On Sat, Jan 23, 2021 at 7:41 PM Ryan Nowakowski  wrote:
>
> On Sat, Jan 23, 2021 at 11:05:14AM -0800, Larry Martell wrote:
> > On Sat, Jan 23, 2021 at 8:14 AM Ryan Nowakowski  wrote:
> > >
> > > A couple of places to look:
> > >
> > > 1. Different domains on the new boxes? You'll need to add the new 
> > > callback urls on the Microsoft side.
> > > 2. Different version of Python on the new boxes?
> >
> > Same domain name, same version of python and all python packages.
> > There are some minor revision differences in a bunch of OS level
> > packages. Could that be a factor?
> >
>
> Did you create your virtualenv with --system-site-packages?  If not then
> I don't think the OS packages will be a factor.

We finally found the issue - I said we had the same version of all the
python packages but we did not - the new system had 2.0.1 version of
pyjwt. When we downgraded to 1.7.1 it started working again. The
requirements file for Django Microsoft Authentication Backend have
pyjwt [required: Any]

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACwCsY4d_%3D3Q660gF%3DtrcAQmj7bkG%2BMnXaYf%3DgCt8WH0UnCkjg%40mail.gmail.com.


Re: Django Microsoft Authentication Backend not succeeding on new deployments

2021-01-23 Thread Ryan Nowakowski
On Sat, Jan 23, 2021 at 11:05:14AM -0800, Larry Martell wrote:
> On Sat, Jan 23, 2021 at 8:14 AM Ryan Nowakowski  wrote:
> >
> > A couple of places to look:
> >
> > 1. Different domains on the new boxes? You'll need to add the new callback 
> > urls on the Microsoft side.
> > 2. Different version of Python on the new boxes?
> 
> Same domain name, same version of python and all python packages.
> There are some minor revision differences in a bunch of OS level
> packages. Could that be a factor?
> 

Did you create your virtualenv with --system-site-packages?  If not then
I don't think the OS packages will be a factor.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/20210124034136.GF9805%40fattuba.com.


Re: Django Microsoft Authentication Backend not succeeding on new deployments

2021-01-23 Thread Larry Martell
On Sat, Jan 23, 2021 at 8:14 AM Ryan Nowakowski  wrote:
>
> A couple of places to look:
>
> 1. Different domains on the new boxes? You'll need to add the new callback 
> urls on the Microsoft side.
> 2. Different version of Python on the new boxes?

Same domain name, same version of python and all python packages.
There are some minor revision differences in a bunch of OS level
packages. Could that be a factor?

>
> On January 22, 2021 2:51:30 PM CST, Larry Martell  
> wrote:
>>
>> I have an app deployed in many places and it uses Django Microsoft 
>> Authentication Backend. Starting yesterday when we deploy the app the auth 
>> is now not working. We get back Failed to authenticate you for an unknown 
>> reason. Please try again later. We can see in the azure logs that the login 
>> was successful. We have the same version of Django Microsoft Authentication 
>> Backend installed, but for some reason on newly built boxes it is failing 
>> but older ones it is succeeding. What could be causing this? What can we 
>> check to track down what the issue may be?
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/963BCE7D-841C-4433-9081-55906AE11F31%40fattuba.com.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACwCsY6A-tBxEVFWLp5TWju2BgZPtp_vh0bVKJ1aCtJENEOWiw%40mail.gmail.com.


Re: Django Microsoft Authentication Backend not succeeding on new deployments

2021-01-23 Thread Ryan Nowakowski
A couple of places to look:

1. Different domains on the new boxes? You'll need to add the new callback urls 
on the Microsoft side.
2. Different version of Python on the new boxes?

On January 22, 2021 2:51:30 PM CST, Larry Martell  
wrote:
>I have an app deployed in many places and it uses Django Microsoft
>Authentication Backend. Starting yesterday when we deploy the app the
>auth
>is now not working. We get back Failed to authenticate you for an
>unknown
>reason. Please try again later. We can see in the azure logs that the
>login
>was successful. We have the same version of Django Microsoft
>Authentication
>Backend installed, but for some reason on newly built boxes it is
>failing
>but older ones it is succeeding. What could be causing this? What can
>we
>check to track down what the issue may be?
>
>-- 
>You received this message because you are subscribed to the Google
>Groups "Django users" group.
>To unsubscribe from this group and stop receiving emails from it, send
>an email to django-users+unsubscr...@googlegroups.com.
>To view this discussion on the web visit
>https://groups.google.com/d/msgid/django-users/CACwCsY7LB6ZUHfCDYRZJVHquFp1ZcMajUggCNWASLHLkwT2q_w%40mail.gmail.com.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/963BCE7D-841C-4433-9081-55906AE11F31%40fattuba.com.


Django Microsoft Authentication Backend not succeeding on new deployments

2021-01-22 Thread Larry Martell
I have an app deployed in many places and it uses Django Microsoft
Authentication Backend. Starting yesterday when we deploy the app the auth
is now not working. We get back Failed to authenticate you for an unknown
reason. Please try again later. We can see in the azure logs that the login
was successful. We have the same version of Django Microsoft Authentication
Backend installed, but for some reason on newly built boxes it is failing
but older ones it is succeeding. What could be causing this? What can we
check to track down what the issue may be?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACwCsY7LB6ZUHfCDYRZJVHquFp1ZcMajUggCNWASLHLkwT2q_w%40mail.gmail.com.