Last major update: 25.08.2020
- Что такое авторизация/аутентификация
- Где хранить токены
- Как ставить куки ?
- Процесс логина
- Процесс рефреш токенов
- Кража токенов/Механизм контроля токенов
| // MIT License - Copyright (c) 2016 Can Güney Aksakalli | |
| // https://aksakalli.github.io/2014/02/24/simple-http-server-with-csparp.html | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Net.Sockets; | |
| using System.Net; | |
| using System.IO; |
| public static class ExtensionMethods { | |
| public static string ToUnderscoreCase(this string str) { | |
| return string.Concat(str.Select((x, i) => i > 0 && char.IsUpper(x) ? "_" + x.ToString() : x.ToString())).ToLower(); | |
| } | |
| } |
| #!/usr/bin/env python | |
| # -*- coding: latin-1 -*- | |
| # | |
| # Query the dictionary http://dict.leo.org/ from within Python. | |
| # This is based on an equivalent script for German/English by: | |
| # | |
| # Copyright (C) 2015 Ian Denhardt <[email protected]> | |
| # | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by |
| export {} | |
| declare global { | |
| interface Date { | |
| addDays(days: number, useThis?: boolean): Date; | |
| isToday(): boolean; | |
| clone(): Date; | |
| isAnotherMonth(date: Date): boolean; | |
| isWeekend(): boolean; | |
| isSameDate(date: Date): boolean; |
| #!/bin/bash | |
| compose_file_path=$1 | |
| project_name=$2 | |
| backup_path=$3 | |
| function backup_volume { | |
| volume_name=$1 | |
| backup_destination=$2 |
| sudo rm -rfv /Library/Caches/com.apple.iconservices.store; sudo find /private/var/folders/ \( -name com.apple.dock.iconcache -or -name com.apple.iconservices \) -exec rm -rfv {} \; ; sleep 3;sudo touch /Applications/* ; killall Dock; killall Finder |
| #TabsToolbar { | |
| direction: rtl; | |
| } | |
| #tabbrowser-tabs { | |
| direction: ltr; | |
| } | |
| .titlebar-buttonbox { | |
| display: flex; |