Last major update: 25.08.2020
- Что такое авторизация/аутентификация
- Где хранить токены
- Как ставить куки ?
- Процесс логина
- Процесс рефреш токенов
- Кража токенов/Механизм контроля токенов
directive @all( | |
""" | |
Specify the class name of the model to use. | |
This is only needed when the default model resolution does not work. | |
""" | |
model: String | |
""" | |
Apply scopes to the underlying query. | |
""" |
# Scalar directives | |
directive @scalar(class: String!) on SCALAR | |
# ENUM directives | |
directive @enum(value: ID!) on ENUM_VALUE | |
# Union directives | |
directive @union(resolver: String!) on UNION |
<?php | |
namespace App\Providers; | |
use Illuminate\Support\Facades\App; | |
use Illuminate\Support\ServiceProvider; | |
use Illuminate\Contracts\Filesystem\FileNotFoundException; | |
class ConfigServiceProvider extends ServiceProvider | |
{ |
<?php | |
namespace PetstoreIO; | |
final class PetController | |
{ | |
/** | |
* @SWG\Get( | |
* path="/pet/findByTags", |
/** | |
* @SWG\Post( | |
* path="/login/api", | |
* summary="Store new or update existing device", | |
* tags={"Login"}, | |
* description="Store new or update existing device. <strong>Authorization header required</strong>", | |
* operationId="postDevice", | |
* consumes={"application/json", "application/x-www-form-urlencoded"}, | |
* produces={"application/json"}, | |
* @SWG\Parameter( |
# vim:ft=zsh ts=2 sw=2 sts=2 | |
# | |
# agnoster's Theme - https://gist.github.com/3712874 | |
# A Powerline-inspired theme for ZSH | |
# | |
# # README | |
# | |
# In order for this theme to render correctly, you will need a | |
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts). | |
# Make sure you have a recent version: the code points that Powerline |
--- ----------------- ---- | |
Map Quick Explanation Link | |
--- ----------------- ---- | |
< <F1> Causes Netrw to issue help | |
<cr> Netrw will enter the directory or read the file |netrw-cr| | |
<del> Netrw will attempt to remove the file/directory |netrw-del| | |
<c-h> Edit file hiding list |netrw-ctrl-h| | |
<c-l> Causes Netrw to refresh the directory listing |netrw-ctrl-l| | |
<c-r> Browse using a gvim server |netrw-ctrl-r| | |
<c-tab> Shrink/expand a netrw/explore window |netrw-c-tab| |
Long ago, the first time I read "The Pragmatic Programmer", I read some advice that really stuck with me.
"Don't Use Manual Procedures".
This in the chapter on Ubiquitous Automation. To summarize, they want you to automate all the things.
The trouble was that I hadn't much of an idea how to actually go
Usage... | |
Vcxsrv [:<display>] [option] | |
:display-number | |
Vcxsrv runs as the given display-number, which defaults to 0. | |
To run multiple instances, use unique display-numbers. | |
-a # default pointer acceleration (factor) | |
-ac disable access control restrictions | |
-audit int set audit trail level |