app-MAIL-temp/static/assets/images/payments/ukash-dark.svg
Son NK c18d9f5280 create BaseForm to enable CSRF
register page

redirect user to dashboard if they are logged in

enable csrf for login page

Set models more strict

bootstrap developer page

add helper method to ModelMixin, remove CRUDMixin

display list of clients on developer index, add copy client-secret to clipboard using clipboardjs

add toastr and use jquery non slim

display a toast when user copies the client-secret

create new client, generate client-id using unidecode

client detail page: can edit client

add delete client

implement /oauth/authorize and /oauth/allow-deny

implement /oauth/token

add /oauth/user_info endpoint

handle scopes: wip

take into account scope: display scope, return user data according to scope

create virtual-domain, gen email, client_user model WIP

create authorize_nonlogin_user page

user can choose to generate a new email

no need to interfere with root logger

log for before and after request

if user has already allowed a client: generate a auth-code and redirect user to client

get_user_info takes into account gen email

display list of clients that have user has authorised

use yk-client domain instead of localhost as cookie depends on the domain name

use wtforms instead of flask_wtf

Dockerfile

delete virtual domain

EMAIL_DOMAIN can come from env var

bind to host 0.0.0.0

fix signup error: use session as default csrf_context

rename yourkey to simplelogin

add python-dotenv, ipython, sqlalchemy_utils

create DB_URI, FLASK_SECRET. Load config from CONFIG file if exist

add shortcuts to logging

create shell

add psycopg2

do not add local data in Dockerfile

add drop_db into shell

add shell.prepare_db()

fix prepare_db

setup sentry

copy assets from tabler/dist

add icon downloaded from https://commons.wikimedia.org/wiki/File:Simpleicons_Interface_key-tool-1.svg

integrate tabler - login and register page

add favicon

template: default, header. Use gravatar for user avatar url

use default template for dashboard, developer page

use another icon

add clipboard and notie

prettify dashboard

add notie css

add fake gen email and client-user

prettify list client page, use notie for toast

add email, name scope to new client

display client scope in client list

prettify new-client, client-detail

add sentry-sdk and blinker

add arrow, add dt jinja filter, prettify logout, dashboard

comment "last used" in dashboard for now

prettify date display

add copy email to clipboard to dashboard

use "users" as table name for User as "user" is reserved key in postgres

call prepare_db() when creating new db

error page 400, 401, 403, 404

prettify authorize_login_user

create already_authorize.html for user who has already authorized a client

user can generate new email

display all other generated emails

add ENV variable, only reset DB when ENV=local

fix: not return other users gen emails

display nb users for each client

refactor shell: remove prepare_db()

add sendgrid

add /favicon.ico route

add new config: URL, SUPPORT_EMAIL, SENDGRID_API_KEY

user needs to activate their account before login

create copy button on dashboard

client can have multiple redirect uris, in client detail can add/remove redirect-uri,

use redirect_uri passed in /authorize

refactor: move get_user_info into ClientUser model

dashboard: display all apps, all generated emails

add "id" into user_info

add trigger email button

invalidate the session at each new version by changing the secret

centralize Client creation into Client.create_new

user can enable/disable email forwarding

setup auto dismiss alert: just add .alert-auto-dismiss

move name down in register form

add shell.add_real_data

move blueprint template to its own package

prettify authorize page for non-authenticated user

update readme, return error if not redirect_uri

add flask-wtf, use psycopg2-binary

use flask-wtf FlaskForm instead of Form

rename email -> email_utils

add AWS_REGION, BUCKET, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY to config

add s3 module

add File model, add Client.icon_id

handle client icon update

can create client with icon

display client icon in client list page

add Client.home_url

take into account Client.home_url

add boto3

register: ask name first

only show "trigger test email" if email forwarding is enabled

display gen email in alphabetical order, client in client.name alphabetical order

better error page

the modal does not get close when user clicks outside of modal

add Client.published column

discover page that displays all published Client

add missing bootstrap.bundle.min.js.map

developer can publish/unpublish their app in discover

use notie for display flash message

create hotmail account

fix missing jquery

add footer, add global jinja2 variable

strengthen model: use nullable=False whenever possible,

rename client_id to oauth_client_id, client_secret to oauth_client_secret

add flask-migrate

init migrate

1st migrate version

fix rename client_id -> oauth_client_id

prettify UI

use flask_migrate.upgrade() instead of db.create_all()

make sure requirejs.config is called for all page

enable sentry for js, use uppercase for global jinja2 variables

add flask-admin

add User.is_admin column

setup flask admin, only accessible to admin user

fix migration: add server_default

replace session[redirect_after_login] by "next" request args

add pyproject.toml: ignore migrations/ in black

add register waiting_activation_email page

better email wording

add pytest

add get_host_name_and_scheme and tests

example fail test

fix test

fix client-id display

add flask-cors

/user_info supports cors, add /me as /user_info synonym

return client in /me

support implicit flow

no need to use with "app.app_context()"

add watchtower to requirement

add param ENABLE_CLOUDWATCH, CLOUDWATCH_LOG_GROUP, CLOUDWATCH_LOG_STREAM

add cloudwatch logger if cloudwatch is enabled

add 500 error page

add help text for list of used client

display list of app/website that an email has been used

click on client name brings to client detail page

create style.css to add additional style, append its url with the current sha1 to avoid cache

POC on how to send email using postfix

add sqlalchemy-utils

use arrow instead of datetime

add new params STRIPE_API, STRIPE_YEARLY_SKU, STRIPE_MONTHLY_PLAN

show full error in local

add plan, plan_expiration to User, need to create enum directly in migration script, cf https://github.com/sqlalchemy/alembic/issues/67

reformat all html files: use space instead of tab

new user will have trial plan for 15 days

add new param MAX_NB_EMAIL_FREE_PLAN

only user with enough quota can create new email

if user cannot create new gen email, pick randomly one from existing gen emails. Use flush instead of commit

rename STRIPE_YEARLY_SKU -> STRIPE_YEARLY_PLAN

open client page in discover in a new tab

add stripe

not logging /static call: disable flask logging, replace by after_request

add param STRIPE_SECRET_KEY

add 3 columns stripe_customer_id, stripe_card_token, stripe_subscription_id

user can upgrade their pricing

add setting page as coming-soon

add GenEmail, ClientUser to admin

ignore /admin/static logging

add more fake data

add ondelete="cascade" whenever possible

rename plan_expiration -> trial_expiration

reset migration: delete old migrations, create new one

rename test_send_email -> poc_send_email to avoid the file being called by pytest

add new param LYRA_ANALYTICS_ID, add lyra analytics

add how to create new migration into readme

add drift to base.html

notify admin when new user signs up or pays subscription

log exception in case of 500

use sendgrid to notify admin

add alias /userinfo to user_info endpoint

add change_password to shell

add info on how payment is handled

invite user to retry if card not working

remove drift and add "contact us" link

move poc_send_email into poc/

support getting client-id, client-secret from form-data in addition to basic auth

client-id, client-secret is passed in form-data by passport-oauth2 for ex

add jwtRS256 private and public key

add jwk-jws-jwt poc

add new param OPENID_PRIVATE_KEY_PATH, OPENID_PRIVATE_KEY_PATH

add scope, redirect_url to AuthorizationCode and OauthToken

take into scope when creating oauth-token, authorization-code

add jwcrypto

add jose_utils: make_id_token and verify_id_token

add &scope to redirect uri

add "email_verified": True into user_info

fix user not activated

add /oauth2 as alias for /oauth

handle case where scope and state are empty

remove threaded=False

Use Email Alias as wording

remove help text

user can re-send activation email

add "expired" into ActivationCode

Handle the case activation code is expired

reformat: use form.validate_on_submit instead of request.method == post && form.validate

use error text instead of flash()

display client oauth-id and oauth-secret on client detail page

not display oauth-secret on client listing

fix expiration check

improve page title, footer

add /jwks and /.well-known/openid-configuration

init properly tests, fix blueprint conflict bug in flask-admin

create oauth_models module

rename Scope -> ScopeE to distinguish with Scope DB model

set app.url_map.strict_slashes = False

use ScopeE instead of SCOPE_NAME, ...

support access_token passed as args in /userinfo

merge /allow-deny into /authorize

improve wording

take into account the case response_type=code and openid is in scope

take into account response_type=id_token, id_token token, id_token code

make sure to use in-memory db in test

fix scope can be null

allow cross_origin for /.well-known/openid-configuration and /jwks

fix footer link

center authorize form

rename trial_expiration to plan_expiration

move stripe init to create_app()

use real email to be able to receive email notification

add user.profile_picture_id column

use user profile picture and fallback to gravatar

use nguyenkims+local@gm to distinguish with staging

handle plan cancel, reactivation, user profile update

fix can_create_new_email

create cron.py that set plan to free when expired

add crontab.yml

add yacron

use notify_admin instead of LOG.error

add ResetPasswordCode model

user can change password in setting

increase display time for notie

add forgot_password page

If login error: redirect to this page upon success login.

hide discover tab

add column user.is_developer

only show developer menu to developer

comment out the publish button

set local user to developer

make sure only developer can access /developer blueprint

User is invited to upgrade if they are in free plan or their trial ends soon

not sending email when in local mode

create Partner model

create become partner page

use normal error handling on local

fix migration

add "import sqlalchemy_utils" into migration template

small refactoring on setting page

handle promo code. TODO: add migration file

add migration for user.promo_codes

move email alias on top of apps in dashboard

add introjs

move encode_url to utils

create GenEmail.create_new_gen_email

create a first alias mail to show user how to use when they login

show intro when user visits the website the first time

fix register
2019-07-02 10:20:12 +03:00

1 line
No EOL
11 KiB
XML
Executable file

<svg width="100" height="60" viewBox="0 0 100 60" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><title>Ukash-dark</title><desc>Created with Sketch.</desc><g id="Dark-Payment-badges" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(-130.000000, -1189.000000)"><g id="Ukash-dark" transform="translate(130.000000, 1189.000000)"><rect id="Rectangle" fill="#000" x="0" y="0" width="100" height="60" rx="4"/><path d="M40.4193068,27.1848889 C40.6865874,31.7551111 39.1566366,35.6502222 36.0460439,38.9231111 C34.2826066,40.7773333 32.1597231,42.0575556 29.671249,42.6533333 C29.0353056,42.8057778 28.3747847,42.854 27.7265525,42.9488889 C27.6942945,42.952 27.6620365,42.9644444 27.6297785,42.9784444 L26.5913782,42.9784444 C26.3671083,42.9488889 26.1413023,42.924 25.9170324,42.8944444 C24.1397703,42.6844444 22.5253343,42.0497778 21.1136628,40.9344444 C18.7772621,39.0864444 17.5637469,36.5928889 17.129032,33.67 C17.0752687,33.3122222 17.0414746,32.9513333 17,32.592 L17,31.0364444 C17.0107527,31.0037778 17.0261136,30.9726667 17.0307219,30.9384444 C17.0829491,30.4733333 17.1044545,30.002 17.1858675,29.5415556 C17.8586772,25.6651111 19.6681973,22.4482222 22.6943048,19.9624444 C24.408587,18.5531111 26.3517473,17.6135556 28.542219,17.2371111 C28.9277789,17.1717778 29.3194832,17.1282222 29.7081153,17.0753333 L30.995363,17.0753333 C31.3778507,17.1297778 31.7634106,17.1686667 32.14129,17.2402222 C35.273388,17.8375556 37.5729225,19.5953333 39.0859762,22.4155556 C39.8832096,23.9011111 40.3194606,25.5017778 40.4193068,27.1848889 L40.4193068,27.1848889 Z M35.9692391,23.4484444 C35.8448154,23.4111111 35.7111751,23.394 35.5821432,23.394 C34.772621,23.3955556 33.9630989,23.408 33.1535767,23.4064444 C32.9723175,23.4064444 32.8970488,23.4717778 32.8601825,23.6475556 C32.3901374,25.9482222 31.9216284,28.2504444 31.4392945,30.5495556 C31.2549631,31.4237778 31.0737039,32.3042222 30.7004327,33.1224444 C30.4116468,33.7524444 29.993829,34.2595556 29.3348441,34.5162222 C28.6989007,34.762 28.0399159,34.8024444 27.3763228,34.6624444 C26.5376148,34.4913333 25.9078158,33.8971111 26.0138064,32.8393333 C26.0245591,32.7304444 26.023023,32.6137778 26.0445283,32.5048889 C26.1935295,31.7582222 26.3409947,31.01 26.5007486,30.2664444 C26.9231747,28.2971111 27.3532814,26.3308889 27.7741715,24.3615556 C27.9016674,23.7626667 27.6113454,23.4111111 27.0061239,23.408 C26.6036669,23.4048889 26.2042822,23.408 25.8018253,23.4064444 C25.3793991,23.4064444 24.9569729,23.4111111 24.5360829,23.4048889 C24.3640402,23.4017778 24.2949159,23.4702222 24.2595857,23.6382222 C23.8248708,25.6837778 23.3778671,27.7246667 22.9477605,29.7702222 C22.682016,31.0333333 22.3517555,32.2886667 22.3486833,33.5984444 C22.3471473,34.2424444 22.4592822,34.8537778 22.7741817,35.4137778 C23.3010623,36.3564444 24.1228733,36.9397778 25.1059742,37.3022222 C26.8586587,37.94 28.6466735,37.9182222 30.4408326,37.5184444 C31.834071,37.2104444 32.9415956,36.4637778 33.6835295,35.2068889 C34.0982752,34.5037778 34.3870611,33.7462222 34.5698564,32.9513333 C34.901653,31.5077778 35.2042637,30.0564444 35.5099467,28.6066667 C35.8202379,27.1351111 36.1213126,25.662 36.419315,24.1888889 C36.4884393,23.8186667 36.3256132,23.5542222 35.9692391,23.4484444 L35.9692391,23.4484444 Z" id="Shape" fill="#D22328"/><path d="M85.8523934,29.5975556 C85.8846514,30.4484444 85.6834229,31.2635556 85.5006276,32.0833333 C85.1765115,33.5642222 84.8431788,35.0435556 84.5190628,36.526 C84.377742,37.1591111 83.9967904,37.4826667 83.3454861,37.4873333 C82.6726764,37.492 82.0014028,37.4888889 81.3301292,37.4888889 C81.0014048,37.4888889 80.9768273,37.4468889 81.0428794,37.1155556 C81.4330476,35.2675556 81.8293601,33.4242222 82.2072395,31.5746667 C82.2763638,31.2355556 82.3132301,30.8777778 82.2825082,30.5355556 C82.2210644,29.9102222 81.795566,29.5602222 81.1719114,29.5415556 C80.2087797,29.5135556 79.4929594,29.9335556 79.1411936,30.8342222 C78.8923462,31.4657778 78.7356645,32.1408889 78.5881993,32.8066667 C78.3178466,34.0013333 78.0874323,35.2022222 77.8385849,36.4015556 C77.6819032,37.1311111 77.2379717,37.492 76.5067904,37.492 L74.6189295,37.492 C74.3301436,37.492 74.2917412,37.4406667 74.3516489,37.1528889 C74.88621,34.6048889 75.4161628,32.0631111 75.950724,29.5151111 C76.3562531,27.5784444 76.7633183,25.6417778 77.1565587,23.7035556 C77.2041776,23.478 77.2886628,23.408 77.5098605,23.4126667 C78.1934229,23.4266667 78.8815935,23.4157778 79.5651559,23.4173333 C80.1657691,23.4188889 80.4622354,23.7735556 80.3393478,24.3693333 C80.0812838,25.6153333 79.8170755,26.8597778 79.5559393,28.1057778 C79.5313618,28.2131111 79.5113925,28.322 79.4898872,28.4308889 C79.8984885,27.9455556 80.3869668,27.5924444 80.9599303,27.3591111 C82.0014028,26.9313333 83.0720611,26.7773333 84.1550082,27.1615556 C85.1918724,27.5271111 85.8124549,28.4511111 85.8523934,29.5975556 L85.8523934,29.5975556 Z" id="Path" fill="#FFF"/><path d="M63.941532,29.8106667 C63.8478302,31.2573333 63.5252502,32.662 63.1965258,34.062 C62.9983696,34.9144444 62.7725636,35.7591111 62.5513659,36.6037778 C62.4054368,37.1591111 62.0505989,37.4733333 61.4837797,37.4857778 C60.8078979,37.506 60.1274077,37.4935556 59.4515258,37.4888889 C59.2533696,37.4888889 59.2057506,37.4173333 59.2502974,37.2228889 C59.2994524,37.0128889 59.3532158,36.8028889 59.4100513,36.5975556 C58.6865505,37.4764444 57.7234188,37.7315556 56.6650492,37.7735556 C56.0383224,37.8 55.419276,37.7611111 54.8201989,37.5588889 C53.8155927,37.2213333 53.2487736,36.5088889 53.1013084,35.4526667 C53.0229676,34.902 53.0536895,34.3497778 53.2119073,33.8115556 C53.4761157,32.9217778 54.0997703,32.3835556 54.9154368,32.0397778 C55.7864028,31.6726667 56.709596,31.5451111 57.6404696,31.4564444 C58.2963823,31.3942222 58.9507588,31.3537778 59.6020632,31.2868889 C59.7802502,31.2651111 59.9630455,31.1951111 60.1304799,31.1204444 C60.6035972,30.8995556 60.8294032,30.4095556 60.71266,29.9008889 C60.6312469,29.54 60.3885439,29.3331111 60.0552112,29.2413333 C59.5052892,29.0888889 58.9430783,29.1044444 58.3993007,29.2802222 C57.952297,29.4233333 57.6850164,29.7515556 57.5851702,30.2073333 C57.5467678,30.3831111 57.4622826,30.4344444 57.2979204,30.4313333 C56.4254184,30.4266667 55.5529163,30.4297778 54.6819504,30.4282222 C54.4238864,30.4282222 54.3900923,30.3768889 54.4530722,30.1264444 C54.8263433,28.5568889 55.7833306,27.552 57.3363228,27.1864444 C58.9185008,26.8131111 60.5052871,26.8722222 62.0767125,27.2953333 C62.2748687,27.3497778 62.4699528,27.4337778 62.6527482,27.5255556 C63.5728692,27.9828889 64.0106563,28.7746667 63.941532,29.8106667 Z M60.1934598,32.8937778 C59.8662715,32.9715556 59.5636608,33.0571111 59.2549057,33.1115556 C58.921573,33.1691111 58.582096,33.1846667 58.2472272,33.2266667 C57.7695016,33.2826667 57.2979204,33.3433333 56.887783,33.6248889 C56.4638208,33.9173333 56.3409331,34.3451111 56.4085213,34.8351111 C56.4653568,35.2504444 56.7295652,35.5024444 57.1105168,35.602 C57.8416981,35.7964444 58.5298687,35.6984444 59.1258737,35.2084444 C59.8463023,34.6064444 60.0536751,33.7524444 60.1934598,32.8937778 Z" id="Path" fill="#FFF"/><path d="M50.4745857,34.7604444 C49.9707465,34.0402222 49.4684434,33.3215556 48.9507793,32.5842222 C49.026048,32.5142222 49.0844196,32.4535556 49.1458634,32.396 C50.8893314,30.8015556 52.6343355,29.2024444 54.3762674,27.6002222 C54.4392473,27.5395556 54.4638249,27.4291111 54.5022272,27.342 C54.417742,27.3108889 54.3378651,27.2548889 54.2503076,27.2548889 C53.110525,27.2486667 51.9676702,27.2471111 50.8263515,27.2564444 C50.7188249,27.2564444 50.5851846,27.3186667 50.5068437,27.3948889 C49.5805783,28.3095556 48.6635295,29.2335556 47.7434085,30.1544444 C47.5759742,30.3208889 47.4023954,30.4857778 47.1980947,30.6848889 C47.2242084,30.5464444 47.2364971,30.464 47.2533942,30.3831111 C47.6527789,28.4666667 48.0552358,26.5502222 48.4515484,24.6322222 C48.6051579,23.8933333 48.2272785,23.4251111 47.4838084,23.4173333 C46.8540094,23.4111111 46.2242104,23.4204444 45.5944114,23.4111111 C45.4177605,23.4095556 45.3547806,23.4811111 45.3209865,23.646 C44.3885767,28.1586667 43.4515587,32.6728889 42.5145406,37.1871111 C42.4638495,37.436 42.505324,37.4888889 42.7572436,37.4888889 C43.4423421,37.4904444 44.1274405,37.492 44.812539,37.4888889 C45.4530906,37.4857778 45.8509393,37.1544444 45.9830435,36.5197778 C46.072137,36.0982222 46.1550861,35.6704444 46.2411075,35.2457778 C46.3225205,34.8475556 46.4039336,34.4431111 46.4930271,34.0153333 C46.5421821,34.0853333 46.5744401,34.1242222 46.605162,34.174 C47.2841161,35.2208889 47.9646062,36.2708889 48.638952,37.3177778 C48.7142207,37.436 48.7987059,37.492 48.9400267,37.4904444 C49.9507773,37.4857778 50.9599918,37.4904444 51.9707424,37.4842222 C52.0521555,37.4842222 52.1857957,37.4515556 52.2011567,37.4002222 C52.2241981,37.3286667 52.1873318,37.2135556 52.1381768,37.142 C51.5882547,36.3471111 51.0306522,35.5568889 50.4745857,34.7604444 L50.4745857,34.7604444 Z" id="Path" fill="#FFF"/><path d="M72.4760767,27.3482222 C70.672701,26.7151111 68.8631809,26.8006667 67.1120324,27.5535556 C65.9061977,28.0746667 65.2548934,29.0266667 65.2395324,30.3908889 C65.2210993,31.6057778 65.6957527,32.3991111 66.8063495,32.8517778 C67.2886833,33.0493333 67.8078835,33.1613333 68.3117227,33.3106667 C68.8401395,33.4662222 69.3823811,33.5875556 69.9015812,33.7757778 C70.3455127,33.9375556 70.5098749,34.3155556 70.3962039,34.7791111 C70.3240074,35.0871111 70.1089541,35.2831111 69.8386013,35.4137778 C69.4161751,35.616 68.9660993,35.6331111 68.5190956,35.56 C67.7387592,35.4324444 67.4300041,35.1042222 67.3132609,34.3186667 C67.2917555,34.1693333 67.2257034,34.1133333 67.0874549,34.1164444 C66.6558121,34.1195556 66.2272416,34.1164444 65.798671,34.1164444 L64.5344647,34.1164444 C64.2825451,34.1164444 64.2456788,34.1584444 64.2656481,34.4166667 C64.2764007,34.5131111 64.2886895,34.6111111 64.2979061,34.7091111 C64.489918,36.1262222 65.2195632,37.0937778 66.5928322,37.5231111 C67.4422929,37.7875556 68.3086505,37.8124444 69.1826887,37.772 C70.0306132,37.7393333 70.8647129,37.6242222 71.657338,37.31 C72.6327584,36.9211111 73.3378261,36.2631111 73.6097149,35.21 C73.6895919,34.9004444 73.7433552,34.5768889 73.7525718,34.2595556 C73.7894381,32.7895556 73.3624036,31.9806667 72.0106399,31.5124444 C71.4100267,31.3024444 70.786372,31.1748889 70.1765422,30.996 C69.7664048,30.8762222 69.348587,30.7673333 68.961491,30.5868889 C68.4822293,30.3644444 68.4300021,29.8075556 68.817098,29.4404444 C68.9123359,29.3517778 69.0275431,29.2817778 69.1442863,29.2273333 C69.5221657,29.0531111 69.9215505,29.0188889 70.3255435,29.0733333 C70.9200123,29.1542222 71.2441284,29.4808889 71.2717781,30.03 C71.2825308,30.2337778 71.3608716,30.2944444 71.5528835,30.2928889 C72.3746944,30.2866667 73.1995775,30.2913333 74.0198523,30.2897778 C74.2840607,30.2897778 74.3086382,30.2648889 74.3086382,30.0035556 C74.3040299,28.7388889 73.6773031,27.7697778 72.4760767,27.3482222 L72.4760767,27.3482222 Z" id="Path" fill="#FFF"/></g></g></svg>