News for hackers. Stuff that matters.
Re:Authlib: Python Authentication by v3ss0n on Monday June 26, 2023 @11:10AM (#36480646)
The most confusing thing about autjlib is this.

> Authlib offers two licenses, one is BSD for open source projects, one is a commercial license for closed source projects.

Re:Authlib: Python Authentication by malkarouri on Monday June 26, 2023 @11:28AM (#36480976)
How would that work? If it is used by an open source project that is BSD-licensed, and then that one was used in a closed source project, what then?

GPL propagates. Presumably BSD doesn't.

Re:Authlib: Python Authentication by progval on Monday June 26, 2023 @04:47PM (#36485607)
If the closed source project redistributes the BSD project, then it must comply with its license:

    Redistribution and use in source and binary forms [...] are permitted [...] provided that the following conditions are met:

    [...]

        * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 

    [...]
Re:Authlib: Python Authentication by judge2020 on Monday June 26, 2023 @11:26AM (#36480929)
It's not OSS. You can only use it for open source projects for free, otherwise you have to pay $1000/yr to use it.

Or $2,000 a year if your company wants to pay by invoice.

Re:Authlib: Python Authentication by roseway4 on Monday June 26, 2023 @01:06PM (#36482572)
The project is clearly licensed under the BSD License. See the LICENSE file and the in-file comments below. You can't both license under the standard BSD License and carve out commercial usage.

""" authlib ~~~~~~~

    The ultimate Python library in building OAuth 1.0, OAuth 2.0 and OpenID
    Connect clients and providers. It covers from low level specification
    implementation to high level framework integrations.

    :copyright: (c) 2017 by Hsiaoming Yang.
    :license: BSD, see LICENSE for more details.
"""
Re:Authlib: Python Authentication by notpushkin on Monday June 26, 2023 @01:27PM (#36482867)
It used to be AGPL, but they switched to BSD some time ago (and I think just forgot to change wording on the commercial license offering).
Re:Authlib: Python Authentication by zyx321 on Monday June 26, 2023 @11:26AM (#36480941)
Right, shouldn't it be GPL? BSD can be used in commercial products.

And even if the licensing of this project holds up as the author intends: If I make an Open Source project based on this, and someone else uses that in a commercial product, it would be 100% legal according to the BSD license.

Re:Authlib: Python Authentication by malkarouri on Monday June 26, 2023 @11:29AM (#36481001)
Exactly. Should be GPL licensed, and commercial projects can always buy commercial licenses.
Re:Authlib: Python Authentication by w0m on Monday June 26, 2023 @11:28AM (#36480981)
That might be his intention; at least force an intermediary OSS app before commercial use. else-payup.
Re:Authlib: Python Authentication by zyx321 on Monday June 26, 2023 @12:09PM (#36481655)
I could create a fork that differs only in name and maybe changes one or two default settings. See also: Chromium forks that disable telemetry and nothing else.
Re:Authlib: Python Authentication by OkayPhysicist on Monday June 26, 2023 @12:57PM (#36482421)
The commercial license comes with some added functionality, and support. I suspect the "for open source projects" and "for commercial software" labels aren't meant as restrictions (i.e., "Only these kinds of projects can use this license") but rather as suggestions ("If you have this kind of project, you'll probably want to use this license"). Though as it stands, it's definitely ambiguous, which is the last thing anyone wants from their licensing agreement.
Re:Authlib: Python Authentication by beardog on Monday June 26, 2023 @11:49AM (#36481345)
Don't some organizations want a business relationship for one reason or another?

From looking at the plans, the value is mostly in support for the commercial license, which is a pretty common approach. I think the wording is the only part that is odd, although it may be an intention nudge.

Also, based on a blurb from their sponsorship page, it appears they give security patches to commercial license holders before the public. https://github.com/sponsors/lepture

Re:Authlib: Python Authentication by kkirsche on Monday June 26, 2023 @12:30PM (#36481981)
This makes it a non-starter for a lot of teams I think, in large enterprises it can be difficult to keep track of licenses like this, especially if you have situations like open core but commercial tiers and whatnot.
Re:Authlib: Python Authentication by teraflop on Monday June 26, 2023 @01:07PM (#36482584)
The README on GitHub says:

> If your company is creating a closed source OAuth provider, it is strongly suggested that your company purchasing a commercial license.

And the text in the LICENSE file is a bog-standard BSD license, which doesn't say anything about not being able to use it for commercial purposes.

So it looks like they're relying on companies paying for support, or out of goodwill (or confusion), rather than because of any legal obligation.

Re:Authlib: Python Authentication by wongarsu on Monday June 26, 2023 @02:01PM (#36483348)
Or to avoid legal uncertainty. The bigger the company, the more willing they are to pay $1000 a year to not have to track a potential risk, no matter how small that risk is. And another $1000 for paying by invoice, so the accounting department is happy.
Re:Authlib: Python Authentication by c4mpute on Monday June 26, 2023 @06:13PM (#36486590)
They are relying on holding security fixes hostage.
Re:Authlib: Python Authentication by v3ss0n on Tuesday June 27, 2023 @11:14AM (#36494057)
That is scary..
Re:Authlib: Python Authentication by 0x0000000 on Monday June 26, 2023 @09:12PM (#36487875)
It may also be a way to make financially supporting a project easier for users in corp environments -- it can be easier to get an expense through for a $1k software license than a $100 donation to an open source project or individual author.