app-MAIL-temp/static/assets/images/payments/square-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
6.1 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>Square-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, -789.000000)"><g id="Square-dark" transform="translate(130.000000, 789.000000)"><rect id="Rectangle" fill="#2996CC" x="0" y="0" width="100" height="60" rx="4"/><path d="M34.3229421,27.2723301 C34.3229421,28.1885437 34.584539,28.8913592 35.1222821,29.4186408 C35.6263325,29.9120388 36.3837481,30.2643689 37.5069018,30.5287379 C40.2672141,31.1770874 40.8346297,32.0027184 40.8363526,33.0428155 C40.8363526,34.4298058 39.5428212,35.5579612 37.9524685,35.5579612 L37.9430882,35.5579612 C37.1165642,35.5579612 36.3270831,35.2396117 35.7772796,34.6838835 C35.3111335,34.2131068 35.0558539,33.6085437 35.0558539,32.9817476 L33.9152796,32.9817476 C33.9152796,33.9176699 34.2918338,34.8116505 34.9724836,35.5014563 C35.7348766,36.2719417 36.8158186,36.7129126 37.9417481,36.7129126 L37.9529471,36.7129126 C39.0191486,36.7129126 40.0220806,36.3398058 40.7784433,35.6613592 C41.5506952,34.9670874 41.9761612,34.0369903 41.9761612,33.0428155 C41.9705139,30.7051456 39.8442368,29.8913592 37.7640957,29.4030097 C35.8184383,28.9459223 35.4608363,28.3270874 35.4608363,27.2723301 C35.4608363,26.1185437 36.5732695,25.1426214 37.889869,25.1426214 C39.2357582,25.1426214 40.3284736,26.0921359 40.3284736,27.2580583 L41.4695264,27.2580583 C41.4695264,26.3638835 41.0872292,25.5305825 40.3931788,24.9143689 C39.7208564,24.3163107 38.8324987,23.9880583 37.889869,23.9880583 C35.9238237,23.9880583 34.3229421,25.461165 34.3229421,27.2723301" id="Fill-1" fill="#FFF"/><path d="M44.4546801,32.1283495 C44.4546801,30.0678641 45.93333,28.518932 47.9799698,28.518932 C49.9338589,28.518932 51.4278237,30.1627184 51.4278237,32.1113592 C51.4278237,34.0597087 49.9338589,35.6726214 47.9799698,35.6726214 C45.9653955,35.6726214 44.4546801,34.1715534 44.4546801,32.1283495 M43.3512443,32.0798058 C43.3512443,34.7141748 45.3991285,36.6779612 47.9799698,36.6779612 C49.3195416,36.6779612 50.593068,36.0867961 51.3336373,34.9382524 L51.3655113,34.9382524 L51.3655113,40 L52.4664584,40 L52.4664584,27.7360194 L51.3655113,27.7360194 L51.3655113,29.2694175 L51.3336373,29.2694175 C50.593068,28.1040777 49.3195416,27.5131068 47.9799698,27.5131068 C45.4477531,27.5131068 43.3512443,29.461068 43.3512443,32.0798058" id="Fill-2" fill="#FFF"/><path d="M64.7557733,32.1283495 C64.7557733,30.0678641 66.2357632,28.518932 68.2820202,28.518932 C70.2341864,28.518932 71.7279597,30.1627184 71.7279597,32.1113592 C71.7279597,34.0597087 70.2341864,35.6726214 68.2820202,35.6726214 C66.2664887,35.6726214 64.7557733,34.1715534 64.7557733,32.1283495 M63.6529118,32.0798058 C63.6529118,34.7141748 65.7003174,36.6779612 68.2820202,36.6779612 C69.6207305,36.6779612 70.8794207,36.0867961 71.6343476,34.9382524 L71.6669874,34.9382524 L71.6669874,36.4707767 L72.7682217,36.4707767 L72.7682217,27.7360194 L71.6669874,27.7360194 L71.6669874,29.2694175 L71.6343476,29.2694175 C70.894927,28.087767 69.6356625,27.5131068 68.2820202,27.5131068 C65.747602,27.5131068 63.6529118,29.461068 63.6529118,32.0798058" id="Fill-3" fill="#FFF"/><path d="M76.1001612,28.9976699 L76.071063,28.9976699 L76.071063,27.7360194 L74.9680101,27.7360194 L74.9680101,36.4707767 L76.071063,36.4707767 L76.071063,31.3609709 C76.071063,29.7961165 77.0146499,28.8215534 78.5257481,28.694466 L78.5257481,27.5131068 C77.4062317,27.5927184 76.5731033,27.878932 76.1001612,28.9976699" id="Fill-4" fill="#FFF"/><path d="M83.4592393,28.518932 C85.1907758,28.518932 86.5431738,29.7961165 86.8267859,31.5045631 L80.1047103,31.5045631 C80.3736776,29.7961165 81.7421562,28.518932 83.4592393,28.518932 M78.9718892,32.1113592 C78.9718892,34.6174757 80.9709572,36.6779612 83.4592393,36.6779612 C85.3643123,36.6779612 87.0634962,35.4335922 87.6928413,33.612233 L86.5280504,33.612233 C86.0564484,34.9061165 84.7651184,35.6726214 83.4431587,35.6726214 C81.7576625,35.6726214 80.1833904,34.2353398 80.1047103,32.5104854 L87.9441008,32.5104854 C87.9441008,32.398932 87.9612343,32.3029126 87.9612343,32.1917476 C87.9612343,29.6681553 85.962262,27.5131068 83.4431587,27.5131068 C80.9709572,27.5131068 78.9718892,29.62 78.9718892,32.1113592" id="Fill-5" fill="#FFF"/><path d="M60.9544332,27.7072816 L60.9544332,32.3431068 C60.9544332,33.3696117 60.8138237,34.2363107 60.0539194,34.9749515 C59.5153149,35.4884466 58.9463678,35.6803883 58.2192947,35.6803883 C56.2415718,35.6803883 55.5927003,34.348835 55.5927003,32.5356311 L55.5927003,27.7072816 L54.4862015,27.7072816 L54.4862015,32.5521359 C54.4862015,33.5306796 54.6289169,34.5892233 55.2449572,35.3747573 C55.9572897,36.2894175 57.0956625,36.6905825 58.2192947,36.6905825 C59.3587204,36.6905825 60.4808212,36.1940777 60.9867859,35.1183495 L61.0182771,35.1183495 L61.0182771,36.4814563 L62.0623678,36.4814563 L62.0623678,27.7072816 L60.9544332,27.7072816" id="Fill-6" fill="#FFF"/><path d="M19.7653048,27.2766019 C19.4364181,27.2766019 19.1679295,27.5492233 19.1679295,27.8826214 L19.1679295,32.1226214 C19.1679295,32.4560194 19.4364181,32.7287379 19.7653048,32.7287379 L23.9466448,32.7287379 C24.2751486,32.7287379 24.5441159,32.4560194 24.5441159,32.1226214 L24.5441159,27.8826214 C24.5441159,27.5492233 24.2751486,27.2766019 23.9466448,27.2766019 L19.7653048,27.2766019 L19.7653048,27.2766019 Z M15.5842519,35.3039806 L15.5842519,24.7013592 C15.5842519,24.1184466 16.0546096,23.6417476 16.6289169,23.6417476 L27.0833199,23.6417476 C27.6577229,23.6417476 28.127602,24.1184466 28.127602,24.7013592 L28.127602,35.3039806 C28.127602,35.8868932 27.6577229,36.3637864 27.0833199,36.3637864 L16.6289169,36.3637864 C16.0546096,36.3637864 15.5842519,35.8868932 15.5842519,35.3039806 L15.5842519,35.3039806 Z M15.2857078,20.0052427 C13.4783627,20.0052427 12,21.5049515 12,23.337767 L12,36.6673786 C12,38.5007767 13.4783627,40 15.2857078,40 L28.4267204,40 C30.2339698,40 31.7123325,38.5007767 31.7123325,36.6673786 L31.7123325,23.337767 C31.7123325,21.5049515 30.2339698,20.0052427 28.4267204,20.0052427 L15.2857078,20.0052427 L15.2857078,20.0052427 Z" id="Fill-8" fill="#FFF"/></g></g></svg>