2017-10-17 09:27:45 +04:00
|
|
|
# Authorization by direct link
|
2017-10-17 11:28:03 +04:00
|
|
|
[](https://github.com/valentineus/auth-link/releases)
|
|
|
|
[](https://travis-ci.org/valentineus/auth-link)
|
|
|
|
[](https://www.codacy.com/app/valentineus/auth-link)
|
|
|
|
[](https://gitter.im/valentineus/auth-link)
|
2017-10-17 09:27:45 +04:00
|
|
|
|
|
|
|
Authorization plugin for Moodle.
|
|
|
|
Adds the ability to authorize a user by a direct link.
|
|
|
|
|
2017-10-17 15:07:07 +04:00
|
|
|
## Installation
|
2017-10-17 14:30:56 +04:00
|
|
|
|
2017-10-17 09:27:45 +04:00
|
|
|
Get the installation package in any of the available methods:
|
|
|
|
|
|
|
|
* [GitHub Releases](https://github.com/valentineus/auth-link/releases).
|
|
|
|
* [Compilation from the source code](#build).
|
|
|
|
|
|
|
|
In Moodle in the administration panel go to the "Plugins" section and make a standard installation of the plug-in.
|
|
|
|
|
2017-10-17 15:07:07 +04:00
|
|
|
## Using
|
2017-10-17 14:30:56 +04:00
|
|
|
|
2017-10-17 09:27:45 +04:00
|
|
|
Pass the variables `username` and `password` in any standard way.
|
|
|
|
Variables are read from a file `$ _REQUEST`, which guarantees GET and POST requests performance, as well as support for the cookie.
|
|
|
|
|
|
|
|
Example of a link that authorizes a user on the course:
|
|
|
|
```
|
|
|
|
https://yourwebserver.org/course/view.php?id=2&username=guest&password=qwerty
|
|
|
|
```
|
|
|
|
|
2017-10-17 15:07:07 +04:00
|
|
|
## Build
|
2017-10-17 14:30:56 +04:00
|
|
|
|
2017-10-17 09:27:45 +04:00
|
|
|
Self-assembly package is as follows:
|
|
|
|
|
|
|
|
* Clone the repository:
|
|
|
|
```bash
|
|
|
|
git clone https://github.com/valentineus/auth-link.git auth-link
|
|
|
|
```
|
|
|
|
|
|
|
|
* Run the build script:
|
|
|
|
```bash
|
|
|
|
cd ./auth-link
|
|
|
|
/bin/sh build.sh
|
|
|
|
```
|
|
|
|
|
2017-10-17 15:07:07 +04:00
|
|
|
## License
|
2017-10-17 09:27:45 +04:00
|
|
|
|
|
|
|
<img height="256px" alt="GNU Banner" src="https://www.gnu.org/graphics/runfreegnu.png" />
|
|
|
|
|
|
|
|
[GNU GPLv3](LICENSE.txt).
|
|
|
|
Copyright (c)
|
|
|
|
[Valentin Popov](mailto:info@valentineus.link).
|