Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about licensing #607

Closed
NathanFirmo opened this issue May 11, 2024 · 5 comments
Closed

Question about licensing #607

NathanFirmo opened this issue May 11, 2024 · 5 comments

Comments

@NathanFirmo
Copy link

I have a question about licensing. I'd like to know if I can use part of the code within the 'examples' folder for my open-source project, which is licensed under the MIT license.

If I do that, will I be violating any rules of the Apache license?

@NathanFirmo
Copy link
Author

NathanFirmo commented May 11, 2024

I do not put the repository link because its not done yet.

@NathanFirmo
Copy link
Author

Sorry if my question was "dumb". I don't understand much about licenses yet.

@muhlemmer
Copy link
Collaborator

muhlemmer commented May 13, 2024

Hi, not a silly question at all and thanks for asking! In my opinion:

  1. If you use only snippets from the examples and build your own work around that, you are fine. There is usually just a single way a certain function can be used. If your work uses a function that is already in the example, in the same way, that would hardly be considered a copyright violation.
  2. You do not copy the complete example and build you work on that.

In practice, if you use the examples as a guide to build your own work, you should be fine. Copying the complete example means you are subject to copyright, as the name applies, under the license of this project. Apache is a permissive licence, a derivative work can have its own licence terms, but attribution to the original authors and the licence has to remain in place.

If you do need to copy the complete example for some reason, there can be a practical solution where you put the copied example code in a separate sub-directory or file of your project and include zitadel/oidc's LICENSE and NOTICE into that directory or file, while licencing the rest of your project under MIT. I greatly agree with the answer given here: https://opensource.stackexchange.com/a/9260.

@fforootd or @mffap should be able to confirm this.

@mffap
Copy link
Member

mffap commented May 13, 2024

Yes, agree as a general guidance. We are not able to give you legal advice if the license terms and requirements apply to your work, though. It is individual in all cases.

It might help to understand our motivations. By providing example code we want to encourage you to use our software in the spirit of open source - give feedback, voice your ideas, improve upon what we and the community have created. We ask to comply with the terms of the specific license in return for you to use the code for free. What we don't like to see is use without attributing the work of our community members.

I greatly agree with the answer given here: https://opensource.stackexchange.com/a/9260.

Yes that seems like some good practical guidance. The apache license file contains the boiler plate and instructions as well (see 'appendix').

@hifabienne
Copy link
Member

I think we can close this issue, as the question is answered.
Feel free to reopen if needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

4 participants