├── .discourse-compatibility ├── .github └── workflows │ └── discourse-plugin.yml ├── .gitignore ├── .npmrc ├── .prettierrc.cjs ├── .rubocop.yml ├── .streerc ├── .template-lintrc.cjs ├── Gemfile ├── Gemfile.lock ├── LICENSE.TXT ├── README.md ├── config ├── locales │ ├── client.ar.yml │ ├── client.be.yml │ ├── client.bg.yml │ ├── client.bs_BA.yml │ ├── client.ca.yml │ ├── client.cs.yml │ ├── client.da.yml │ ├── client.de.yml │ ├── client.el.yml │ ├── client.en.yml │ ├── client.en_GB.yml │ ├── client.es.yml │ ├── client.et.yml │ ├── client.fa_IR.yml │ ├── client.fi.yml │ ├── client.fr.yml │ ├── client.gl.yml │ ├── client.he.yml │ ├── client.hr.yml │ ├── client.hu.yml │ ├── client.hy.yml │ ├── client.id.yml │ ├── client.it.yml │ ├── client.ja.yml │ ├── client.ko.yml │ ├── client.lt.yml │ ├── client.lv.yml │ ├── client.nb_NO.yml │ ├── client.nl.yml │ ├── client.pl_PL.yml │ ├── client.pt.yml │ ├── client.pt_BR.yml │ ├── client.ro.yml │ ├── client.ru.yml │ ├── client.sk.yml │ ├── client.sl.yml │ ├── client.sq.yml │ ├── client.sr.yml │ ├── client.sv.yml │ ├── client.sw.yml │ ├── client.te.yml │ ├── client.th.yml │ ├── client.tr_TR.yml │ ├── client.ug.yml │ ├── client.uk.yml │ ├── client.ur.yml │ ├── client.vi.yml │ ├── client.zh_CN.yml │ ├── client.zh_TW.yml │ ├── server.ar.yml │ ├── server.be.yml │ ├── server.bg.yml │ ├── server.bs_BA.yml │ ├── server.ca.yml │ ├── server.cs.yml │ ├── server.da.yml │ ├── server.de.yml │ ├── server.el.yml │ ├── server.en.yml │ ├── server.en_GB.yml │ ├── server.es.yml │ ├── server.et.yml │ ├── server.fa_IR.yml │ ├── server.fi.yml │ ├── server.fr.yml │ ├── server.gl.yml │ ├── server.he.yml │ ├── server.hr.yml │ ├── server.hu.yml │ ├── server.hy.yml │ ├── server.id.yml │ ├── server.it.yml │ ├── server.ja.yml │ ├── server.ko.yml │ ├── server.lt.yml │ ├── server.lv.yml │ ├── server.nb_NO.yml │ ├── server.nl.yml │ ├── server.pl_PL.yml │ ├── server.pt.yml │ ├── server.pt_BR.yml │ ├── server.ro.yml │ ├── server.ru.yml │ ├── server.sk.yml │ ├── server.sl.yml │ ├── server.sq.yml │ ├── server.sr.yml │ ├── server.sv.yml │ ├── server.sw.yml │ ├── server.te.yml │ ├── server.th.yml │ ├── server.tr_TR.yml │ ├── server.ug.yml │ ├── server.uk.yml │ ├── server.ur.yml │ ├── server.vi.yml │ ├── server.zh_CN.yml │ └── server.zh_TW.yml └── settings.yml ├── db └── migrate │ ├── 20211202134547_migrate_office365_user_info.rb │ ├── 20211202140128_rename_office365_to_microsoft.rb │ ├── 20211202141030_remove_old_office365_site_settings.rb │ └── 20211230152430_remove_old_office365_data.rb ├── eslint.config.mjs ├── lib ├── microsoft_auth_revoker.rb ├── microsoft_authenticator.rb ├── omniauth-microsoft365.rb └── tasks │ └── microsoft_auth.rake ├── package.json ├── plugin.rb ├── pnpm-lock.yaml ├── screenshot-admin-settings.png ├── screenshot-login-screen.png ├── spec ├── integration │ └── microsoft_auth_spec.rb ├── lib │ └── microsoft_auth_revoker_spec.rb └── system │ └── core_features_spec.rb ├── stylelint.config.mjs └── translator.yml /.discourse-compatibility: -------------------------------------------------------------------------------- 1 | < 3.5.0.beta1-dev: 5eb00ac8f42fcdb4b62ecbe03e09a59f4cb8b8b4 2 | < 3.4.0.beta1-dev: 3f3e1d1dba18e4dc71c3893218cdf537ba7cbe1b 3 | < 3.3.0.beta1-dev: b6034d0adfbbfe2c9aa8a3f995a72300b0226c75 4 | 3.1.999: 4e7b099eda6fc9c99e7d85de1fc831f5feb1dae0 5 | -------------------------------------------------------------------------------- /.github/workflows/discourse-plugin.yml: -------------------------------------------------------------------------------- 1 | name: Discourse Plugin 2 | 3 | on: 4 | push: 5 | branches: 6 | - main 7 | pull_request: 8 | 9 | jobs: 10 | ci: 11 | uses: discourse/.github/.github/workflows/discourse-plugin.yml@v1 12 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | engine-strict = true 2 | auto-install-peers = false 3 | -------------------------------------------------------------------------------- /.prettierrc.cjs: -------------------------------------------------------------------------------- 1 | module.exports = require("@discourse/lint-configs/prettier"); 2 | -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_gem: 2 | rubocop-discourse: stree-compat.yml 3 | -------------------------------------------------------------------------------- /.streerc: -------------------------------------------------------------------------------- 1 | --print-width=100 2 | --plugins=plugin/trailing_comma 3 | -------------------------------------------------------------------------------- /.template-lintrc.cjs: -------------------------------------------------------------------------------- 1 | module.exports = require("@discourse/lint-configs/template-lint"); 2 | -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | source "https://rubygems.org" 4 | 5 | group :development do 6 | gem "translations-manager", git: "https://github.com/discourse/translations-manager.git" 7 | gem "rubocop-discourse" 8 | gem "syntax_tree" 9 | end 10 | -------------------------------------------------------------------------------- /Gemfile.lock: -------------------------------------------------------------------------------- 1 | GIT 2 | remote: https://github.com/discourse/translations-manager.git 3 | revision: a8b225f7fabd3250ba88a4a2eff797693df51192 4 | specs: 5 | translations-manager (0.6) 6 | 7 | GEM 8 | remote: https://rubygems.org/ 9 | specs: 10 | activesupport (8.0.2) 11 | base64 12 | benchmark (>= 0.3) 13 | bigdecimal 14 | concurrent-ruby (~> 1.0, >= 1.3.1) 15 | connection_pool (>= 2.2.5) 16 | drb 17 | i18n (>= 1.6, < 2) 18 | logger (>= 1.4.2) 19 | minitest (>= 5.1) 20 | securerandom (>= 0.3) 21 | tzinfo (~> 2.0, >= 2.0.5) 22 | uri (>= 0.13.1) 23 | ast (2.4.3) 24 | base64 (0.2.0) 25 | benchmark (0.4.0) 26 | bigdecimal (3.1.9) 27 | concurrent-ruby (1.3.5) 28 | connection_pool (2.5.3) 29 | drb (2.2.3) 30 | i18n (1.14.7) 31 | concurrent-ruby (~> 1.0) 32 | json (2.12.2) 33 | language_server-protocol (3.17.0.5) 34 | lint_roller (1.1.0) 35 | logger (1.7.0) 36 | minitest (5.25.5) 37 | parallel (1.27.0) 38 | parser (3.3.8.0) 39 | ast (~> 2.4.1) 40 | racc 41 | prettier_print (1.2.1) 42 | prism (1.4.0) 43 | racc (1.8.1) 44 | rack (3.1.15) 45 | rainbow (3.1.1) 46 | regexp_parser (2.10.0) 47 | rubocop (1.75.8) 48 | json (~> 2.3) 49 | language_server-protocol (~> 3.17.0.2) 50 | lint_roller (~> 1.1.0) 51 | parallel (~> 1.10) 52 | parser (>= 3.3.0.2) 53 | rainbow (>= 2.2.2, < 4.0) 54 | regexp_parser (>= 2.9.3, < 3.0) 55 | rubocop-ast (>= 1.44.0, < 2.0) 56 | ruby-progressbar (~> 1.7) 57 | unicode-display_width (>= 2.4.0, < 4.0) 58 | rubocop-ast (1.44.1) 59 | parser (>= 3.3.7.2) 60 | prism (~> 1.4) 61 | rubocop-capybara (2.22.1) 62 | lint_roller (~> 1.1) 63 | rubocop (~> 1.72, >= 1.72.1) 64 | rubocop-discourse (3.12.1) 65 | activesupport (>= 6.1) 66 | lint_roller (>= 1.1.0) 67 | rubocop (>= 1.73.2) 68 | rubocop-capybara (>= 2.22.0) 69 | rubocop-factory_bot (>= 2.27.0) 70 | rubocop-rails (>= 2.30.3) 71 | rubocop-rspec (>= 3.0.1) 72 | rubocop-rspec_rails (>= 2.31.0) 73 | rubocop-factory_bot (2.27.1) 74 | lint_roller (~> 1.1) 75 | rubocop (~> 1.72, >= 1.72.1) 76 | rubocop-rails (2.32.0) 77 | activesupport (>= 4.2.0) 78 | lint_roller (~> 1.1) 79 | rack (>= 1.1) 80 | rubocop (>= 1.75.0, < 2.0) 81 | rubocop-ast (>= 1.44.0, < 2.0) 82 | rubocop-rspec (3.6.0) 83 | lint_roller (~> 1.1) 84 | rubocop (~> 1.72, >= 1.72.1) 85 | rubocop-rspec_rails (2.31.0) 86 | lint_roller (~> 1.1) 87 | rubocop (~> 1.72, >= 1.72.1) 88 | rubocop-rspec (~> 3.5) 89 | ruby-progressbar (1.13.0) 90 | securerandom (0.4.1) 91 | syntax_tree (6.2.0) 92 | prettier_print (>= 1.2.0) 93 | tzinfo (2.0.6) 94 | concurrent-ruby (~> 1.0) 95 | unicode-display_width (3.1.4) 96 | unicode-emoji (~> 4.0, >= 4.0.4) 97 | unicode-emoji (4.0.4) 98 | uri (1.0.3) 99 | 100 | PLATFORMS 101 | ruby 102 | 103 | DEPENDENCIES 104 | rubocop-discourse 105 | syntax_tree 106 | translations-manager! 107 | 108 | BUNDLED WITH 109 | 2.6.9 110 | -------------------------------------------------------------------------------- /LICENSE.TXT: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | 294 | Copyright (C) 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | , 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Microsoft Login / Authentication Plugin 2 | 3 | A simple plugin that enables authentication via Microsoft. 4 | 5 | For more information, please see: https://meta.discourse.org/t/microsoft-authentication/51731 6 | -------------------------------------------------------------------------------- /config/locales/client.ar.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | ar: 8 | js: 9 | login: 10 | microsoft_office365: 11 | name: "Microsoft" 12 | title: "تسجيل الدخول باستخدام Microsoft" 13 | -------------------------------------------------------------------------------- /config/locales/client.be.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | be: 8 | -------------------------------------------------------------------------------- /config/locales/client.bg.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | bg: 8 | -------------------------------------------------------------------------------- /config/locales/client.bs_BA.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | bs_BA: 8 | -------------------------------------------------------------------------------- /config/locales/client.ca.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | ca: 8 | -------------------------------------------------------------------------------- /config/locales/client.cs.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | cs: 8 | js: 9 | login: 10 | microsoft_office365: 11 | name: "Microsoft" 12 | title: "Přihlásit se přes Microsoft" 13 | -------------------------------------------------------------------------------- /config/locales/client.da.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | da: 8 | -------------------------------------------------------------------------------- /config/locales/client.de.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | de: 8 | js: 9 | login: 10 | microsoft_office365: 11 | name: "Microsoft" 12 | title: "Mit Microsoft anmelden" 13 | -------------------------------------------------------------------------------- /config/locales/client.el.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | el: 8 | -------------------------------------------------------------------------------- /config/locales/client.en.yml: -------------------------------------------------------------------------------- 1 | en: 2 | js: 3 | login: 4 | microsoft_office365: 5 | name: "Microsoft" 6 | title: "Login with Microsoft" 7 | -------------------------------------------------------------------------------- /config/locales/client.en_GB.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | en_GB: 8 | -------------------------------------------------------------------------------- /config/locales/client.es.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | es: 8 | js: 9 | login: 10 | microsoft_office365: 11 | name: "Microsoft" 12 | title: "Iniciar sesión con Microsoft" 13 | -------------------------------------------------------------------------------- /config/locales/client.et.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | et: 8 | -------------------------------------------------------------------------------- /config/locales/client.fa_IR.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | fa_IR: 8 | js: 9 | login: 10 | microsoft_office365: 11 | name: "مایکروسافت" 12 | title: "ورود با مایکروسافت" 13 | -------------------------------------------------------------------------------- /config/locales/client.fi.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | fi: 8 | js: 9 | login: 10 | microsoft_office365: 11 | name: "Microsoft" 12 | title: "Kirjaudu sisään Microsoft-tilillä" 13 | -------------------------------------------------------------------------------- /config/locales/client.fr.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | fr: 8 | js: 9 | login: 10 | microsoft_office365: 11 | name: "Microsoft" 12 | title: "Se connecter avec Microsoft" 13 | -------------------------------------------------------------------------------- /config/locales/client.gl.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | gl: 8 | -------------------------------------------------------------------------------- /config/locales/client.he.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | he: 8 | js: 9 | login: 10 | microsoft_office365: 11 | name: "Microsoft" 12 | title: "כניסה עם Microsoft" 13 | -------------------------------------------------------------------------------- /config/locales/client.hr.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | hr: 8 | -------------------------------------------------------------------------------- /config/locales/client.hu.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | hu: 8 | -------------------------------------------------------------------------------- /config/locales/client.hy.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | hy: 8 | -------------------------------------------------------------------------------- /config/locales/client.id.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | id: 8 | -------------------------------------------------------------------------------- /config/locales/client.it.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | it: 8 | js: 9 | login: 10 | microsoft_office365: 11 | name: "Microsoft" 12 | title: "Accedi con Microsoft" 13 | -------------------------------------------------------------------------------- /config/locales/client.ja.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | ja: 8 | js: 9 | login: 10 | microsoft_office365: 11 | name: "Microsoft" 12 | title: "Microsoft でログイン" 13 | -------------------------------------------------------------------------------- /config/locales/client.ko.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | ko: 8 | -------------------------------------------------------------------------------- /config/locales/client.lt.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | lt: 8 | -------------------------------------------------------------------------------- /config/locales/client.lv.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | lv: 8 | -------------------------------------------------------------------------------- /config/locales/client.nb_NO.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | nb_NO: 8 | -------------------------------------------------------------------------------- /config/locales/client.nl.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | nl: 8 | js: 9 | login: 10 | microsoft_office365: 11 | name: "Microsoft" 12 | title: "Aanmelden met Microsoft" 13 | -------------------------------------------------------------------------------- /config/locales/client.pl_PL.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | pl_PL: 8 | js: 9 | login: 10 | microsoft_office365: 11 | name: "Microsoft" 12 | title: "Zaloguj się przez Microsoft" 13 | -------------------------------------------------------------------------------- /config/locales/client.pt.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | pt: 8 | -------------------------------------------------------------------------------- /config/locales/client.pt_BR.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | pt_BR: 8 | js: 9 | login: 10 | microsoft_office365: 11 | name: "Microsoft" 12 | title: "Entrar com Microsoft" 13 | -------------------------------------------------------------------------------- /config/locales/client.ro.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | ro: 8 | -------------------------------------------------------------------------------- /config/locales/client.ru.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | ru: 8 | js: 9 | login: 10 | microsoft_office365: 11 | name: "Microsoft" 12 | title: "Вход через Microsoft" 13 | -------------------------------------------------------------------------------- /config/locales/client.sk.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | sk: 8 | -------------------------------------------------------------------------------- /config/locales/client.sl.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | sl: 8 | -------------------------------------------------------------------------------- /config/locales/client.sq.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | sq: 8 | -------------------------------------------------------------------------------- /config/locales/client.sr.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | sr: 8 | -------------------------------------------------------------------------------- /config/locales/client.sv.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | sv: 8 | js: 9 | login: 10 | microsoft_office365: 11 | name: "Microsoft" 12 | title: "Logga in med Microsoft" 13 | -------------------------------------------------------------------------------- /config/locales/client.sw.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | sw: 8 | -------------------------------------------------------------------------------- /config/locales/client.te.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | te: 8 | -------------------------------------------------------------------------------- /config/locales/client.th.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | th: 8 | -------------------------------------------------------------------------------- /config/locales/client.tr_TR.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | tr_TR: 8 | js: 9 | login: 10 | microsoft_office365: 11 | name: "Microsoft" 12 | title: "Microsoft ile giriş yapın" 13 | -------------------------------------------------------------------------------- /config/locales/client.ug.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | ug: 8 | -------------------------------------------------------------------------------- /config/locales/client.uk.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | uk: 8 | -------------------------------------------------------------------------------- /config/locales/client.ur.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | ur: 8 | -------------------------------------------------------------------------------- /config/locales/client.vi.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | vi: 8 | -------------------------------------------------------------------------------- /config/locales/client.zh_CN.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | zh_CN: 8 | js: 9 | login: 10 | microsoft_office365: 11 | name: "Microsoft" 12 | title: "使用 Microsoft 登录" 13 | -------------------------------------------------------------------------------- /config/locales/client.zh_TW.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | zh_TW: 8 | -------------------------------------------------------------------------------- /config/locales/server.ar.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | ar: 8 | site_settings: 9 | microsoft_auth_enabled: "هل تريد السماح للمستخدمين بالمصادقة باستخدام Microsoft؟" 10 | microsoft_auth_client_id: 'معرِّف تطبيق Microsoft/معرِّف العميل (ليس المعرِّف السري) - للإعداد، انتقل إلى https://portal.azure.com/#view/Microsoft_AAD_RegisteredApps/ApplicationsListBlade)' 11 | microsoft_auth_client_secret: "كلمة مرور Microsoft السرية (استخدم القيمة، وليس المعرِّف السري)" 12 | microsoft_auth_email_verified: "معاملة جميع عناوين البريد الإلكتروني من Microsoft على أنها تم التحقق منها افتراضيًا. تحذير: لا تقم بتفعيل هذا الإعداد إلا إذا كنت متأكدًا من أن جميع المستخدمين لديهم عناوين بريد إلكتروني تم التحقق منها." 13 | -------------------------------------------------------------------------------- /config/locales/server.be.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | be: 8 | -------------------------------------------------------------------------------- /config/locales/server.bg.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | bg: 8 | -------------------------------------------------------------------------------- /config/locales/server.bs_BA.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | bs_BA: 8 | -------------------------------------------------------------------------------- /config/locales/server.ca.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | ca: 8 | -------------------------------------------------------------------------------- /config/locales/server.cs.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | cs: 8 | site_settings: 9 | microsoft_auth_enabled: "Povolit uživatelům ověřování pomocí služby Microsoft?" 10 | microsoft_auth_client_id: 'Microsoft App ID/Client ID (NE Secret ID) – pro nastavení navštivte https://portal.azure.com/#view/Microsoft_AAD_RegisteredApps/ApplicationsListBlade)' 11 | microsoft_auth_client_secret: "Tajné heslo společnosti Microsoft (použijte Value, nikoliv Secret ID)" 12 | microsoft_auth_email_verified: "Ve výchozím nastavení zacházet se všemi e-maily společnosti Microsoft jako s ověřenými. VAROVÁNÍ: Tuto možnost povolte pouze v případě, že jste si jisti, že všichni vaši uživatelé mají ověřené e-maily." 13 | -------------------------------------------------------------------------------- /config/locales/server.da.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | da: 8 | -------------------------------------------------------------------------------- /config/locales/server.de.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | de: 8 | site_settings: 9 | microsoft_auth_enabled: "Benutzern erlauben, sich mit Microsoft zu authentifizieren?" 10 | microsoft_auth_client_id: 'Microsoft-App-ID/-Client-ID (NICHT die Secret-ID) – besuche zur Einrichtung https://portal.azure.com/#view/Microsoft_AAD_RegisteredApps/ApplicationsListBlade)' 11 | microsoft_auth_client_secret: "Microsoft-Secret-Passwort (verwende den Wert, NICHT die Secret-ID)" 12 | microsoft_auth_email_verified: "Alle Microsoft-E-Mails standardmäßig als verifiziert behandeln. WARNUNG: Aktiviere diese Option nur, wenn du sicher bist, dass alle deine Benutzer verifizierte E-Mails haben." 13 | microsoft_auth_tenant_id: 'Microsoft Tenant ID (common ist Standard, ist ein MUSS für alle Fälle außer Single Tenant) - um die ID zu finden, besuche https://portal.azure.com/#view/Microsoft_AAD_IAM/TenantProperties.ReactView' 14 | -------------------------------------------------------------------------------- /config/locales/server.el.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | el: 8 | -------------------------------------------------------------------------------- /config/locales/server.en.yml: -------------------------------------------------------------------------------- 1 | en: 2 | site_settings: 3 | microsoft_auth_enabled: "Allow users to authenticate using Microsoft?" 4 | microsoft_auth_client_id: 'Microsoft App ID/Client ID (NOT the Secret ID) - to setup visit https://portal.azure.com/#view/Microsoft_AAD_RegisteredApps/ApplicationsListBlade)' 5 | microsoft_auth_client_secret: "Microsoft Secret Password (use the Value, NOT the Secret ID)" 6 | microsoft_auth_email_verified: "Treat all Microsoft emails as verified by default. WARNING: Only enable this if you are sure that all your users have verified emails." 7 | microsoft_auth_tenant_id: 'Microsoft Tenant ID (common is standard, is a MUST for all cases except Single Tenant) - to find the ID visit https://portal.azure.com/#view/Microsoft_AAD_IAM/TenantProperties.ReactView' 8 | -------------------------------------------------------------------------------- /config/locales/server.en_GB.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | en_GB: 8 | -------------------------------------------------------------------------------- /config/locales/server.es.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | es: 8 | site_settings: 9 | microsoft_auth_enabled: "¿Permitir a los usuarios la autenticación mediante Microsoft?" 10 | microsoft_auth_client_id: 'ID de aplicación/ID de cliente de Microsoft (NO el ID de secreto) - para configurar, visita https://portal.azure.com/#view/Microsoft_AAD_RegisteredApps/ApplicationsListBlade)' 11 | microsoft_auth_client_secret: "Contraseña secreta de Microsoft (utiliza el Valor, NO el ID de secreto)" 12 | microsoft_auth_email_verified: "Tratar todos los correos electrónicos de Microsoft como verificados por defecto. ADVERTENCIA: Activa esta opción solo si estás seguro de que todos tus usuarios tienen correos electrónicos verificados." 13 | -------------------------------------------------------------------------------- /config/locales/server.et.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | et: 8 | -------------------------------------------------------------------------------- /config/locales/server.fa_IR.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | fa_IR: 8 | site_settings: 9 | microsoft_auth_enabled: "به کاربران اجازه می‌دهید با استفاده از مایکروسافت احراز هویت کنند؟" 10 | microsoft_auth_email_verified: "تمام ایمیل‌های مایکروسافت را به صورت پیش‌فرض تایید شده در نظر بگیرید. \nاخطار: این را فقط در صورتی فعال کنید که مطمئن باشید همه کاربران شما ایمیل‌های تایید شده دارند." 11 | -------------------------------------------------------------------------------- /config/locales/server.fi.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | fi: 8 | site_settings: 9 | microsoft_auth_enabled: "Sallitaanko käyttäjien tehdä todennus Microsoftilla?" 10 | microsoft_auth_client_id: 'Microsoft App ID/Client ID (EI Secret ID) – määritä osoitteessa https://portal.azure.com/#view/Microsoft_AAD_RegisteredApps/ApplicationsListBlade)' 11 | microsoft_auth_client_secret: "Microsoft Secret Password (käytä arvoa, EI Secret ID:tä)" 12 | microsoft_auth_email_verified: "Käsittele kaikkia Microsoft-sähköpostiosoitteita oletusarvoisesti vahvistettuina. VAROITUS: käytä tätä vain, jos kaikki käyttäjäsi ovat varmasti vahvistaneet osoitteensa." 13 | -------------------------------------------------------------------------------- /config/locales/server.fr.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | fr: 8 | site_settings: 9 | microsoft_auth_enabled: "Permettre aux utilisateurs de s'authentifier via Microsoft ?" 10 | microsoft_auth_client_id: 'App ID/ID de client Microsoft (il ne s''agit PAS de l''ID secret). Pour le configurer, visitez https://portal.azure.com/#view/Microsoft_AAD_RegisteredApps/ApplicationsListBlade)' 11 | microsoft_auth_client_secret: "Mot de passe secret Microsoft (utilisez la valeur, PAS l'ID secret)" 12 | microsoft_auth_email_verified: "Traitez tous les e-mails Microsoft comme vérifiés par défaut. AVERTISSEMENT : activez cette option uniquement si vous êtes sûr(e) que tous vos utilisateurs ont vérifié leurs adresses e-mail." 13 | -------------------------------------------------------------------------------- /config/locales/server.gl.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | gl: 8 | -------------------------------------------------------------------------------- /config/locales/server.he.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | he: 8 | site_settings: 9 | microsoft_auth_enabled: "לאפשר למשתמשים לעבור אימות דרך Microsoft?" 10 | microsoft_auth_client_id: 'מזהה יישום/לקוח של Microsoft (לא המזהה הסודי) - כדי להקים נא לגשת אל https://portal.azure.com/#view/Microsoft_AAD_RegisteredApps/ApplicationsListBlade)' 11 | microsoft_auth_client_secret: "סיסמה סודית ב־Microsoft (יש להשתמש בערך, לא המזהה הסודי)" 12 | microsoft_auth_email_verified: "להתייחס לכל הודעות הדוא״ל מ־Microsoft כמאומתות כברירת מחדל. אזהרה: יש להפעיל את זה רק אם לכל המשתמשים שלך יש כתובות דוא״ל מאומתות." 13 | -------------------------------------------------------------------------------- /config/locales/server.hr.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | hr: 8 | -------------------------------------------------------------------------------- /config/locales/server.hu.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | hu: 8 | -------------------------------------------------------------------------------- /config/locales/server.hy.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | hy: 8 | -------------------------------------------------------------------------------- /config/locales/server.id.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | id: 8 | -------------------------------------------------------------------------------- /config/locales/server.it.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | it: 8 | site_settings: 9 | microsoft_auth_enabled: "Consentire agli utenti di autenticarsi utilizzando Microsoft?" 10 | microsoft_auth_client_id: 'Microsoft App ID/Client ID (NON il Secret ID): per la configurazione, visita https://portal.azure.com/#view/Microsoft_AAD_RegisteredApps/ApplicationsListBlade)' 11 | microsoft_auth_client_secret: "Microsoft Secret Password (usa il valore, NON il Secret ID)" 12 | microsoft_auth_email_verified: "Tratta tutte le e-mail Microsoft come verificate per impostazione predefinita. ATTENZIONE: abilita solo se hai certezza che tutti i tuoi utenti abbiano e-mail verificate." 13 | -------------------------------------------------------------------------------- /config/locales/server.ja.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | ja: 8 | site_settings: 9 | microsoft_auth_enabled: "Microsoft を使ったユーザーの認証を許可しますか?" 10 | microsoft_auth_client_id: 'Microsoft アプリ ID/クライアント ID (シークレット ID ではありません) - https://portal.azure.com/#view/Microsoft_AAD_RegisteredApps/ApplicationsListBlade でセットアップしてください' 11 | microsoft_auth_client_secret: "Microsoft シークレットパスワード (シークレット ID ではなく値を使用します)" 12 | microsoft_auth_email_verified: "すべての Microsoft メールをデフォルトで検証済みとして扱います。警告: すべてのユーザーのメールアドレスが検証済みである場合にのみ、これを有効にしてください。" 13 | -------------------------------------------------------------------------------- /config/locales/server.ko.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | ko: 8 | -------------------------------------------------------------------------------- /config/locales/server.lt.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | lt: 8 | -------------------------------------------------------------------------------- /config/locales/server.lv.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | lv: 8 | -------------------------------------------------------------------------------- /config/locales/server.nb_NO.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | nb_NO: 8 | -------------------------------------------------------------------------------- /config/locales/server.nl.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | nl: 8 | site_settings: 9 | microsoft_auth_enabled: "Gebruikers toestaan zich aan te melden met Microsoft?" 10 | microsoft_auth_client_id: 'Microsoft app-ID/client-ID (NIET de geheime ID) - ga om er een in te stellen naar https://portal.azure.com/#view/Microsoft_AAD_RegisteredApps/ApplicationsListBlade)' 11 | microsoft_auth_client_secret: "Microsoft geheim wachtwoord (gebruik de waarde, NIET de geheime ID)" 12 | microsoft_auth_email_verified: "Behandel alle Microsoft-e-mails standaard als geverifieerd. WAARSCHUWING: schakel dit alleen in als je zeker weet dat al je gebruikers geverifieerde e-mailadressen hebben." 13 | -------------------------------------------------------------------------------- /config/locales/server.pl_PL.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | pl_PL: 8 | site_settings: 9 | microsoft_auth_enabled: "Zezwolić użytkownikom na uwierzytelnianie za pomocą Microsoft?" 10 | microsoft_auth_client_id: 'Microsoft App ID/Client ID (NIE Secret ID) - aby skonfigurować odwiedź https://portal.azure.com/#view/Microsoft_AAD_RegisteredApps/ApplicationsListBlade)' 11 | microsoft_auth_client_secret: "Tajne hasło Microsoft (użyj wartości, a NIE tajnego identyfikatora)" 12 | -------------------------------------------------------------------------------- /config/locales/server.pt.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | pt: 8 | -------------------------------------------------------------------------------- /config/locales/server.pt_BR.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | pt_BR: 8 | site_settings: 9 | microsoft_auth_enabled: "Permitir que os(as) usuários(as) façam autenticação via Microsoft?" 10 | microsoft_auth_client_id: 'ID do aplicativo da Microsoft/ID de Cliente (NÃO é o ID Secreto). Para configurar, acesse https://portal.azure.com/#view/Microsoft_AAD_RegisteredApps/ApplicationsListBlade)' 11 | microsoft_auth_client_secret: "Senha secreta da Microsoft (use o valor, não o ID Secreto)" 12 | microsoft_auth_email_verified: "Trate todos os e-mails da Microsoft como verificados por padrão. AVISO: ative isto apenas se você tiver certeza de que os(as) usuários(as) têm e-mails verificados." 13 | -------------------------------------------------------------------------------- /config/locales/server.ro.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | ro: 8 | -------------------------------------------------------------------------------- /config/locales/server.ru.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | ru: 8 | site_settings: 9 | microsoft_auth_enabled: "Разрешать пользователям аутентифицироваться через Microsoft?" 10 | microsoft_auth_client_id: 'Microsoft App ID/Client ID (обратите внимание: не Secret ID) — для настройки посетите https://portal.azure.com/#view/Microsoft_AAD_RegisteredApps/ApplicationsListBlade)' 11 | microsoft_auth_client_secret: "Секретный пароль Microsoft (используйте Value, а НЕ Secret ID)" 12 | microsoft_auth_email_verified: "Считает все адреса эл. почты Microsoft проверенными по умолчанию. ВНИМАНИЕ: включайте этот параметр только в том случае, если вы уверены, что все ваши пользователи подтвердили адреса эл. почты." 13 | -------------------------------------------------------------------------------- /config/locales/server.sk.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | sk: 8 | -------------------------------------------------------------------------------- /config/locales/server.sl.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | sl: 8 | -------------------------------------------------------------------------------- /config/locales/server.sq.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | sq: 8 | -------------------------------------------------------------------------------- /config/locales/server.sr.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | sr: 8 | -------------------------------------------------------------------------------- /config/locales/server.sv.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | sv: 8 | site_settings: 9 | microsoft_auth_enabled: "Tillåta användare att autentisera genom Microsoft?" 10 | -------------------------------------------------------------------------------- /config/locales/server.sw.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | sw: 8 | -------------------------------------------------------------------------------- /config/locales/server.te.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | te: 8 | -------------------------------------------------------------------------------- /config/locales/server.th.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | th: 8 | -------------------------------------------------------------------------------- /config/locales/server.tr_TR.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | tr_TR: 8 | site_settings: 9 | microsoft_auth_enabled: "Kullanıcıların Microsoft kullanarak kimlik doğrulaması yapmasına izin verilsin mi?" 10 | microsoft_auth_client_id: 'Microsoft Uygulama Kimliği/İstemci Kimliği (Gizli Kimlik DEĞİL) - Kurmak için şu adresi ziyaret edin: https://portal.azure.com/#view/Microsoft_AAD_RegisteredApps/ApplicationsListBlade)' 11 | microsoft_auth_client_secret: "Microsoft Gizli Şifre (Değeri kullanın, Gizli Kimliği DEĞİL)" 12 | microsoft_auth_email_verified: "Tüm Microsoft e-postalarına varsayılan olarak doğrulanmış gibi davranın. UYARI: Bunu yalnızca tüm kullanıcılarınızın e-posta adreslerinin doğrulandığından eminseniz etkinleştirin." 13 | -------------------------------------------------------------------------------- /config/locales/server.ug.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | ug: 8 | -------------------------------------------------------------------------------- /config/locales/server.uk.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | uk: 8 | -------------------------------------------------------------------------------- /config/locales/server.ur.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | ur: 8 | -------------------------------------------------------------------------------- /config/locales/server.vi.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | vi: 8 | -------------------------------------------------------------------------------- /config/locales/server.zh_CN.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | zh_CN: 8 | site_settings: 9 | microsoft_auth_enabled: "允许用户使用 Microsoft 进行身份验证?" 10 | microsoft_auth_client_id: 'Microsoft 应用 ID/客户端 ID(非秘密 ID)– 要进行设置,请访问 https://portal.azure.com/#view/Microsoft_AAD_RegisteredApps/ApplicationsListBlade' 11 | microsoft_auth_client_secret: "Microsoft 秘密密码(使用值,而非秘密 ID)" 12 | microsoft_auth_email_verified: "默认将所有 Microsoft 电子邮件视为已验证。警告:仅当您确定所有用户都已验证电子邮件时才启用此功能。" 13 | -------------------------------------------------------------------------------- /config/locales/server.zh_TW.yml: -------------------------------------------------------------------------------- 1 | # WARNING: Never edit this file. 2 | # It will be overwritten when translations are pulled from Crowdin. 3 | # 4 | # To work with us on translations, join this project: 5 | # https://translate.discourse.org/ 6 | 7 | zh_TW: 8 | -------------------------------------------------------------------------------- /config/settings.yml: -------------------------------------------------------------------------------- 1 | plugins: 2 | microsoft_auth_enabled: 3 | client: true 4 | default: false 5 | microsoft_auth_client_id: 6 | client: false 7 | default: "" 8 | microsoft_auth_client_secret: 9 | client: false 10 | default: "" 11 | microsoft_auth_email_verified: 12 | default: false 13 | microsoft_auth_tenant_id: 14 | client: false 15 | default: "common" 16 | -------------------------------------------------------------------------------- /db/migrate/20211202134547_migrate_office365_user_info.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class MigrateOffice365UserInfo < ActiveRecord::Migration[6.1] 4 | def up 5 | execute <<~SQL 6 | INSERT INTO user_associated_accounts ( 7 | provider_name, 8 | provider_uid, 9 | user_id, 10 | info, 11 | last_used, 12 | created_at, 13 | updated_at 14 | ) SELECT 15 | 'microsoft_office365', 16 | uid, 17 | user_id, 18 | json_build_object('email', email, 'name', name), 19 | updated_at, 20 | created_at, 21 | updated_at 22 | FROM oauth2_user_infos 23 | WHERE provider = 'microsoft_office365' 24 | ON CONFLICT DO NOTHING 25 | SQL 26 | end 27 | 28 | def down 29 | raise ActiveRecord::IrreversibleMigration 30 | end 31 | end 32 | -------------------------------------------------------------------------------- /db/migrate/20211202140128_rename_office365_to_microsoft.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | class RenameOffice365ToMicrosoft < ActiveRecord::Migration[6.1] 3 | CHANGES = [ 4 | %w[office365_enabled microsoft_auth_enabled], 5 | %w[office365_client_id microsoft_auth_client_id], 6 | %w[office365_secret microsoft_auth_client_secret], 7 | ] 8 | 9 | def up 10 | CHANGES.each { |old, new| DB.exec(<<~SQL, old_name: old, new_name: new) } 11 | INSERT INTO site_settings (name, data_type, value, created_at, updated_at) 12 | SELECT :new_name, data_type, value, created_at, updated_at 13 | FROM site_settings 14 | WHERE name = :old_name 15 | SQL 16 | end 17 | 18 | def down 19 | raise ActiveRecord::IrreversibleMigration 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /db/migrate/20211202141030_remove_old_office365_site_settings.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | class RemoveOldOffice365SiteSettings < ActiveRecord::Migration[6.1] 3 | def up 4 | execute "DELETE FROM site_settings WHERE name IN ('office365_enabled', 'office365_client_id', 'office365_secret')" 5 | end 6 | 7 | def down 8 | raise ActiveRecord::IrreversibleMigration 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /db/migrate/20211230152430_remove_old_office365_data.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | class RemoveOldOffice365Data < ActiveRecord::Migration[6.1] 3 | def up 4 | execute "DELETE FROM oauth2_user_infos WHERE provider = 'microsoft_office365'" 5 | end 6 | 7 | def down 8 | raise ActiveRecord::IrreversibleMigration 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /eslint.config.mjs: -------------------------------------------------------------------------------- 1 | import DiscourseRecommended from "@discourse/lint-configs/eslint"; 2 | 3 | export default [...DiscourseRecommended]; 4 | -------------------------------------------------------------------------------- /lib/microsoft_auth_revoker.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class MicrosoftAuthRevoker 4 | def self.revoke 5 | # Deactive users using microsoft as an authentication provider 6 | DB.exec <<~SQL 7 | UPDATE users SET active = false 8 | WHERE users.id IN (#{microsoft_user_associated_accounts_sql}) 9 | SQL 10 | 11 | # Log out all users using microsoft as an authentication provider 12 | log_out_users 13 | 14 | # Revoke user API keys for users using microsoft as an authentication provider 15 | DB.exec <<~SQL 16 | UPDATE user_api_keys 17 | SET revoked_at = NOW() 18 | WHERE user_id IN (#{microsoft_user_associated_accounts_sql}) 19 | SQL 20 | 21 | # Revoke API keys that are created by users using microsoft as an authentication provider 22 | DB.exec <<~SQL 23 | UPDATE api_keys 24 | SET revoked_at = NOW() 25 | WHERE created_by_id IN (#{microsoft_user_associated_accounts_sql}) 26 | SQL 27 | 28 | # Remove microsoft as an authentication provider for all users 29 | DB.exec <<~SQL 30 | DELETE FROM user_associated_accounts 31 | WHERE provider_name = 'microsoft_office365' 32 | SQL 33 | end 34 | 35 | def self.log_out_users 36 | DB.exec <<~SQL 37 | DELETE FROM user_auth_tokens 38 | WHERE user_id IN (#{microsoft_user_associated_accounts_sql}) 39 | SQL 40 | end 41 | 42 | def self.microsoft_user_associated_accounts_sql 43 | <<~SQL 44 | SELECT user_id 45 | FROM user_associated_accounts 46 | WHERE provider_name = 'microsoft_office365' 47 | SQL 48 | end 49 | end 50 | -------------------------------------------------------------------------------- /lib/microsoft_authenticator.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class MicrosoftAuthenticator < ::Auth::ManagedAuthenticator 4 | def name 5 | "microsoft_office365" 6 | end 7 | 8 | def register_middleware(omniauth) 9 | omniauth.provider :microsoft_office365, 10 | setup: 11 | lambda { |env| 12 | strategy = env["omniauth.strategy"] 13 | strategy.options[:client_id] = SiteSetting.microsoft_auth_client_id 14 | strategy.options[ 15 | :client_secret 16 | ] = SiteSetting.microsoft_auth_client_secret 17 | strategy.options[:client_options] = { 18 | site: "https://login.microsoftonline.com", 19 | authorize_url: 20 | "/#{SiteSetting.microsoft_auth_tenant_id}/oauth2/v2.0/authorize", 21 | token_url: "/#{SiteSetting.microsoft_auth_tenant_id}/oauth2/v2.0/token", 22 | } 23 | } 24 | end 25 | 26 | def enabled? 27 | SiteSetting.microsoft_auth_enabled 28 | end 29 | 30 | def primary_email_verified?(auth_token) 31 | SiteSetting.microsoft_auth_email_verified 32 | end 33 | end 34 | -------------------------------------------------------------------------------- /lib/omniauth-microsoft365.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | require "omniauth/strategies/oauth2" 4 | 5 | module OmniAuth 6 | module Strategies 7 | class MicrosoftOffice365 < OmniAuth::Strategies::OAuth2 8 | option :name, :microsoft_office365 9 | 10 | DEFAULT_SCOPE = "openid email profile https://graph.microsoft.com/User.Read" 11 | 12 | option :authorize_options, [:scope] 13 | 14 | uid { raw_info["id"] } 15 | 16 | info do 17 | { 18 | name: raw_info["displayName"] || raw_info["userPrincipalName"], 19 | email: raw_info["mail"] || raw_info["userPrincipalName"], 20 | } 21 | end 22 | 23 | extra { { "raw_info" => raw_info } } 24 | 25 | def raw_info 26 | @raw_info ||= access_token.get("https://graph.microsoft.com/v1.0/me").parsed 27 | end 28 | 29 | def authorize_params 30 | super.tap do |params| 31 | %w[display score auth_type].each do |v| 32 | params[v.to_sym] = request.params[v] if request.params[v] 33 | end 34 | 35 | params[:scope] ||= DEFAULT_SCOPE 36 | end 37 | end 38 | 39 | def callback_url 40 | full_host + script_name + callback_path 41 | end 42 | end 43 | end 44 | end 45 | -------------------------------------------------------------------------------- /lib/tasks/microsoft_auth.rake: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | require_relative "../microsoft_auth_revoker" 4 | 5 | desc <<~DESC 6 | A rake task to remove microsoft as an authentication provider, log out, deactivate and remove all API keys for all 7 | users accounts that have used Microsoft as an authentication provider. 8 | DESC 9 | task "microsoft_auth:revoke" => :environment do 10 | MicrosoftAuthRevoker.revoke 11 | end 12 | 13 | task "microsoft_auth:log_out_users" => :environment do 14 | MicrosoftAuthRevoker.log_out_users 15 | end 16 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "devDependencies": { 4 | "@discourse/lint-configs": "2.21.0", 5 | "ember-template-lint": "7.7.0", 6 | "eslint": "9.27.0", 7 | "prettier": "3.5.3", 8 | "stylelint": "16.19.1" 9 | }, 10 | "engines": { 11 | "node": ">= 22", 12 | "npm": "please-use-pnpm", 13 | "yarn": "please-use-pnpm", 14 | "pnpm": "9.x" 15 | }, 16 | "packageManager": "pnpm@9.15.5" 17 | } 18 | -------------------------------------------------------------------------------- /plugin.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # name: discourse-microsoft-auth 4 | # about: Enable Login via Microsoft Identity Platform (Office 365 / Microsoft 365 Accounts) 5 | # meta_topic_id: 51731 6 | # version: 2.0 7 | # authors: Matthew Wilkin 8 | # url: https://github.com/discourse/discourse-microsoft-auth 9 | 10 | require_relative "lib/omniauth-microsoft365" 11 | require_relative "lib/microsoft_authenticator" 12 | 13 | enabled_site_setting :microsoft_auth_enabled 14 | 15 | register_svg_icon "fab-microsoft" 16 | 17 | auth_provider authenticator: MicrosoftAuthenticator.new, icon: "fab-microsoft" 18 | -------------------------------------------------------------------------------- /screenshot-admin-settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/discourse/discourse-microsoft-auth/020d7d7448ae2a2e29a8706c345cbfe13b73e7cd/screenshot-admin-settings.png -------------------------------------------------------------------------------- /screenshot-login-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/discourse/discourse-microsoft-auth/020d7d7448ae2a2e29a8706c345cbfe13b73e7cd/screenshot-login-screen.png -------------------------------------------------------------------------------- /spec/integration/microsoft_auth_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | describe "Microsoft OAuth2" do 4 | let(:access_token) { "microsoft_access_token_448" } 5 | let(:client_id) { "abcdef11223344" } 6 | let(:client_secret) { "adddcccdddd99922" } 7 | let(:temp_code) { "microsoft_temp_code_544254" } 8 | 9 | fab!(:user1) { Fabricate(:user) } 10 | 11 | def setup_ms_emails_stub(email:) 12 | stub_request(:get, "https://graph.microsoft.com/v1.0/me").with( 13 | headers: { 14 | "Authorization" => "Bearer #{access_token}", 15 | }, 16 | ).to_return( 17 | status: 200, 18 | body: 19 | JSON.dump( 20 | businessPhones: ["+1 425 555 0109"], 21 | displayName: "Adele Vance", 22 | givenName: "Adele", 23 | jobTitle: "Retail Manager", 24 | mail: email, 25 | mobilePhone: "+1 425 555 0109", 26 | officeLocation: "18/2111", 27 | preferredLanguage: "en-US", 28 | surname: "Vance", 29 | userPrincipalName: email, 30 | id: "87d349ed-44d7-43e1-9a83-5f2406dee5bd", 31 | ), 32 | headers: { 33 | "Content-Type" => "application/json", 34 | }, 35 | ) 36 | end 37 | 38 | before do 39 | SiteSetting.microsoft_auth_enabled = true 40 | SiteSetting.microsoft_auth_client_id = client_id 41 | SiteSetting.microsoft_auth_client_secret = client_secret 42 | 43 | stub_request(:post, "https://login.microsoftonline.com/common/oauth2/v2.0/token").with( 44 | body: 45 | hash_including( 46 | "client_id" => client_id, 47 | "client_secret" => client_secret, 48 | "code" => temp_code, 49 | "grant_type" => "authorization_code", 50 | "redirect_uri" => "http://test.localhost/auth/microsoft_office365/callback", 51 | ), 52 | ).to_return( 53 | status: 200, 54 | body: 55 | Rack::Utils.build_query( 56 | access_token: access_token, 57 | token_type: "Bearer", 58 | expires_in: 3599, 59 | scope: "openid email profile https://graph.microsoft.com/User.Read", 60 | ), 61 | headers: { 62 | "Content-Type" => "application/x-www-form-urlencoded", 63 | }, 64 | ) 65 | end 66 | 67 | it "signs in the user whose email matches the email included in the API response from microsoft when `microsoft_auth_email_verified` site setting is true" do 68 | SiteSetting.microsoft_auth_email_verified = true 69 | 70 | post "/auth/microsoft_office365" 71 | 72 | expect(response.status).to eq(302) 73 | expect(response.location).to start_with( 74 | "https://login.microsoftonline.com/common/oauth2/v2.0/authorize", 75 | ) 76 | 77 | setup_ms_emails_stub(email: user1.email) 78 | 79 | post "/auth/microsoft_office365/callback", 80 | params: { 81 | state: session["omniauth.state"], 82 | code: temp_code, 83 | } 84 | 85 | expect(response.status).to eq(302) 86 | expect(response.location).to eq("http://test.localhost/") 87 | expect(session[:current_user_id]).to eq(user1.id) 88 | end 89 | 90 | it "does not sign in the user whose email matches the email included in the API response from microsoft when `microsoft_auth_email_verified` site setting is false" do 91 | SiteSetting.microsoft_auth_email_verified = false 92 | 93 | post "/auth/microsoft_office365" 94 | 95 | expect(response.status).to eq(302) 96 | expect(response.location).to start_with( 97 | "https://login.microsoftonline.com/common/oauth2/v2.0/authorize", 98 | ) 99 | 100 | setup_ms_emails_stub(email: user1.email) 101 | 102 | post "/auth/microsoft_office365/callback", 103 | params: { 104 | state: session["omniauth.state"], 105 | code: temp_code, 106 | } 107 | 108 | expect(response.status).to eq(302) 109 | expect(response.location).to eq("http://test.localhost/") 110 | expect(session[:current_user_id]).to eq(nil) 111 | end 112 | 113 | context "when configured as single tenant" do 114 | it "uses the tenant id from the site setting" do 115 | SiteSetting.microsoft_auth_tenant_id = "my-tenant-id" 116 | 117 | post "/auth/microsoft_office365" 118 | 119 | expect(response.status).to eq(302) 120 | expect(response.location).to start_with( 121 | "https://login.microsoftonline.com/my-tenant-id/oauth2/v2.0/authorize", 122 | ) 123 | end 124 | end 125 | end 126 | -------------------------------------------------------------------------------- /spec/lib/microsoft_auth_revoker_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | require_relative "../../lib/microsoft_auth_revoker" 4 | 5 | RSpec.describe MicrosoftAuthRevoker do 6 | describe ".revoke" do 7 | fab!(:user_1) { Fabricate(:user).tap { |user| UserAuthToken.generate!(user_id: user.id) } } 8 | fab!(:user_2) { Fabricate(:user).tap { |user| UserAuthToken.generate!(user_id: user.id) } } 9 | fab!(:user_3) { Fabricate(:user).tap { |user| UserAuthToken.generate!(user_id: user.id) } } 10 | 11 | fab!(:microsoft_user_associated_account_for_user_1) do 12 | UserAssociatedAccount.create!( 13 | provider_name: "microsoft_office365", 14 | user_id: user_1.id, 15 | provider_uid: 100, 16 | info: { 17 | email: "someuser@somedomain.tld", 18 | }, 19 | ) 20 | end 21 | 22 | fab!(:microsoft_user_associated_account_for_user_2) do 23 | UserAssociatedAccount.create!( 24 | provider_name: "microsoft_office365", 25 | user_id: user_2.id, 26 | provider_uid: 200, 27 | info: { 28 | email: "someuser@somedomain.tld", 29 | }, 30 | ) 31 | end 32 | 33 | fab!(:facebook_user_associated_account_for_user_3) do 34 | UserAssociatedAccount.create!( 35 | provider_name: "facebook", 36 | user_id: user_1.id, 37 | provider_uid: 100, 38 | info: { 39 | email: "someuser@somedomain.tld", 40 | }, 41 | ) 42 | end 43 | 44 | fab!(:user_api_key_for_user_1) { Fabricate(:user_api_key, user: user_1) } 45 | fab!(:user_api_key_for_user_2) { Fabricate(:user_api_key, user: user_2) } 46 | fab!(:user_api_key_for_user_3) { Fabricate(:user_api_key, user: user_3) } 47 | fab!(:api_key_for_user_1) { Fabricate(:api_key, created_by_id: user_1.id) } 48 | fab!(:api_key_for_user_2) { Fabricate(:api_key, created_by_id: user_2.id) } 49 | fab!(:api_key_for_user_3) { Fabricate(:api_key, created_by_id: user_3.id) } 50 | 51 | it "should delete all microsoft provider `UserAssociatedAccount` records" do 52 | expect do MicrosoftAuthRevoker.revoke end.to change { UserAssociatedAccount.count }.by(-2) 53 | expect(UserAssociatedAccount.where(provider_name: "microsoft_office365").count).to eq(0) 54 | end 55 | 56 | it "should deactivate all users with microsoft provider `UserAssociatedAccount` records" do 57 | expect do MicrosoftAuthRevoker.revoke end.to change { User.where(active: true).count }.by(-2) 58 | expect(user_1.reload.active).to eq(false) 59 | expect(user_2.reload.active).to eq(false) 60 | expect(user_3.reload.active).to eq(true) 61 | end 62 | 63 | it "should delete all `UserAuthToken` records for users with microsoft provider `UserAssociatedAccount` records" do 64 | expect do MicrosoftAuthRevoker.revoke end.to change { UserAuthToken.count }.by(-2) 65 | expect(UserAuthToken.where(user_id: user_1.id).count).to eq(0) 66 | expect(UserAuthToken.where(user_id: user_2.id).count).to eq(0) 67 | expect(UserAuthToken.where(user_id: user_3.id).count).to eq(1) 68 | end 69 | 70 | it "should revoke all `UserApiKey` records for users with microsoft provider `UserAssociatedAccount` records" do 71 | expect do MicrosoftAuthRevoker.revoke end.to change { 72 | UserApiKey.where(revoked_at: nil).count 73 | }.by(-2) 74 | 75 | expect(user_api_key_for_user_1.reload.revoked_at).to be_present 76 | expect(user_api_key_for_user_2.reload.revoked_at).to be_present 77 | expect(user_api_key_for_user_3.reload.revoked_at).to be_nil 78 | end 79 | 80 | it "should revoke all `ApiKey` records created by users with microsoft provider `UserAssociatedAccount` records" do 81 | expect do MicrosoftAuthRevoker.revoke end.to change { 82 | ApiKey.where(revoked_at: nil).count 83 | }.by(-2) 84 | 85 | expect(api_key_for_user_1.reload.revoked_at).to be_present 86 | expect(api_key_for_user_2.reload.revoked_at).to be_present 87 | expect(api_key_for_user_3.reload.revoked_at).to be_nil 88 | end 89 | end 90 | end 91 | -------------------------------------------------------------------------------- /spec/system/core_features_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | RSpec.describe "Core features", type: :system do 4 | before { enable_current_plugin } 5 | 6 | it_behaves_like "having working core features" 7 | end 8 | -------------------------------------------------------------------------------- /stylelint.config.mjs: -------------------------------------------------------------------------------- 1 | export default { 2 | extends: ["@discourse/lint-configs/stylelint"], 3 | }; 4 | -------------------------------------------------------------------------------- /translator.yml: -------------------------------------------------------------------------------- 1 | # Configuration file for discourse-translator-bot 2 | 3 | files: 4 | - source_path: config/locales/client.en.yml 5 | destination_path: client.yml 6 | - source_path: config/locales/server.en.yml 7 | destination_path: server.yml 8 | --------------------------------------------------------------------------------