Last major update: 25.08.2020
- Что такое авторизация/аутентификация
- Где хранить токены
- Как ставить куки ?
- Процесс логина
- Процесс рефреш токенов
- Кража токенов/Механизм контроля токенов
| """ | |
| Example: | |
| # All locations; also locations FROM which we want to find nearest neighbors | |
| locations = pd.DataFrame({"LOCATION_NAME": ["Chicago, IL", "New York, NY", "San Fransisco, CA"], | |
| "LATITUDE": [1, 2, 3], | |
| "LONGITUDE": [1, 2, 3], | |
| "ID": [1, 2, 3]}) | |
| locations = locations.apply(lambda x: Location(location_name=x['LOCATION_NAME'], | |
| latitude=x['LATITUDE'], | |
| longitude=x['LONGITUDE'], |
| <?php | |
| /** This is a simple class to allow for fast implementation of Azure's Active Direct B2C OAuth Service via Authorization Code scope | |
| ** It requires the use of the following repos | |
| ** https://github.com/firebase/php-jwt | |
| ** https://github.com/phpseclib/phpseclib/tree/master/phpseclib (Please note to get this to work I had to move the Math directory inside the Crypt directory) | |
| ** Sample Configuration https://login.microsoftonline.com/fabrikamb2c.onmicrosoft.com/v2.0/.well-known/openid-configuration?p=b2c_1_sign_in | |
| ** Sample Key Location https://login.microsoftonline.com/fabrikamb2c.onmicrosoft.com/discovery/v2.0/keys?p=b2c_1_sign_in | |
| */ | |
| use \Firebase\JWT\JWT; |
| class EventBus { | |
| constructor() { | |
| this.listeners = {}; | |
| } | |
| _getListenerIdx (eventName, callback, scope) { | |
| let eventListeners = this.listeners[eventName], | |
| i, | |
| idx = -1; |